aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/huffyuvdsp.c
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2014-05-29 09:10:38 +0000
committerMichael Niedermayer <michaelni@gmx.at>2014-05-29 14:08:35 +0200
commitc609f803e1c1689e8a557a9a9d624bf53aa4b7d3 (patch)
tree79870ae989f5be5f00c3f669f8588b9603e1320f /libavcodec/huffyuvdsp.c
parent4991eacc064f5edd3acba4ce0d9e0ce27cee2b42 (diff)
downloadffmpeg-c609f803e1c1689e8a557a9a9d624bf53aa4b7d3.tar.gz
huffyuv: avoid duplicated defines
Move the defines to the dsp header. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/huffyuvdsp.c')
-rw-r--r--libavcodec/huffyuvdsp.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/libavcodec/huffyuvdsp.c b/libavcodec/huffyuvdsp.c
index a0e54443d7..089f6671ef 100644
--- a/libavcodec/huffyuvdsp.c
+++ b/libavcodec/huffyuvdsp.c
@@ -81,17 +81,6 @@ static int add_hfyu_left_pred_c(uint8_t *dst, const uint8_t *src, int w,
return acc;
}
-#if HAVE_BIGENDIAN
-#define B 3
-#define G 2
-#define R 1
-#define A 0
-#else
-#define B 0
-#define G 1
-#define R 2
-#define A 3
-#endif
static void add_hfyu_left_pred_bgr32_c(uint8_t *dst, const uint8_t *src,
int w, int *red, int *green,
int *blue, int *alpha)
@@ -115,10 +104,6 @@ static void add_hfyu_left_pred_bgr32_c(uint8_t *dst, const uint8_t *src,
*blue = b;
*alpha = a;
}
-#undef B
-#undef G
-#undef R
-#undef A
av_cold void ff_huffyuvdsp_init(HuffYUVDSPContext *c)
{