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
cf320213
Commit
cf320213
authored
Jan 22, 2015
by
Paul Wilkins
Committed by
Gerrit Code Review
Jan 22, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Bug when last group before forced key frame is short."
parents
cd0830f4
0bff1efc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
vp9/encoder/vp9_firstpass.c
vp9/encoder/vp9_firstpass.c
+3
-0
vp9/encoder/vp9_ratectrl.c
vp9/encoder/vp9_ratectrl.c
+8
-2
vp9/encoder/vp9_ratectrl.h
vp9/encoder/vp9_ratectrl.h
+1
-0
No files found.
vp9/encoder/vp9_firstpass.c
View file @
cf320213
...
...
@@ -1843,6 +1843,9 @@ static void define_gf_group(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) {
twopass
->
gf_zeromotion_pct
=
(
int
)(
zero_motion_accumulator
*
1000
.
0
);
// Was the group length constrained by the requirement for a new KF?
rc
->
constrained_gf_group
=
(
i
>=
rc
->
frames_to_key
)
?
1
:
0
;
// Set the interval until the next gf.
if
(
cpi
->
common
.
frame_type
==
KEY_FRAME
||
rc
->
source_alt_ref_active
)
rc
->
baseline_gf_interval
=
i
-
1
;
...
...
vp9/encoder/vp9_ratectrl.c
View file @
cf320213
...
...
@@ -1254,7 +1254,9 @@ void vp9_rc_postencode_update(VP9_COMP *cpi, uint64_t bytes_used) {
// better than that already stored.
// This is used to help set quality in forced key frames to reduce popping
if
((
qindex
<
rc
->
last_boosted_qindex
)
||
(((
cm
->
frame_type
==
KEY_FRAME
)
||
cpi
->
refresh_alt_ref_frame
||
(
cm
->
frame_type
==
KEY_FRAME
)
||
(
!
rc
->
constrained_gf_group
&&
(
cpi
->
refresh_alt_ref_frame
||
(
cpi
->
refresh_golden_frame
&&
!
rc
->
is_src_frame_alt_ref
))))
{
rc
->
last_boosted_qindex
=
qindex
;
}
...
...
@@ -1358,8 +1360,12 @@ void vp9_rc_get_one_pass_vbr_params(VP9_COMP *cpi) {
rc
->
baseline_gf_interval
=
DEFAULT_GF_INTERVAL
;
rc
->
frames_till_gf_update_due
=
rc
->
baseline_gf_interval
;
// NOTE: frames_till_gf_update_due must be <= frames_to_key.
if
(
rc
->
frames_till_gf_update_due
>
rc
->
frames_to_key
)
if
(
rc
->
frames_till_gf_update_due
>
rc
->
frames_to_key
)
{
rc
->
frames_till_gf_update_due
=
rc
->
frames_to_key
;
rc
->
constrained_gf_group
=
1
;
}
else
{
rc
->
constrained_gf_group
=
0
;
}
cpi
->
refresh_golden_frame
=
1
;
rc
->
source_alt_ref_pending
=
USE_ALTREF_FOR_ONE_PASS
;
rc
->
gfu_boost
=
DEFAULT_GF_BOOST
;
...
...
vp9/encoder/vp9_ratectrl.h
View file @
cf320213
...
...
@@ -55,6 +55,7 @@ typedef struct {
int
max_gf_interval
;
int
static_scene_max_gf_interval
;
int
baseline_gf_interval
;
int
constrained_gf_group
;
int
frames_to_key
;
int
frames_since_key
;
int
this_key_frame_forced
;
...
...
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