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
d19f5acb
Commit
d19f5acb
authored
Feb 18, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
factorize fill_rectangle() calls
Originally committed as revision 8016 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
492d0e4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
h264.c
libavcodec/h264.c
+8
-8
No files found.
libavcodec/h264.c
View file @
d19f5acb
...
...
@@ -1468,6 +1468,8 @@ static inline void pred_direct_motion(H264Context * const h, int *mb_type){
}
if
(
IS_16X16
(
*
mb_type
)){
int
a
=
0
,
b
=
0
;
fill_rectangle
(
&
h
->
ref_cache
[
0
][
scan8
[
0
]],
4
,
4
,
8
,
(
uint8_t
)
ref
[
0
],
1
);
fill_rectangle
(
&
h
->
ref_cache
[
1
][
scan8
[
0
]],
4
,
4
,
8
,
(
uint8_t
)
ref
[
1
],
1
);
if
(
!
IS_INTRA
(
mb_type_col
)
...
...
@@ -1475,17 +1477,15 @@ static inline void pred_direct_motion(H264Context * const h, int *mb_type){
||
(
l1ref0
[
0
]
<
0
&&
l1ref1
[
0
]
==
0
&&
FFABS
(
l1mv1
[
0
][
0
])
<=
1
&&
FFABS
(
l1mv1
[
0
][
1
])
<=
1
&&
(
h
->
x264_build
>
33
||
!
h
->
x264_build
)))){
if
(
ref
[
0
]
>
0
)
fill_rectangle
(
&
h
->
mv_cache
[
0
][
scan8
[
0
]],
4
,
4
,
8
,
pack16to32
(
mv
[
0
][
0
],
mv
[
0
][
1
]),
4
);
else
fill_rectangle
(
&
h
->
mv_cache
[
0
][
scan8
[
0
]],
4
,
4
,
8
,
0
,
4
);
a
=
pack16to32
(
mv
[
0
][
0
],
mv
[
0
][
1
]);
if
(
ref
[
1
]
>
0
)
fill_rectangle
(
&
h
->
mv_cache
[
1
][
scan8
[
0
]],
4
,
4
,
8
,
pack16to32
(
mv
[
1
][
0
],
mv
[
1
][
1
]),
4
);
else
fill_rectangle
(
&
h
->
mv_cache
[
1
][
scan8
[
0
]],
4
,
4
,
8
,
0
,
4
);
b
=
pack16to32
(
mv
[
1
][
0
],
mv
[
1
][
1
]);
}
else
{
fill_rectangle
(
&
h
->
mv_cache
[
0
][
scan8
[
0
]],
4
,
4
,
8
,
pack16to32
(
mv
[
0
][
0
],
mv
[
0
][
1
]),
4
);
fill_rectangle
(
&
h
->
mv_cache
[
1
][
scan8
[
0
]],
4
,
4
,
8
,
pack16to32
(
mv
[
1
][
0
],
mv
[
1
][
1
]),
4
);
a
=
pack16to32
(
mv
[
0
][
0
],
mv
[
0
][
1
]
);
b
=
pack16to32
(
mv
[
1
][
0
],
mv
[
1
][
1
]
);
}
fill_rectangle
(
&
h
->
mv_cache
[
0
][
scan8
[
0
]],
4
,
4
,
8
,
a
,
4
);
fill_rectangle
(
&
h
->
mv_cache
[
1
][
scan8
[
0
]],
4
,
4
,
8
,
b
,
4
);
}
else
{
for
(
i8
=
0
;
i8
<
4
;
i8
++
){
const
int
x8
=
i8
&
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