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 you said yourself that the palette isn't stored in a host-specific order, Michael, since one has to use AV_RL32() to get the palette entries correctly on a big-endian machine. Itt is stored BGRA, in that order, in memory, as far as I understand.

Mats

--
Mats Peterson
http://matsp888.no-ip.org/~mats/
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to