Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
054689b2
Commit
054689b2
authored
Jul 19, 2016
by
Zoe Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A small refactor on the rate controller
Change-Id: Ie39e16de2457dd201121c62967e4ddaf5a05c33a
parent
95fef214
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
vp10/encoder/ratectrl.c
vp10/encoder/ratectrl.c
+5
-2
No files found.
vp10/encoder/ratectrl.c
View file @
054689b2
...
...
@@ -201,8 +201,7 @@ int vp10_rc_clamp_pframe_target_size(const VP10_COMP *const cpi, int target) {
const
VP10EncoderConfig
*
oxcf
=
&
cpi
->
oxcf
;
const
int
min_frame_target
=
VPXMAX
(
rc
->
min_frame_bandwidth
,
rc
->
avg_frame_bandwidth
>>
5
);
if
(
target
<
min_frame_target
)
target
=
min_frame_target
;
// Clip the frame target to the minimum setup value.
#if CONFIG_EXT_REFS
if
(
cpi
->
rc
.
is_src_frame_alt_ref
)
{
#else
...
...
@@ -213,7 +212,10 @@ int vp10_rc_clamp_pframe_target_size(const VP10_COMP *const cpi, int target) {
// The active maximum quantizer insures that an appropriate
// number of bits will be spent if needed for constructed ARFs.
target
=
min_frame_target
;
}
else
if
(
target
<
min_frame_target
)
{
target
=
min_frame_target
;
}
// Clip the frame target to the maximum allowed value.
if
(
target
>
rc
->
max_frame_bandwidth
)
target
=
rc
->
max_frame_bandwidth
;
...
...
@@ -222,6 +224,7 @@ int vp10_rc_clamp_pframe_target_size(const VP10_COMP *const cpi, int target) {
oxcf
->
rc_max_inter_bitrate_pct
/
100
;
target
=
VPXMIN
(
target
,
max_rate
);
}
return
target
;
}
...
...
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