Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yushin Cho
aom-rav1e
Commits
46ce6dde
Commit
46ce6dde
authored
Nov 18, 2013
by
Jingning Han
Committed by
Gerrit Code Review
Nov 18, 2013
Browse files
Merge "Constrain encoder motion search range"
parents
e3168b0c
bbe68fbd
Changes
3
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_firstpass.c
View file @
46ce6dde
...
...
@@ -406,8 +406,6 @@ static void first_pass_motion_search(VP9_COMP *cpi, MACROBLOCK *x,
// for first pass test
while
((
quart_frm
<<
sr
)
<
MAX_FULL_PEL_VAL
)
sr
++
;
if
(
sr
)
sr
--
;
step_param
+=
sr
;
further_steps
-=
sr
;
...
...
vp9/encoder/vp9_mcomp.c
View file @
46ce6dde
...
...
@@ -51,9 +51,6 @@ int vp9_init_search_range(VP9_COMP *cpi, int size) {
while
((
size
<<
sr
)
<
MAX_FULL_PEL_VAL
)
sr
++
;
if
(
sr
)
sr
--
;
sr
+=
cpi
->
sf
.
reduce_first_step_size
;
sr
=
MIN
(
sr
,
(
cpi
->
sf
.
max_step_search_steps
-
2
));
return
sr
;
...
...
vp9/encoder/vp9_mcomp.h
View file @
46ce6dde
...
...
@@ -18,8 +18,9 @@
// The maximum number of steps in a step search given the largest
// allowed initial step
#define MAX_MVSEARCH_STEPS 11
// Max full pel mv specified in 1 pel units
#define MAX_FULL_PEL_VAL ((1 << (MAX_MVSEARCH_STEPS)) - 1)
// Max full pel mv specified in the unit of full pixel
// Enable the use of motion vector in range [-1023, 1023].
#define MAX_FULL_PEL_VAL ((1 << (MAX_MVSEARCH_STEPS - 1)) - 1)
// Maximum size of the first step in full pel units
#define MAX_FIRST_STEP (1 << (MAX_MVSEARCH_STEPS-1))
// Allowed motion vector pixel distance outside image border
...
...
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