Re: [FFmpeg-devel] Endianness of palette

2016-02-28 Thread Mats Peterson
On 02/28/2016 11:31 AM, Reimar Döffinger wrote: On 28.02.2016, at 11:19, Mats Peterson wrote: From libavutil/pixfmt.h: * @note * AV_PIX_FMT_RGB32 is handled in an endian-specific manner. An RGBA * color is put together as: * (A << 24) | (R << 16) | (G << 8) | B * This is stored as BGRA on li

Re: [FFmpeg-devel] Endianness of palette

2016-02-28 Thread Reimar Döffinger
On 28.02.2016, at 11:19, Mats Peterson wrote: > From libavutil/pixfmt.h: > > * @note > * AV_PIX_FMT_RGB32 is handled in an endian-specific manner. An RGBA > * color is put together as: > * (A << 24) | (R << 16) | (G << 8) | B > * This is stored as BGRA on little-endian CPU architectures and ARGB

[FFmpeg-devel] Endianness of palette

2016-02-28 Thread Mats Peterson
From libavutil/pixfmt.h: * @note * AV_PIX_FMT_RGB32 is handled in an endian-specific manner. An RGBA * color is put together as: * (A << 24) | (R << 16) | (G << 8) | B * This is stored as BGRA on little-endian CPU architectures and ARGB on * big-endian CPUs. This is not quite true, and yo