]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Change the order of the components for RGB565LE and RGB565BE,
authorstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 31 Mar 2009 18:41:39 +0000 (18:41 +0000)
committerstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 31 Mar 2009 18:41:39 +0000 (18:41 +0000)
to make them resemble the order in the name: BGR <-> RGB.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18279 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/pixdesc.c

index 139341540b153ce6a0b4735095aa2da92b73b913..c6b1d8d3139130017a7e0bb703adf907de022e3c 100644 (file)
@@ -160,9 +160,9 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
         .log2_chroma_w= 0,
         .log2_chroma_h= 0,
         .comp = {
-            {0,1,1,0,4},        /* B */
-            {0,1,1,5,5},        /* G */
             {0,1,2,3,4},        /* R */
+            {0,1,1,5,5},        /* G */
+            {0,1,1,0,4},        /* B */
         },
     },
     [PIX_FMT_RGB565BE] = {
@@ -171,9 +171,9 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
         .log2_chroma_w= 0,
         .log2_chroma_h= 0,
         .comp = {
-            {0,1,1,0,4},        /* B */
-            {0,1,1,5,5},        /* G */
             {0,1,0,3,4},        /* R */
+            {0,1,1,5,5},        /* G */
+            {0,1,1,0,4},        /* B */
         },
         .flags = PIX_FMT_BE,
     },