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
3ced06f2
Commit
3ced06f2
authored
Apr 24, 2013
by
Michael Niedermayer
Committed by
Martin Storsjö
May 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vc1dec: Implement intensity compensation for vc1_interp_mc()
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
28243b0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
vc1dec.c
libavcodec/vc1dec.c
+25
-0
No files found.
libavcodec/vc1dec.c
View file @
3ced06f2
...
...
@@ -1899,6 +1899,7 @@ static void vc1_interp_mc(VC1Context *v)
}
if
(
v
->
rangeredfrm
||
s
->
h_edge_pos
<
22
||
v_edge_pos
<
22
||
v
->
mv_mode
==
MV_PMODE_INTENSITY_COMP
||
(
unsigned
)(
src_x
-
1
)
>
s
->
h_edge_pos
-
(
mx
&
3
)
-
16
-
3
||
(
unsigned
)(
src_y
-
1
)
>
v_edge_pos
-
(
my
&
3
)
-
16
-
3
)
{
uint8_t
*
uvbuf
=
s
->
edge_emu_buffer
+
19
*
s
->
linesize
;
...
...
@@ -1937,6 +1938,30 @@ static void vc1_interp_mc(VC1Context *v)
src2
+=
s
->
uvlinesize
;
}
}
if
(
v
->
mv_mode
==
MV_PMODE_INTENSITY_COMP
)
{
const
uint8_t
*
luty
=
v
->
next_luty
[
v
->
ref_field_type
[
1
]];
const
uint8_t
*
lutuv
=
v
->
next_lutuv
[
v
->
ref_field_type
[
1
]];
int
i
,
j
;
uint8_t
*
src
,
*
src2
;
src
=
srcY
;
for
(
j
=
0
;
j
<
17
+
s
->
mspel
*
2
;
j
++
)
{
for
(
i
=
0
;
i
<
17
+
s
->
mspel
*
2
;
i
++
)
src
[
i
]
=
luty
[
src
[
i
]];
src
+=
s
->
linesize
;
}
src
=
srcU
;
src2
=
srcV
;
for
(
j
=
0
;
j
<
9
;
j
++
)
{
for
(
i
=
0
;
i
<
9
;
i
++
)
{
src
[
i
]
=
lutuv
[
src
[
i
]];
src2
[
i
]
=
lutuv
[
src2
[
i
]];
}
src
+=
s
->
uvlinesize
;
src2
+=
s
->
uvlinesize
;
}
}
srcY
+=
s
->
mspel
*
(
1
+
s
->
linesize
);
}
...
...
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