[FFmpeg-devel] [PATCH 05/16] avutil: add common code for nvtegra
Mark Thompson
sw at jkqxz.net
Wed Jun 5 23:29:26 EEST 2024
On 30/05/2024 20:43, averne wrote:
> This includes a new pixel format for nvtegra hardware frames, and several objects for interaction with hardware blocks.
> In particular, this contains code for channels (handles to hardware engines), maps (memory-mapped buffers shared with engines), and command buffers (abstraction for building command lists sent to the engines).
>
> Signed-off-by: averne <averne381 at gmail.com>
> ---
> configure | 2 +
> libavutil/Makefile | 4 +
> libavutil/nvtegra.c | 1035 ++++++++++++++++++++++++++++++++++++
> libavutil/nvtegra.h | 258 +++++++++
> libavutil/nvtegra_host1x.h | 94 ++++
> libavutil/pixdesc.c | 4 +
> libavutil/pixfmt.h | 8 +
> 7 files changed, 1405 insertions(+)
> create mode 100644 libavutil/nvtegra.c
> create mode 100644 libavutil/nvtegra.h
> create mode 100644 libavutil/nvtegra_host1x.h
I don't think it is reasonable for all of this to be public API surface of ffmpeg.
A separate library containing the headers and exposing some set of functions like this might make more sense.
If this has to be in ffmpeg then it really needs to all go in one library (libavcodec I guess) so that it's not exposing all this internal detail in the public API.
Thanks,
- Mark
More information about the ffmpeg-devel
mailing list