comparison truemotion1.c @ 12397:4bc3d73ae577 libavcodec

Since the 24 bit format is decoded to endian-dependant BGR32 and not BGR24, do not swap red and blue on big-endian for this format as well.
author reimar
date Sat, 21 Aug 2010 19:40:38 +0000
parents fe8005d542a4
children 31736ceab3aa
comparison
equal deleted inserted replaced
12396:fe8005d542a4 12397:4bc3d73ae577
224 lo = ydt[p1]; 224 lo = ydt[p1];
225 hi = ydt[p2]; 225 hi = ydt[p2];
226 return (lo + (hi << 8) + (hi << 16)) << 1; 226 return (lo + (hi << 8) + (hi << 16)) << 1;
227 } 227 }
228 228
229 #if HAVE_BIGENDIAN
230 static int make_cdt24_entry(int p2, int p1, int16_t *cdt)
231 #else
232 static int make_cdt24_entry(int p1, int p2, int16_t *cdt) 229 static int make_cdt24_entry(int p1, int p2, int16_t *cdt)
233 #endif
234 { 230 {
235 int r, b; 231 int r, b;
236 232
237 b = cdt[p2]; 233 b = cdt[p2];
238 r = cdt[p1]<<16; 234 r = cdt[p1]<<16;