Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
591e383d
Commit
591e383d
authored
11 years ago
by
Dmitry Kovalev
Browse files
Options
Downloads
Patches
Plain Diff
Adding temp variable q to vp9_cyclic_refresh_setup().
Change-Id: If0e9c811c8ae78c0914d615bad0067a5b57e4a71
parent
dc89e9b0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/encoder/vp9_aq_cyclicrefresh.c
+3
-4
3 additions, 4 deletions
vp9/encoder/vp9_aq_cyclicrefresh.c
with
3 additions
and
4 deletions
vp9/encoder/vp9_aq_cyclicrefresh.c
+
3
−
4
View file @
591e383d
...
...
@@ -200,6 +200,7 @@ void vp9_cyclic_refresh_setup(VP9_COMP *const cpi) {
// Rate target ratio to set q delta.
const
float
rate_ratio_qdelta
=
2
.
0
;
const
double
q
=
vp9_convert_qindex_to_q
(
cm
->
base_qindex
);
vp9_clear_system_state
();
// Some of these parameters may be set via codec-control function later.
cr
->
max_sbs_perframe
=
10
;
...
...
@@ -209,14 +210,12 @@ void vp9_cyclic_refresh_setup(VP9_COMP *const cpi) {
// Set rate threshold to some fraction of target (and scaled by 256).
cr
->
thresh_rate_sb
=
(
rc
->
sb64_target_rate
*
256
)
>>
2
;
// Distortion threshold, quadratic in Q, scale factor to be adjusted.
cr
->
thresh_dist_sb
=
8
*
(
int
)(
vp9_convert_qindex_to_q
(
cm
->
base_qindex
)
*
vp9_convert_qindex_to_q
(
cm
->
base_qindex
));
cr
->
thresh_dist_sb
=
8
*
(
int
)(
q
*
q
);
if
(
cpi
->
sf
.
use_nonrd_pick_mode
)
{
// May want to be more conservative with thresholds in non-rd mode for now
// as rate/distortion are derived from model based on prediction residual.
cr
->
thresh_rate_sb
=
(
rc
->
sb64_target_rate
*
256
)
>>
3
;
cr
->
thresh_dist_sb
=
4
*
(
int
)(
vp9_convert_qindex_to_q
(
cm
->
base_qindex
)
*
vp9_convert_qindex_to_q
(
cm
->
base_qindex
));
cr
->
thresh_dist_sb
=
4
*
(
int
)(
q
*
q
);
}
cr
->
num_seg_blocks
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment