Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Yushin Cho
aom-rav1e
Commits
64742f82
Commit
64742f82
authored
Jul 01, 2014
by
Yunqing Wang
Committed by
Gerrit Code Review
Jul 01, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Elevate NEWMV mode checking threshold in real time"
parents
2f16e79e
f31ff029
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
vp9/encoder/vp9_rdopt.c
vp9/encoder/vp9_rdopt.c
+5
-0
vp9/encoder/vp9_speed_features.c
vp9/encoder/vp9_speed_features.c
+5
-0
vp9/encoder/vp9_speed_features.h
vp9/encoder/vp9_speed_features.h
+3
-0
No files found.
vp9/encoder/vp9_rdopt.c
View file @
64742f82
...
...
@@ -4273,6 +4273,7 @@ int64_t vp9_rd_pick_inter_mode_sub8x8(VP9_COMP *cpi, MACROBLOCK *x,
void
vp9_set_rd_speed_thresholds
(
VP9_COMP
*
cpi
)
{
int
i
;
RD_OPT
*
const
rd
=
&
cpi
->
rd
;
SPEED_FEATURES
*
const
sf
=
&
cpi
->
sf
;
// Set baseline threshold values
for
(
i
=
0
;
i
<
MAX_MODES
;
++
i
)
...
...
@@ -4350,6 +4351,10 @@ void vp9_set_rd_speed_thresholds(VP9_COMP *cpi) {
rd
->
thresh_mult
[
THR_COMP_NEARGA
]
=
INT_MAX
;
rd
->
thresh_mult
[
THR_COMP_NEWGA
]
=
INT_MAX
;
}
// Adjust threshold only in real time mode, which only use last reference
// frame.
rd
->
thresh_mult
[
THR_NEWMV
]
+=
sf
->
elevate_newmv_thresh
;
}
void
vp9_set_rd_speed_thresholds_sub8x8
(
VP9_COMP
*
cpi
)
{
...
...
vp9/encoder/vp9_speed_features.c
View file @
64742f82
...
...
@@ -277,11 +277,15 @@ static void set_rt_speed_feature(VP9_COMP *cpi, SPEED_FEATURES *sf,
// This feature is only enabled when partition search is disabled.
sf
->
reuse_inter_pred_sby
=
1
;
// Increase mode checking threshold for NEWMV.
sf
->
elevate_newmv_thresh
=
2000
;
}
if
(
speed
>=
7
)
{
sf
->
lpf_pick
=
LPF_PICK_MINIMAL_LPF
;
sf
->
encode_breakout_thresh
=
(
MIN
(
cm
->
width
,
cm
->
height
)
>=
720
)
?
800
:
300
;
sf
->
elevate_newmv_thresh
=
2500
;
}
if
(
speed
>=
8
)
{
int
i
;
...
...
@@ -352,6 +356,7 @@ void vp9_set_speed_features(VP9_COMP *cpi) {
sf
->
always_this_block_size
=
BLOCK_16X16
;
sf
->
search_type_check_frequency
=
50
;
sf
->
encode_breakout_thresh
=
0
;
sf
->
elevate_newmv_thresh
=
0
;
// Recode loop tolerence %.
sf
->
recode_tolerance
=
25
;
...
...
vp9/encoder/vp9_speed_features.h
View file @
64742f82
...
...
@@ -361,6 +361,9 @@ typedef struct SPEED_FEATURES {
// This variable sets the encode_breakout threshold. Currently, it is only
// enabled in real time mode.
int
encode_breakout_thresh
;
// In real time encoding, increase the threshold for NEWMV.
int
elevate_newmv_thresh
;
}
SPEED_FEATURES
;
struct
VP9_COMP
;
...
...
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