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
>>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
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
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