comparison colorspace.h @ 5828:1876bc447aa4 libavcodec

Add missing multiple inclusion guards.
author diego
date Wed, 17 Oct 2007 09:31:06 +0000
parents dfa6e7fa2bac
children c4a4495715dd
comparison
equal deleted inserted replaced
5827:5577fd4f31e1 5828:1876bc447aa4
21 21
22 /** 22 /**
23 * @file colorspace.h 23 * @file colorspace.h
24 * Various defines for YUV<->RGB conversion 24 * Various defines for YUV<->RGB conversion
25 */ 25 */
26
27 #ifndef FFMPEG_COLORSPACE_H
28 #define FFMPEG_COLORSPACE_H
26 29
27 #define SCALEBITS 10 30 #define SCALEBITS 10
28 #define ONE_HALF (1 << (SCALEBITS - 1)) 31 #define ONE_HALF (1 << (SCALEBITS - 1))
29 #define FIX(x) ((int) ((x) * (1<<SCALEBITS) + 0.5)) 32 #define FIX(x) ((int) ((x) * (1<<SCALEBITS) + 0.5))
30 33
103 106
104 #define RGB_TO_V_CCIR(r1, g1, b1, shift)\ 107 #define RGB_TO_V_CCIR(r1, g1, b1, shift)\
105 (((FIX(0.50000*224.0/255.0) * r1 - FIX(0.41869*224.0/255.0) * g1 - \ 108 (((FIX(0.50000*224.0/255.0) * r1 - FIX(0.41869*224.0/255.0) * g1 - \
106 FIX(0.08131*224.0/255.0) * b1 + (ONE_HALF << shift) - 1) >> (SCALEBITS + shift)) + 128) 109 FIX(0.08131*224.0/255.0) * b1 + (ONE_HALF << shift) - 1) >> (SCALEBITS + shift)) + 128)
107 110
111 #endif /* FFMPEG_COLORSPACE_H */