From c609f803e1c1689e8a557a9a9d624bf53aa4b7d3 Mon Sep 17 00:00:00 2001 From: Christophe Gisquet Date: Thu, 29 May 2014 09:10:38 +0000 Subject: [PATCH] huffyuv: avoid duplicated defines Move the defines to the dsp header. Signed-off-by: Michael Niedermayer --- libavcodec/huffyuv.h | 12 ------------ libavcodec/huffyuvdsp.c | 15 --------------- libavcodec/huffyuvdsp.h | 12 ++++++++++++ 3 files changed, 12 insertions(+), 27 deletions(-) diff --git a/libavcodec/huffyuv.h b/libavcodec/huffyuv.h index 5f4b8089c7..635a8aba27 100644 --- a/libavcodec/huffyuv.h +++ b/libavcodec/huffyuv.h @@ -45,18 +45,6 @@ #define MAX_N (1< +#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 + typedef struct HuffYUVDSPContext { void (*add_bytes)(uint8_t *dst /* align 16 */, uint8_t *src /* align 16 */, int w);