[FFmpeg-devel] [PATCH] make 16bit YUV formats compatible with NE avcodec_get_pix_fmt

Baptiste Coudurier baptiste.coudurier
Tue Aug 25 21:54:31 CEST 2009

Hi Lars,

On 08/25/2009 12:25 PM, Lars T?uber wrote:
> Hi there!
> This patch makes it possible to use a Non-Endian 16-bit YUV formats like RGB48, GRAY16 and others.
> It mainly supports the if clause in avcodec_get_pix_fmt (libavcodec/imgconvert.c:567):
>          snprintf(name2, sizeof(name2), "%s%s", name, X_NE("be", "le"));
> e.g.:
> ffmpeg ... -pix_fmt yuv420p16 ...
> These 16bit YUV formats are supported since April this year so it shouldn't break any application.
> Only FFV1 makes use of 16bit YUV formats yet and it still doesn't work. (see issue 1321)

V210 decoder and encoder as well.

Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org

More information about the ffmpeg-devel mailing list