# HG changeset patch # User stefano # Date 1238524899 0 # Node ID a8352444823b75a3e7e7290bd689fb3c7c46ff40 # Parent 4703ca2612ba79db39570426d740f51bb4bc003a Change the order of the components for RGB565LE and RGB565BE, to make them resemble the order in the name: BGR <-> RGB. diff -r 4703ca2612ba -r a8352444823b pixdesc.c --- 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, },