Re: [FFmpeg-devel] [PATCH 1/9] libavutil: add hwcontext_amf.

2024-02-14 Thread Mark Thompson
On 14/02/2024 01:55, Dmitrii Ovchinnikov wrote: Adds hwcontext_amf, which allows to use shared AMF context for the encoder, decoder and AMF-based filters, without copy to the host memory. It will also allow you to use some optimizations in the interaction of components (for example, SAV) and make

Re: [FFmpeg-devel] [PATCH 1/9] libavutil: add hwcontext_amf.

2024-02-14 Thread Dmitrii Ovchinnikov
>>AVAMFDeviceContextInternal *internal. Can't say if this is needed here >>at all or not. I have separated AVAMFDeviceContextInternal into a separate structure, since it is also used in the decoder and encoder, even when hwaccel amf is not used >>These should probably take a AVAMFDeviceContext poi

Re: [FFmpeg-devel] [PATCH 1/9] libavutil: add hwcontext_amf.

2024-02-13 Thread James Almer
On 2/13/2024 10:55 PM, Dmitrii Ovchinnikov wrote: +const FormatMap format_map[] = +{ +{ AV_PIX_FMT_NONE, AMF_SURFACE_UNKNOWN }, +{ AV_PIX_FMT_NV12, AMF_SURFACE_NV12 }, +{ AV_PIX_FMT_BGR0, AMF_SURFACE_BGRA }, +{ AV_PIX_FMT_RGB0, AMF_SURFACE_RGBA

[FFmpeg-devel] [PATCH 1/9] libavutil: add hwcontext_amf.

2024-02-13 Thread Dmitrii Ovchinnikov
Adds hwcontext_amf, which allows to use shared AMF context for the encoder, decoder and AMF-based filters, without copy to the host memory. It will also allow you to use some optimizations in the interaction of components (for example, SAV) and make a more manageable and optimal setup for using GPU