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
da9402fb
Commit
da9402fb
authored
14 years ago
by
Yunqing Wang
Committed by
Code Review
14 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allocate source buffers to be multiples of 16"
parents
0c2cfff9
da227b90
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/onyx_if.c
+4
-2
4 additions, 2 deletions
vp8/encoder/onyx_if.c
with
4 additions
and
2 deletions
vp8/encoder/onyx_if.c
+
4
−
2
View file @
da9402fb
...
...
@@ -1267,6 +1267,8 @@ void vp8_set_speed_features(VP8_COMP *cpi)
static
void
alloc_raw_frame_buffers
(
VP8_COMP
*
cpi
)
{
int
i
,
buffers
;
/* allocate source_buffer to be multiples of 16 */
int
width
=
(
cpi
->
oxcf
.
Width
+
15
)
&
~
15
;
buffers
=
cpi
->
oxcf
.
lag_in_frames
;
...
...
@@ -1278,7 +1280,7 @@ static void alloc_raw_frame_buffers(VP8_COMP *cpi)
for
(
i
=
0
;
i
<
buffers
;
i
++
)
if
(
vp8_yv12_alloc_frame_buffer
(
&
cpi
->
src_buffer
[
i
].
source_buffer
,
cpi
->
oxcf
.
W
idth
,
cpi
->
oxcf
.
Height
,
w
idth
,
cpi
->
oxcf
.
Height
,
16
))
vpx_internal_error
(
&
cpi
->
common
.
error
,
VPX_CODEC_MEM_ERROR
,
"Failed to allocate lag buffer"
);
...
...
@@ -1286,7 +1288,7 @@ static void alloc_raw_frame_buffers(VP8_COMP *cpi)
#if VP8_TEMPORAL_ALT_REF
if
(
vp8_yv12_alloc_frame_buffer
(
&
cpi
->
alt_ref_buffer
.
source_buffer
,
cpi
->
oxcf
.
W
idth
,
cpi
->
oxcf
.
Height
,
16
))
w
idth
,
cpi
->
oxcf
.
Height
,
16
))
vpx_internal_error
(
&
cpi
->
common
.
error
,
VPX_CODEC_MEM_ERROR
,
"Failed to allocate altref buffer"
);
...
...
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