Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start of Video Decoder work #376

Merged
merged 2 commits into from
Jan 11, 2024
Merged

Start of Video Decoder work #376

merged 2 commits into from
Jan 11, 2024

Conversation

eiln
Copy link
Contributor

@eiln eiln commented Dec 25, 2023

PR'd because the driver prototype has been stable for a while.
Sorry for bothering you over the holidays, but there's not much to see here. Most of the juice is over at:

https://github.com/eiln/avd.git

The kernel driver (m1n1.fw.avd) only really pipes the instruction stream into the respective hardware FIFOs and then hopefully hushes the interrupt lines. Most of the work (bitstream syntax parsing and instruction generation) is done in the avid repo above.

I'm hoping to keep this userland-kernel separation in the very imminent actual driver.

experiments/avd.py: Decode on the command line. Read file for usage.
experiments/avd_e.py: Decode via emulated instruction stream.
experiments/avd_f.py: Decode via Cortex-M3 firmware (for debugging).
hv/trace_avd.py: Tracer. Read file for usage.
m1n1/fw/avd/__init__.py: Driver base class (power, tunables, etc).
m1n1/fw/avd/decoder.py: Codec-specific decode logic + mini media player.

Example usage:

ffmpeg -i input.mp4 -c:v copy input.264     # raw frames because we don't have mp4 demuxers...
python3 experiments/avd.py -i input.264 -a  # mini media player requires opencv

Not much to see here, most of the juice is over at:

    https://github.com/eiln/avd.git

The kernel driver (m1n1.fw.avd) only really pipes the instruction stream
into the respective hardware FIFOs and then hushes the interrupt lines.
Most of the work (bitstream syntax parsing and instruction generation)
is done in the avid repo above.

I'm hoping to keep this userland-kernel separation in the very imminent
actual driver.

experiments/avd.py: Decode on the command line. Read file for usage.
experiments/avd_e.py: Decode via emulated instruction stream.
experiments/avd_f.py: Decode via Cortex-M3 firmware (for debugging).
hv/trace_avd.py: Tracer. Read file for usage.
m1n1/fw/avd/__init__.py: Driver base class (power, tunables, etc).
m1n1/fw/avd/decoder.py: Codec-specific decode logic + mini media player.

Signed-off-by: Eileen Yoon <[email protected]>
@eiln eiln mentioned this pull request Jan 6, 2024
@marcan marcan merged commit 3b9a714 into AsahiLinux:main Jan 11, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants