[MPlayer-dev-eng] [PATCH 9/9] vo_fbdev2: Use RGB format on big endian architectures
Hans-Christian Egtvedt
hans-christian.egtvedt at atmel.com
Wed Feb 18 15:29:10 CET 2009
On Mon, 16 Feb 2009 17:16:58 +0100
Hans-Christian Egtvedt <hans-christian.egtvedt at atmel.com> wrote:
<snipp>
> --- a/libvo/vo_fbdev2.c
> +++ b/libvo/vo_fbdev2.c
> @@ -330,7 +330,11 @@ static int query_format(uint32_t format)
> {
> // open the device, etc.
> if (fb_preinit(0)) return 0;
> +#ifdef WORDS_BIGENDIAN
> + if ((format & IMGFMT_BGR_MASK) == IMGFMT_RGB) {
> +#else
> if ((format & IMGFMT_BGR_MASK) == IMGFMT_BGR) {
> +#endif
No comment on this? For some reason this is mandatory on AVR32, or the
blue and red color gets swapped.
AVR32 is a big endian memory model.
<snipp>
--
Best regards,
Hans-Christian Egtvedt
More information about the MPlayer-dev-eng
mailing list