[FFmpeg-devel] Request for assistance with adding new pixel format (NV12_8L128) in FFmpeg
Devin Heitmueller
devin.heitmueller at ltnglobal.com
Wed Feb 8 16:27:52 EET 2023
On Wed, Feb 8, 2023 at 8:08 AM Jean-Baptiste Kempf <jb at videolan.org> wrote:
> Do we really need those PIX_FMT in FFmpeg public API?
Tiled formats are annoying, but not uncommon in popular embedded
platforms (e.g. NXP iMX, TI Davinci). Of course ffmpeg could choose
to ignore them, but it would effectively prevent it from being used on
those platforms (and it's pretty essential to use the hardware blocks
to do any real video processing).
In the past there was an expectation that adding new pixel formats
required the contributor to also add corresponding routines to swscale
to convert to more common formats that ffmpeg works with. You could
alternatively treat it as a packet format and require a decoder to do
the conversion to something more common to ffmpeg, but this would both
be expensive (in terms of CPU usage and memory copying) and
effectively prevent you from being able to capture or decode in the
native format and then hand off those buffers to other hardware blocks
like encoders, colorspace conversion, etc.
Devin
--
Devin Heitmueller, Senior Software Engineer
LTN Global Communications
o: +1 (301) 363-1001
w: https://ltnglobal.com e: devin.heitmueller at ltnglobal.com
More information about the ffmpeg-devel
mailing list