On Wed, Feb 8, 2023 at 8:08 AM Jean-Baptiste Kempf <j...@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.heitmuel...@ltnglobal.com _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".