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
516ea8d2
Commit
516ea8d2
authored
Dec 02, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix indention
Originally committed as revision 7206 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1994e7c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
motion_est_template.c
libavcodec/motion_est_template.c
+17
-17
No files found.
libavcodec/motion_est_template.c
View file @
516ea8d2
...
...
@@ -1038,11 +1038,11 @@ static always_inline int epzs_motion_search_internal(MpegEncContext * s, int *mx
CHECK_CLIPED_MV
((
P_MEDIAN
[
0
]
>>
shift
)
,
(
P_MEDIAN
[
1
]
>>
shift
)
+
1
)
CHECK_CLIPED_MV
((
P_MEDIAN
[
0
]
>>
shift
)
-
1
,
(
P_MEDIAN
[
1
]
>>
shift
)
)
CHECK_CLIPED_MV
((
P_MEDIAN
[
0
]
>>
shift
)
+
1
,
(
P_MEDIAN
[
1
]
>>
shift
)
)
CHECK_CLIPED_MV
((
last_mv
[
ref_mv_xy
][
0
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
,
(
last_mv
[
ref_mv_xy
][
1
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
)
CHECK_MV
(
P_LEFT
[
0
]
>>
shift
,
P_LEFT
[
1
]
>>
shift
)
CHECK_MV
(
P_TOP
[
0
]
>>
shift
,
P_TOP
[
1
]
>>
shift
)
CHECK_MV
(
P_TOPRIGHT
[
0
]
>>
shift
,
P_TOPRIGHT
[
1
]
>>
shift
)
CHECK_CLIPED_MV
((
last_mv
[
ref_mv_xy
][
0
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
,
(
last_mv
[
ref_mv_xy
][
1
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
)
CHECK_MV
(
P_LEFT
[
0
]
>>
shift
,
P_LEFT
[
1
]
>>
shift
)
CHECK_MV
(
P_TOP
[
0
]
>>
shift
,
P_TOP
[
1
]
>>
shift
)
CHECK_MV
(
P_TOPRIGHT
[
0
]
>>
shift
,
P_TOPRIGHT
[
1
]
>>
shift
)
}
if
(
dmin
>
h
*
h
*
4
){
if
(
c
->
pre_pass
){
...
...
@@ -1143,12 +1143,12 @@ static int epzs_motion_search4(MpegEncContext * s,
}
else
{
CHECK_MV
(
P_MV1
[
0
]
>>
shift
,
P_MV1
[
1
]
>>
shift
)
//FIXME try some early stop
CHECK_MV
(
P_MEDIAN
[
0
]
>>
shift
,
P_MEDIAN
[
1
]
>>
shift
)
CHECK_MV
(
P_LEFT
[
0
]
>>
shift
,
P_LEFT
[
1
]
>>
shift
)
CHECK_MV
(
P_TOP
[
0
]
>>
shift
,
P_TOP
[
1
]
>>
shift
)
CHECK_MV
(
P_TOPRIGHT
[
0
]
>>
shift
,
P_TOPRIGHT
[
1
]
>>
shift
)
CHECK_CLIPED_MV
((
last_mv
[
ref_mv_xy
][
0
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
,
(
last_mv
[
ref_mv_xy
][
1
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
)
CHECK_MV
(
P_MEDIAN
[
0
]
>>
shift
,
P_MEDIAN
[
1
]
>>
shift
)
CHECK_MV
(
P_LEFT
[
0
]
>>
shift
,
P_LEFT
[
1
]
>>
shift
)
CHECK_MV
(
P_TOP
[
0
]
>>
shift
,
P_TOP
[
1
]
>>
shift
)
CHECK_MV
(
P_TOPRIGHT
[
0
]
>>
shift
,
P_TOPRIGHT
[
1
]
>>
shift
)
CHECK_CLIPED_MV
((
last_mv
[
ref_mv_xy
][
0
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
,
(
last_mv
[
ref_mv_xy
][
1
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
)
}
if
(
dmin
>
64
*
4
){
CHECK_CLIPED_MV
((
last_mv
[
ref_mv_xy
+
1
][
0
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
,
...
...
@@ -1203,12 +1203,12 @@ static int epzs_motion_search2(MpegEncContext * s,
}
else
{
CHECK_MV
(
P_MV1
[
0
]
>>
shift
,
P_MV1
[
1
]
>>
shift
)
//FIXME try some early stop
CHECK_MV
(
P_MEDIAN
[
0
]
>>
shift
,
P_MEDIAN
[
1
]
>>
shift
)
CHECK_MV
(
P_LEFT
[
0
]
>>
shift
,
P_LEFT
[
1
]
>>
shift
)
CHECK_MV
(
P_TOP
[
0
]
>>
shift
,
P_TOP
[
1
]
>>
shift
)
CHECK_MV
(
P_TOPRIGHT
[
0
]
>>
shift
,
P_TOPRIGHT
[
1
]
>>
shift
)
CHECK_CLIPED_MV
((
last_mv
[
ref_mv_xy
][
0
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
,
(
last_mv
[
ref_mv_xy
][
1
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
)
CHECK_MV
(
P_MEDIAN
[
0
]
>>
shift
,
P_MEDIAN
[
1
]
>>
shift
)
CHECK_MV
(
P_LEFT
[
0
]
>>
shift
,
P_LEFT
[
1
]
>>
shift
)
CHECK_MV
(
P_TOP
[
0
]
>>
shift
,
P_TOP
[
1
]
>>
shift
)
CHECK_MV
(
P_TOPRIGHT
[
0
]
>>
shift
,
P_TOPRIGHT
[
1
]
>>
shift
)
CHECK_CLIPED_MV
((
last_mv
[
ref_mv_xy
][
0
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
,
(
last_mv
[
ref_mv_xy
][
1
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
)
}
if
(
dmin
>
64
*
4
){
CHECK_CLIPED_MV
((
last_mv
[
ref_mv_xy
+
1
][
0
]
*
ref_mv_scale
+
(
1
<<
15
))
>>
16
,
...
...
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