comparison colorspace.h @ 7760:c4a4495715dd libavcodec

Globally rename the header inclusion guard names. Consistently apply this rule: the guard name is obtained from the filename by stripping the leading "lib", converting '/' and '.' to '_' and uppercasing the resulting name. Guard names in the root directory have to be prefixed by "FFMPEG_".
author stefano
date Sun, 31 Aug 2008 07:39:47 +0000
parents 1876bc447aa4
children 04423b2f6e0b
comparison
equal deleted inserted replaced
7759:892ca48b7d76 7760:c4a4495715dd
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 26
27 #ifndef FFMPEG_COLORSPACE_H 27 #ifndef AVCODEC_COLORSPACE_H
28 #define FFMPEG_COLORSPACE_H 28 #define AVCODEC_COLORSPACE_H
29 29
30 #define SCALEBITS 10 30 #define SCALEBITS 10
31 #define ONE_HALF (1 << (SCALEBITS - 1)) 31 #define ONE_HALF (1 << (SCALEBITS - 1))
32 #define FIX(x) ((int) ((x) * (1<<SCALEBITS) + 0.5)) 32 #define FIX(x) ((int) ((x) * (1<<SCALEBITS) + 0.5))
33 33
106 106
107 #define RGB_TO_V_CCIR(r1, g1, b1, shift)\ 107 #define RGB_TO_V_CCIR(r1, g1, b1, shift)\
108 (((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 - \
109 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)
110 110
111 #endif /* FFMPEG_COLORSPACE_H */ 111 #endif /* AVCODEC_COLORSPACE_H */