[MPlayer-dev-eng] [PATCH 9/9] vo_fbdev2: Use RGB format on big endian architectures
Hans-Christian Egtvedt
hans-christian.egtvedt at atmel.com
Mon Feb 16 17:16:58 CET 2009
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt at atmel.com>
---
libvo/vo_fbdev2.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/libvo/vo_fbdev2.c b/libvo/vo_fbdev2.c
index 067e24f..867e6bf 100644
--- 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
int fb_target_bpp = format & 0xff;
set_bpp(&fb_vinfo, fb_target_bpp);
fb_vinfo.xres_virtual = fb_vinfo.xres;
--
1.5.6.3
More information about the MPlayer-dev-eng
mailing list