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
8e749733
Commit
8e749733
authored
Nov 12, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vc1dec: factorize srcU/V offseting out
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b5f4836f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
vc1dec.c
libavcodec/vc1dec.c
+11
-8
No files found.
libavcodec/vc1dec.c
View file @
8e749733
...
...
@@ -844,21 +844,24 @@ static void vc1_mc_4mv_chroma(VC1Context *v, int dir)
if
(
!
dir
)
{
if
(
v
->
field_mode
)
{
if
((
v
->
cur_field_type
!=
chroma_ref_type
)
&&
v
->
cur_field_type
)
{
srcU
=
s
->
current_picture
.
f
.
data
[
1
]
+
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
srcV
=
s
->
current_picture
.
f
.
data
[
2
]
+
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
srcU
=
s
->
current_picture
.
f
.
data
[
1
];
srcV
=
s
->
current_picture
.
f
.
data
[
2
];
}
else
{
srcU
=
s
->
last_picture
.
f
.
data
[
1
]
+
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
srcV
=
s
->
last_picture
.
f
.
data
[
2
]
+
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
srcU
=
s
->
last_picture
.
f
.
data
[
1
];
srcV
=
s
->
last_picture
.
f
.
data
[
2
];
}
}
else
{
srcU
=
s
->
last_picture
.
f
.
data
[
1
]
+
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
srcV
=
s
->
last_picture
.
f
.
data
[
2
]
+
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
srcU
=
s
->
last_picture
.
f
.
data
[
1
];
srcV
=
s
->
last_picture
.
f
.
data
[
2
];
}
}
else
{
srcU
=
s
->
next_picture
.
f
.
data
[
1
]
+
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
srcV
=
s
->
next_picture
.
f
.
data
[
2
]
+
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
srcU
=
s
->
next_picture
.
f
.
data
[
1
];
srcV
=
s
->
next_picture
.
f
.
data
[
2
];
}
srcU
+=
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
srcV
+=
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
if
(
v
->
field_mode
)
{
if
(
chroma_ref_type
)
{
srcU
+=
s
->
current_picture_ptr
->
f
.
linesize
[
1
];
...
...
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