Skip to content
GitLab
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
5ba4b16c
Commit
5ba4b16c
authored
Dec 19, 2013
by
Marco Paniconi
Browse files
Initialize avg_frame_qindex to worst_allowed for 1 pass.
Change-Id: I535bde16c8fc4c2cd263bbbbaed46ead4c776090
parent
84b4d8c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_onyx_if.c
View file @
5ba4b16c
...
...
@@ -1094,12 +1094,18 @@ static void init_config(VP9_PTR ptr, VP9_CONFIG *oxcf) {
// Initialize active best and worst q and average q values.
cpi
->
rc
.
active_worst_quality
=
cpi
->
oxcf
.
worst_allowed_q
;
cpi
->
rc
.
avg_frame_qindex
[
0
]
=
(
cpi
->
oxcf
.
worst_allowed_q
+
cpi
->
oxcf
.
best_allowed_q
)
/
2
;
cpi
->
rc
.
avg_frame_qindex
[
1
]
=
(
cpi
->
oxcf
.
worst_allowed_q
+
cpi
->
oxcf
.
best_allowed_q
)
/
2
;
cpi
->
rc
.
avg_frame_qindex
[
2
]
=
(
cpi
->
oxcf
.
worst_allowed_q
+
cpi
->
oxcf
.
best_allowed_q
)
/
2
;
if
(
cpi
->
pass
==
0
&&
cpi
->
oxcf
.
end_usage
==
USAGE_STREAM_FROM_SERVER
)
{
cpi
->
rc
.
avg_frame_qindex
[
0
]
=
cpi
->
oxcf
.
worst_allowed_q
;
cpi
->
rc
.
avg_frame_qindex
[
1
]
=
cpi
->
oxcf
.
worst_allowed_q
;
cpi
->
rc
.
avg_frame_qindex
[
2
]
=
cpi
->
oxcf
.
worst_allowed_q
;
}
else
{
cpi
->
rc
.
avg_frame_qindex
[
0
]
=
(
cpi
->
oxcf
.
worst_allowed_q
+
cpi
->
oxcf
.
best_allowed_q
)
/
2
;
cpi
->
rc
.
avg_frame_qindex
[
1
]
=
(
cpi
->
oxcf
.
worst_allowed_q
+
cpi
->
oxcf
.
best_allowed_q
)
/
2
;
cpi
->
rc
.
avg_frame_qindex
[
2
]
=
(
cpi
->
oxcf
.
worst_allowed_q
+
cpi
->
oxcf
.
best_allowed_q
)
/
2
;
}
cpi
->
rc
.
last_q
[
0
]
=
cpi
->
oxcf
.
best_allowed_q
;
cpi
->
rc
.
last_q
[
1
]
=
cpi
->
oxcf
.
best_allowed_q
;
cpi
->
rc
.
last_q
[
2
]
=
cpi
->
oxcf
.
best_allowed_q
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment