Commit b0696e94 authored by Martin Storsjö's avatar Martin Storsjö

vc1: Reindent INIT_LUT(), align backslashes

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 225a5f91
...@@ -571,24 +571,24 @@ int ff_vc1_decode_entry_point(AVCodecContext *avctx, VC1Context *v, GetBitContex ...@@ -571,24 +571,24 @@ int ff_vc1_decode_entry_point(AVCodecContext *avctx, VC1Context *v, GetBitContex
} }
/* fill lookup tables for intensity compensation */ /* fill lookup tables for intensity compensation */
#define INIT_LUT(lumscale, lumshift, luty, lutuv) do { \ #define INIT_LUT(lumscale, lumshift, luty, lutuv) do { \
int scale, shift, i; \ int scale, shift, i; \
if (!lumscale) { \ if (!lumscale) { \
scale = -64; \ scale = -64; \
shift = (255 - lumshift * 2) << 6; \ shift = (255 - lumshift * 2) << 6; \
if (lumshift > 31) \ if (lumshift > 31) \
shift += 128 << 6; \ shift += 128 << 6; \
} else { \ } else { \
scale = lumscale + 32; \ scale = lumscale + 32; \
if (lumshift > 31) \ if (lumshift > 31) \
shift = (lumshift - 64) << 6; \ shift = (lumshift - 64) << 6; \
else \ else \
shift = lumshift << 6; \ shift = lumshift << 6; \
} \ } \
for (i = 0; i < 256; i++) { \ for (i = 0; i < 256; i++) { \
luty[i] = av_clip_uint8((scale * i + shift + 32) >> 6); \ luty[i] = av_clip_uint8((scale * i + shift + 32) >> 6); \
lutuv[i] = av_clip_uint8((scale * (i - 128) + 128*64 + 32) >> 6); \ lutuv[i] = av_clip_uint8((scale * (i - 128) + 128*64 + 32) >> 6); \
} \ } \
} while(0) } while(0)
int ff_vc1_parse_frame_header(VC1Context *v, GetBitContext* gb) int ff_vc1_parse_frame_header(VC1Context *v, GetBitContext* gb)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment