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
72e5d919
Commit
72e5d919
authored
Apr 24, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vc1dec: factorize picture pointer selection code
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3fdd0979
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
26 deletions
+11
-26
vc1dec.c
libavcodec/vc1dec.c
+11
-26
No files found.
libavcodec/vc1dec.c
View file @
72e5d919
...
...
@@ -384,32 +384,20 @@ static void vc1_mc_1mv(VC1Context *v, int dir)
uvmx
=
uvmx
+
((
uvmx
<
0
)
?
(
uvmx
&
1
)
:
-
(
uvmx
&
1
));
uvmy
=
uvmy
+
((
uvmy
<
0
)
?
(
uvmy
&
1
)
:
-
(
uvmy
&
1
));
}
if
(
v
->
field_mode
)
{
// interlaced field picture
if
(
!
dir
)
{
if
((
v
->
cur_field_type
!=
v
->
ref_field_type
[
dir
])
&&
v
->
second_field
)
{
srcY
=
s
->
current_picture
.
f
.
data
[
0
];
srcU
=
s
->
current_picture
.
f
.
data
[
1
];
srcV
=
s
->
current_picture
.
f
.
data
[
2
];
}
else
{
srcY
=
s
->
last_picture
.
f
.
data
[
0
];
srcU
=
s
->
last_picture
.
f
.
data
[
1
];
srcV
=
s
->
last_picture
.
f
.
data
[
2
];
}
if
(
!
dir
)
{
if
(
v
->
field_mode
&&
(
v
->
cur_field_type
!=
v
->
ref_field_type
[
dir
])
&&
v
->
second_field
)
{
srcY
=
s
->
current_picture
.
f
.
data
[
0
];
srcU
=
s
->
current_picture
.
f
.
data
[
1
];
srcV
=
s
->
current_picture
.
f
.
data
[
2
];
}
else
{
srcY
=
s
->
next_picture
.
f
.
data
[
0
];
srcU
=
s
->
next_picture
.
f
.
data
[
1
];
srcV
=
s
->
next_picture
.
f
.
data
[
2
];
}
}
else
{
if
(
!
dir
)
{
srcY
=
s
->
last_picture
.
f
.
data
[
0
];
srcU
=
s
->
last_picture
.
f
.
data
[
1
];
srcV
=
s
->
last_picture
.
f
.
data
[
2
];
}
else
{
srcY
=
s
->
next_picture
.
f
.
data
[
0
];
srcU
=
s
->
next_picture
.
f
.
data
[
1
];
srcV
=
s
->
next_picture
.
f
.
data
[
2
];
}
}
else
{
srcY
=
s
->
next_picture
.
f
.
data
[
0
];
srcU
=
s
->
next_picture
.
f
.
data
[
1
];
srcV
=
s
->
next_picture
.
f
.
data
[
2
];
}
if
(
!
srcY
)
...
...
@@ -574,11 +562,8 @@ static void vc1_mc_4mv_luma(VC1Context *v, int n, int dir, int avg)
my
=
s
->
mv
[
dir
][
n
][
1
];
if
(
!
dir
)
{
if
(
v
->
field_mode
)
{
if
((
v
->
cur_field_type
!=
v
->
ref_field_type
[
dir
])
&&
v
->
second_field
)
srcY
=
s
->
current_picture
.
f
.
data
[
0
];
else
srcY
=
s
->
last_picture
.
f
.
data
[
0
];
if
(
v
->
field_mode
&&
(
v
->
cur_field_type
!=
v
->
ref_field_type
[
dir
])
&&
v
->
second_field
)
{
srcY
=
s
->
current_picture
.
f
.
data
[
0
];
}
else
srcY
=
s
->
last_picture
.
f
.
data
[
0
];
}
else
...
...
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