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
e8dcd730
Commit
e8dcd730
authored
Feb 05, 2011
by
Alexander Strange
Committed by
Ronald S. Bultje
Feb 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vp3: Factor out expression
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
60ff9de6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
vp3.c
libavcodec/vp3.c
+5
-4
No files found.
libavcodec/vp3.c
View file @
e8dcd730
...
...
@@ -1345,7 +1345,7 @@ static void vp3_draw_horiz_band(Vp3DecodeContext *s, int y)
*/
static
void
render_slice
(
Vp3DecodeContext
*
s
,
int
slice
)
{
int
x
,
y
,
i
,
j
;
int
x
,
y
,
i
,
j
,
fragment
;
LOCAL_ALIGNED_16
(
DCTELEM
,
block
,
[
64
]);
int
motion_x
=
0xdeadbeef
,
motion_y
=
0xdeadbeef
;
int
motion_halfpel_index
;
...
...
@@ -1390,8 +1390,9 @@ static void render_slice(Vp3DecodeContext *s, int slice)
for
(
j
=
0
;
j
<
16
;
j
++
)
{
x
=
4
*
sb_x
+
hilbert_offset
[
j
][
0
];
y
=
4
*
sb_y
+
hilbert_offset
[
j
][
1
];
fragment
=
y
*
fragment_width
+
x
;
i
=
fragment_start
+
y
*
fragment_width
+
x
;
i
=
fragment_start
+
fragment
;
// bounds check
if
(
x
>=
fragment_width
||
y
>=
fragment_height
)
...
...
@@ -1415,8 +1416,8 @@ static void render_slice(Vp3DecodeContext *s, int slice)
if
((
s
->
all_fragments
[
i
].
coding_method
>
MODE_INTRA
)
&&
(
s
->
all_fragments
[
i
].
coding_method
!=
MODE_USING_GOLDEN
))
{
int
src_x
,
src_y
;
motion_x
=
motion_val
[
y
*
fragment_width
+
x
][
0
];
motion_y
=
motion_val
[
y
*
fragment_width
+
x
][
1
];
motion_x
=
motion_val
[
fragment
][
0
];
motion_y
=
motion_val
[
fragment
][
1
];
src_x
=
(
motion_x
>>
1
)
+
8
*
x
;
src_y
=
(
motion_y
>>
1
)
+
8
*
y
;
...
...
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