Mercurial > libavcodec.hg
comparison dvbsub.c @ 2979:bfabfdf9ce55 libavcodec
COSMETICS: tabs --> spaces, some prettyprinting
author | diego |
---|---|
date | Thu, 22 Dec 2005 01:10:11 +0000 |
parents | ef2149182f1c |
children | 0b546eab515d |
comparison
equal
deleted
inserted
replaced
2978:403183bbb505 | 2979:bfabfdf9ce55 |
---|---|
190 *pq = q; | 190 *pq = q; |
191 } | 191 } |
192 | 192 |
193 #define SCALEBITS 10 | 193 #define SCALEBITS 10 |
194 #define ONE_HALF (1 << (SCALEBITS - 1)) | 194 #define ONE_HALF (1 << (SCALEBITS - 1)) |
195 #define FIX(x) ((int) ((x) * (1<<SCALEBITS) + 0.5)) | 195 #define FIX(x) ((int) ((x) * (1<<SCALEBITS) + 0.5)) |
196 | 196 |
197 #define RGB_TO_Y_CCIR(r, g, b) \ | 197 #define RGB_TO_Y_CCIR(r, g, b) \ |
198 ((FIX(0.29900*219.0/255.0) * (r) + FIX(0.58700*219.0/255.0) * (g) + \ | 198 ((FIX(0.29900*219.0/255.0) * (r) + FIX(0.58700*219.0/255.0) * (g) + \ |
199 FIX(0.11400*219.0/255.0) * (b) + (ONE_HALF + (16 << SCALEBITS))) >> SCALEBITS) | 199 FIX(0.11400*219.0/255.0) * (b) + (ONE_HALF + (16 << SCALEBITS))) >> SCALEBITS) |
200 | 200 |