Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b0696e94
Commit
b0696e94
authored
May 15, 2013
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vc1: Reindent INIT_LUT(), align backslashes
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
225a5f91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
vc1.c
libavcodec/vc1.c
+18
-18
No files found.
libavcodec/vc1.c
View file @
b0696e94
...
...
@@ -571,24 +571,24 @@ int ff_vc1_decode_entry_point(AVCodecContext *avctx, VC1Context *v, GetBitContex
}
/* fill lookup tables for intensity compensation */
#define INIT_LUT(lumscale, lumshift, luty, lutuv) 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++) {
\
luty[i] = av_clip_uint8((scale * i + shift + 32) >> 6);
\
lutuv[i] = av_clip_uint8((scale * (i - 128) + 128*64 + 32) >> 6);
\
}
\
#define INIT_LUT(lumscale, lumshift, luty, lutuv) 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++) {
\
luty[i] = av_clip_uint8((scale * i + shift + 32) >> 6);
\
lutuv[i] = av_clip_uint8((scale * (i - 128) + 128*64 + 32) >> 6);
\
}
\
} while(0)
int
ff_vc1_parse_frame_header
(
VC1Context
*
v
,
GetBitContext
*
gb
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment