changeset 9314:a8352444823b libavcodec

Change the order of the components for RGB565LE and RGB565BE, to make them resemble the order in the name: BGR <-> RGB.
author stefano
date Tue, 31 Mar 2009 18:41:39 +0000
parents 4703ca2612ba
children a476e5590725
files pixdesc.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pixdesc.c	Tue Mar 31 18:36:58 2009 +0000
+++ b/pixdesc.c	Tue Mar 31 18:41:39 2009 +0000
@@ -160,9 +160,9 @@
         .log2_chroma_w= 0,
         .log2_chroma_h= 0,
         .comp = {
-            {0,1,1,0,4},        /* B */
+            {0,1,2,3,4},        /* R */
             {0,1,1,5,5},        /* G */
-            {0,1,2,3,4},        /* R */
+            {0,1,1,0,4},        /* B */
         },
     },
     [PIX_FMT_RGB565BE] = {
@@ -171,9 +171,9 @@
         .log2_chroma_w= 0,
         .log2_chroma_h= 0,
         .comp = {
-            {0,1,1,0,4},        /* B */
+            {0,1,0,3,4},        /* R */
             {0,1,1,5,5},        /* G */
-            {0,1,0,3,4},        /* R */
+            {0,1,1,0,4},        /* B */
         },
         .flags = PIX_FMT_BE,
     },