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
824e9410
Commit
824e9410
authored
13 years ago
by
John Koleszar
Committed by
Code Review
13 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Don't allow very short GF groups even when the GF is predicted from an ARF."
parents
8c5b73de
9f002bee
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp8/encoder/firstpass.c
+18
-19
18 additions, 19 deletions
vp8/encoder/firstpass.c
with
18 additions
and
19 deletions
vp8/encoder/firstpass.c
+
18
−
19
View file @
824e9410
...
@@ -1558,6 +1558,24 @@ static void define_gf_group(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame)
...
@@ -1558,6 +1558,24 @@ static void define_gf_group(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame)
cpi
->
gfu_boost
=
(
int
)(
boost_score
*
100
.
0
)
>>
4
;
cpi
->
gfu_boost
=
(
int
)(
boost_score
*
100
.
0
)
>>
4
;
// Dont allow conventional gf too near the next kf
if
((
cpi
->
twopass
.
frames_to_key
-
i
)
<
MIN_GF_INTERVAL
)
{
while
(
i
<
cpi
->
twopass
.
frames_to_key
)
{
i
++
;
if
(
EOF
==
input_stats
(
cpi
,
this_frame
))
break
;
if
(
i
<
cpi
->
twopass
.
frames_to_key
)
{
mod_frame_err
=
calculate_modified_err
(
cpi
,
this_frame
);
gf_group_err
+=
mod_frame_err
;
}
}
}
// Should we use the alternate refernce frame
// Should we use the alternate refernce frame
if
(
allow_alt_ref
&&
if
(
allow_alt_ref
&&
(
i
>=
MIN_GF_INTERVAL
)
&&
(
i
>=
MIN_GF_INTERVAL
)
&&
...
@@ -1680,25 +1698,6 @@ static void define_gf_group(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame)
...
@@ -1680,25 +1698,6 @@ static void define_gf_group(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame)
cpi
->
baseline_gf_interval
=
i
;
cpi
->
baseline_gf_interval
=
i
;
}
}
// Conventional GF
if
(
!
cpi
->
source_alt_ref_pending
)
{
// Dont allow conventional gf too near the next kf
if
((
cpi
->
twopass
.
frames_to_key
-
cpi
->
baseline_gf_interval
)
<
MIN_GF_INTERVAL
)
{
while
(
cpi
->
baseline_gf_interval
<
cpi
->
twopass
.
frames_to_key
)
{
if
(
EOF
==
input_stats
(
cpi
,
this_frame
))
break
;
cpi
->
baseline_gf_interval
++
;
if
(
cpi
->
baseline_gf_interval
<
cpi
->
twopass
.
frames_to_key
)
gf_group_err
+=
calculate_modified_err
(
cpi
,
this_frame
);
}
}
}
// Now decide how many bits should be allocated to the GF group as a proportion of those remaining in the kf group.
// Now decide how many bits should be allocated to the GF group as a proportion of those remaining in the kf group.
// The final key frame group in the clip is treated as a special case where cpi->twopass.kf_group_bits is tied to cpi->twopass.bits_left.
// The final key frame group in the clip is treated as a special case where cpi->twopass.kf_group_bits is tied to cpi->twopass.bits_left.
// This is also important for short clips where there may only be one key frame.
// This is also important for short clips where there may only be one key frame.
...
...
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