summaryrefslogtreecommitdiff
path: root/libavutil/colorspace.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-06 14:57:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-06 18:21:01 +0200
commit7944b0ce94bcc396c982b55217409b9e8606b425 (patch)
tree3d80900ea96c43e1a2aeac436b846613fca75142 /libavutil/colorspace.h
parenta03b69478b7f1c0c31e53acb0cf392917c0f967a (diff)
downloadffmpeg-7944b0ce94bcc396c982b55217409b9e8606b425.tar.gz
avutil/colorspace: Remove RGB_TO_Y/U/V
They are unused and colorspace.h is not a installed header Found-by: Timo Rothenpieler <timo@rothenpieler.org> Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/colorspace.h')
-rw-r--r--libavutil/colorspace.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/libavutil/colorspace.h b/libavutil/colorspace.h
index f438159811..826ffd52c4 100644
--- a/libavutil/colorspace.h
+++ b/libavutil/colorspace.h
@@ -84,18 +84,6 @@ static inline int C_JPEG_TO_CCIR(int y) {
}
-#define RGB_TO_Y(r, g, b) \
-((FIX(0.29900) * (r) + FIX(0.58700) * (g) + \
- FIX(0.11400) * (b) + ONE_HALF) >> SCALEBITS)
-
-#define RGB_TO_U(r1, g1, b1, shift)\
-(((- FIX(0.16874) * r1 - FIX(0.33126) * g1 + \
- FIX(0.50000) * b1 + (ONE_HALF << shift) - 1) >> (SCALEBITS + shift)) + 128)
-
-#define RGB_TO_V(r1, g1, b1, shift)\
-(((FIX(0.50000) * r1 - FIX(0.41869) * g1 - \
- FIX(0.08131) * b1 + (ONE_HALF << shift) - 1) >> (SCALEBITS + shift)) + 128)
-
#define RGB_TO_Y_CCIR(r, g, b) \
((FIX(0.29900*219.0/255.0) * (r) + FIX(0.58700*219.0/255.0) * (g) + \
FIX(0.11400*219.0/255.0) * (b) + (ONE_HALF + (16 << SCALEBITS))) >> SCALEBITS)