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
c08a01a6
Commit
c08a01a6
authored
Sep 13, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pre_cmp fix
Originally committed as revision 3458 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
49e5dcbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
motion_est_template.c
libavcodec/motion_est_template.c
+10
-3
No files found.
libavcodec/motion_est_template.c
View file @
c08a01a6
...
...
@@ -855,7 +855,7 @@ static always_inline int epzs_motion_search_internal(MpegEncContext * s, int *mx
int
best
[
2
]
=
{
0
,
0
};
int
d
,
dmin
;
int
map_generation
;
const
int
penalty_factor
=
c
->
penalty_factor
;
int
penalty_factor
;
const
int
ref_mv_stride
=
s
->
mb_stride
;
//pass as arg FIXME
const
int
ref_mv_xy
=
s
->
mb_x
+
s
->
mb_y
*
ref_mv_stride
;
//add to last_mv beforepassing FIXME
me_cmp_func
cmpf
,
chroma_cmpf
;
...
...
@@ -863,8 +863,15 @@ static always_inline int epzs_motion_search_internal(MpegEncContext * s, int *mx
LOAD_COMMON
LOAD_COMMON2
cmpf
=
s
->
dsp
.
me_cmp
[
size
];
chroma_cmpf
=
s
->
dsp
.
me_cmp
[
size
+
1
];
if
(
c
->
pre_pass
){
penalty_factor
=
c
->
pre_penalty_factor
;
cmpf
=
s
->
dsp
.
me_pre_cmp
[
size
];
chroma_cmpf
=
s
->
dsp
.
me_pre_cmp
[
size
+
1
];
}
else
{
penalty_factor
=
c
->
penalty_factor
;
cmpf
=
s
->
dsp
.
me_cmp
[
size
];
chroma_cmpf
=
s
->
dsp
.
me_cmp
[
size
+
1
];
}
map_generation
=
update_map_generation
(
c
);
...
...
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