aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vc1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-16 09:11:04 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-16 09:11:04 +0200
commit4390fa6273e603f17a2c7244a5de0d8e36397f59 (patch)
tree3010a3ff42df02f266340063659af000174dff0b /libavcodec/vc1.c
parentd686517ad113e72b9e434b35598a4a8480d79307 (diff)
parentd46c588f3cb1963a00e990ceaf4ba9ffa05a716d (diff)
downloadffmpeg-4390fa6273e603f17a2c7244a5de0d8e36397f59.tar.gz
Merge commit 'd46c588f3cb1963a00e990ceaf4ba9ffa05a716d'
* commit 'd46c588f3cb1963a00e990ceaf4ba9ffa05a716d': Remove commented-out #includes h263dec: Remove broken and disabled debug cruft vc1: Reindent INIT_LUT(), align backslashes Conflicts: libavcodec/vc1.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r--libavcodec/vc1.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 818e8d3c0d..e4b62fe3de 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -578,27 +578,27 @@ int ff_vc1_decode_entry_point(AVCodecContext *avctx, VC1Context *v, GetBitContex
}
/* fill lookup tables for intensity compensation */
-#define INIT_LUT(lumscale, lumshift, luty, lutuv, chain) do {\
- int scale, shift, i; \
- if (!lumscale) { \
- scale = -64; \
- shift = (255 - lumshift * 2) << 6; \
- if (lumshift > 31) \
- shift += 128 << 6; \
- } else { \
- scale = lumscale + 32; \
- if (lumshift > 31) \
- shift = (lumshift - 64) << 6; \
- else \
- shift = lumshift << 6; \
- } \
- for (i = 0; i < 256; i++) { \
- int iy = chain ? luty[i] : i; \
- int iu = chain ? lutuv[i] : i; \
- luty[i] = av_clip_uint8((scale * iy + shift + 32) >> 6); \
- lutuv[i] = av_clip_uint8((scale * (iu - 128) + 128*64 + 32) >> 6); \
- } \
- }while(0)
+#define INIT_LUT(lumscale, lumshift, luty, lutuv, chain) do { \
+ int scale, shift, i; \
+ if (!lumscale) { \
+ scale = -64; \
+ shift = (255 - lumshift * 2) << 6; \
+ if (lumshift > 31) \
+ shift += 128 << 6; \
+ } else { \
+ scale = lumscale + 32; \
+ if (lumshift > 31) \
+ shift = (lumshift - 64) << 6; \
+ else \
+ shift = lumshift << 6; \
+ } \
+ for (i = 0; i < 256; i++) { \
+ int iy = chain ? luty[i] : i; \
+ int iu = chain ? lutuv[i] : i; \
+ luty[i] = av_clip_uint8((scale * iy + shift + 32) >> 6); \
+ lutuv[i] = av_clip_uint8((scale * (iu - 128) + 128*64 + 32) >> 6);\
+ } \
+ } while(0)
static void rotate_luts(VC1Context *v)