Skip to content
GitLab
Menu
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
8e4d5e41
Commit
8e4d5e41
authored
Apr 10, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Apr 10, 2014
Browse files
Merge "Moving last_frame_type update out from vp9_rc_postencode_update."
parents
c8406c65
a286ff80
Changes
3
Show whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_onyx_if.c
View file @
8e4d5e41
...
...
@@ -2658,6 +2658,7 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi,
get_ref_frame_flags
(
cpi
);
cm
->
last_frame_type
=
cm
->
frame_type
;
vp9_rc_postencode_update
(
cpi
,
*
size
);
if
(
cm
->
frame_type
==
KEY_FRAME
)
{
...
...
vp9/encoder/vp9_ratectrl.c
View file @
8e4d5e41
...
...
@@ -1065,11 +1065,10 @@ static void update_golden_frame_stats(VP9_COMP *cpi) {
}
void
vp9_rc_postencode_update
(
VP9_COMP
*
cpi
,
uint64_t
bytes_used
)
{
VP9_COMMON
*
const
cm
=
&
cpi
->
common
;
const
VP9_COMMON
*
const
cm
=
&
cpi
->
common
;
const
VP9_CONFIG
*
const
oxcf
=
&
cpi
->
oxcf
;
RATE_CONTROL
*
const
rc
=
&
cpi
->
rc
;
cm
->
last_frame_type
=
cm
->
frame_type
;
// Update rate control heuristics
rc
->
projected_frame_size
=
(
int
)(
bytes_used
<<
3
);
...
...
vp9/encoder/vp9_ratectrl.h
View file @
8e4d5e41
...
...
@@ -125,8 +125,7 @@ void vp9_rc_get_svc_params(struct VP9_COMP *cpi);
// Post encode update of the rate control parameters based
// on bytes used
void
vp9_rc_postencode_update
(
struct
VP9_COMP
*
cpi
,
uint64_t
bytes_used
);
void
vp9_rc_postencode_update
(
struct
VP9_COMP
*
cpi
,
uint64_t
bytes_used
);
// Post encode update of the rate control parameters for dropped frames
void
vp9_rc_postencode_update_drop_frame
(
struct
VP9_COMP
*
cpi
);
...
...
Write
Preview
Supports
Markdown
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