Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2014-05-29 13:10:38 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-05-29 16:08:35 +0400
commitc609f803e1c1689e8a557a9a9d624bf53aa4b7d3 (patch)
tree79870ae989f5be5f00c3f669f8588b9603e1320f /libavcodec/huffyuvdsp.h
parent4991eacc064f5edd3acba4ce0d9e0ce27cee2b42 (diff)
huffyuv: avoid duplicated defines
Move the defines to the dsp header. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/huffyuvdsp.h')
-rw-r--r--libavcodec/huffyuvdsp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/huffyuvdsp.h b/libavcodec/huffyuvdsp.h
index e08a96b0bb..cc12c75a39 100644
--- a/libavcodec/huffyuvdsp.h
+++ b/libavcodec/huffyuvdsp.h
@@ -21,6 +21,18 @@
#include <stdint.h>
+#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);