Mercurial > libavcodec.hg
comparison truemotion1.c @ 12398:31736ceab3aa libavcodec
The 24-bit ydt also should not depend on endianness,
since all of it ends up in a single 32-bit pixel.
This seems likely to be wrong though, since it is different
from the 15 and 16 bit modes and might explain the half-width
issue for 24 bit truemotion.
author | reimar |
---|---|
date | Sat, 21 Aug 2010 19:50:36 +0000 |
parents | 4bc3d73ae577 |
children |
comparison
equal
deleted
inserted
replaced
12397:4bc3d73ae577 | 12398:31736ceab3aa |
---|---|
211 r = cdt[p1] << 11; | 211 r = cdt[p1] << 11; |
212 lo = b + r; | 212 lo = b + r; |
213 return (lo + (lo << 16)) << 1; | 213 return (lo + (lo << 16)) << 1; |
214 } | 214 } |
215 | 215 |
216 #if HAVE_BIGENDIAN | |
217 static int make_ydt24_entry(int p2, int p1, int16_t *ydt) | |
218 #else | |
219 static int make_ydt24_entry(int p1, int p2, int16_t *ydt) | 216 static int make_ydt24_entry(int p1, int p2, int16_t *ydt) |
220 #endif | |
221 { | 217 { |
222 int lo, hi; | 218 int lo, hi; |
223 | 219 |
224 lo = ydt[p1]; | 220 lo = ydt[p1]; |
225 hi = ydt[p2]; | 221 hi = ydt[p2]; |