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
2af46568
Commit
2af46568
authored
10 years ago
by
James Zern
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "vp9: disable postproc buffer alloc when unnecessary"
parents
b5906291
44472cde
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
vp9/common/vp9_alloccommon.c
+5
-0
5 additions, 0 deletions
vp9/common/vp9_alloccommon.c
with
5 additions
and
0 deletions
vp9/common/vp9_alloccommon.c
+
5
−
0
View file @
2af46568
...
...
@@ -127,12 +127,15 @@ void vp9_free_context_buffers(VP9_COMMON *cm) {
int
vp9_resize_frame_buffers
(
VP9_COMMON
*
cm
,
int
width
,
int
height
)
{
const
int
aligned_width
=
ALIGN_POWER_OF_TWO
(
width
,
MI_SIZE_LOG2
);
const
int
aligned_height
=
ALIGN_POWER_OF_TWO
(
height
,
MI_SIZE_LOG2
);
#if CONFIG_INTERNAL_STATS || CONFIG_VP9_POSTPROC
const
int
ss_x
=
cm
->
subsampling_x
;
const
int
ss_y
=
cm
->
subsampling_y
;
// TODO(agrange): this should be conditionally allocated.
if
(
vp9_realloc_frame_buffer
(
&
cm
->
post_proc_buffer
,
width
,
height
,
ss_x
,
ss_y
,
VP9_DEC_BORDER_IN_PIXELS
,
NULL
,
NULL
,
NULL
)
<
0
)
goto
fail
;
#endif
set_mb_mi
(
cm
,
aligned_width
,
aligned_height
);
...
...
@@ -199,9 +202,11 @@ int vp9_alloc_frame_buffers(VP9_COMMON *cm, int width, int height) {
init_frame_bufs
(
cm
);
#if CONFIG_INTERNAL_STATS || CONFIG_VP9_POSTPROC
if
(
vp9_alloc_frame_buffer
(
&
cm
->
post_proc_buffer
,
width
,
height
,
ss_x
,
ss_y
,
VP9_ENC_BORDER_IN_PIXELS
)
<
0
)
goto
fail
;
#endif
return
0
;
...
...
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