Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
46b83391
Commit
46b83391
authored
Sep 04, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Sep 04, 2014
Browse files
Merge "Removing local set_speed_features() function."
parents
0f0382af
4b60d4a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_encoder.c
View file @
46b83391
...
...
@@ -422,21 +422,6 @@ static void update_reference_segmentation_map(VP9_COMP *cpi) {
}
}
static
void
set_speed_features
(
VP9_COMP
*
cpi
)
{
#if CONFIG_INTERNAL_STATS
int
i
;
for
(
i
=
0
;
i
<
MAX_MODES
;
++
i
)
cpi
->
mode_chosen_counts
[
i
]
=
0
;
#endif
vp9_set_speed_features
(
cpi
);
// Set rd thresholds based on mode and speed setting
vp9_set_rd_speed_thresholds
(
cpi
);
vp9_set_rd_speed_thresholds_sub8x8
(
cpi
);
}
static
void
alloc_raw_frame_buffers
(
VP9_COMP
*
cpi
)
{
VP9_COMMON
*
cm
=
&
cpi
->
common
;
const
VP9EncoderConfig
*
oxcf
=
&
cpi
->
oxcf
;
...
...
@@ -985,7 +970,7 @@ VP9_COMP *vp9_create_compressor(VP9EncoderConfig *oxcf) {
}
}
set_speed_features
(
cpi
);
vp9_
set_speed_features
(
cpi
);
// Allocate memory to store variances for a frame.
CHECK_MEM_ERROR
(
cm
,
cpi
->
source_diff_var
,
...
...
@@ -2246,7 +2231,16 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi,
}
#endif
set_speed_features
(
cpi
);
#if CONFIG_INTERNAL_STATS
int
i
;
for
(
i
=
0
;
i
<
MAX_MODES
;
++
i
)
cpi
->
mode_chosen_counts
[
i
]
=
0
;
#endif
vp9_set_speed_features
(
cpi
);
vp9_set_rd_speed_thresholds
(
cpi
);
vp9_set_rd_speed_thresholds_sub8x8
(
cpi
);
// Decide q and q bounds.
q
=
vp9_rc_pick_q_and_bounds
(
cpi
,
&
bottom_index
,
&
top_index
);
...
...
Write
Preview
Supports
Markdown
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