]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/colorspace.h
Move AVMediaType from libavcodec to libavutil.
[ffmpeg] / libavcodec / colorspace.h
index 7d0a6274bab954ae3b77eaee92c012535fd0b084..cdadbb3d1cf9e096d4424a3cbb71dc83443b4a02 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Colorspace conversion defines
- * Copyright (c) 2001, 2002, 2003 Fabrice Bellard.
+ * Copyright (c) 2001, 2002, 2003 Fabrice Bellard
  *
  * This file is part of FFmpeg.
  *
  */
 
 /**
- * @file colorspace.h
+ * @file libavcodec/colorspace.h
  * Various defines for YUV<->RGB conversion
  */
 
+#ifndef AVCODEC_COLORSPACE_H
+#define AVCODEC_COLORSPACE_H
+
 #define SCALEBITS 10
 #define ONE_HALF  (1 << (SCALEBITS - 1))
 #define FIX(x)    ((int) ((x) * (1<<SCALEBITS) + 0.5))
@@ -105,3 +108,4 @@ static inline int C_JPEG_TO_CCIR(int y) {
 (((FIX(0.50000*224.0/255.0) * r1 - FIX(0.41869*224.0/255.0) * g1 -           \
    FIX(0.08131*224.0/255.0) * b1 + (ONE_HALF << shift) - 1) >> (SCALEBITS + shift)) + 128)
 
+#endif /* AVCODEC_COLORSPACE_H */