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
8363349b
Commit
8363349b
authored
11 years ago
by
Frank Galligan
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix the initial references to frame buffers."
parents
61da0870
9ed616a5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
vp9/common/vp9_onyxc_int.h
+4
-2
4 additions, 2 deletions
vp9/common/vp9_onyxc_int.h
vp9/decoder/vp9_decodeframe.c
+0
-6
0 additions, 6 deletions
vp9/decoder/vp9_decodeframe.c
vp9/decoder/vp9_onyxd_if.c
+3
-0
3 additions, 0 deletions
vp9/decoder/vp9_onyxd_if.c
with
7 additions
and
8 deletions
vp9/common/vp9_onyxc_int.h
+
4
−
2
View file @
8363349b
...
...
@@ -238,8 +238,10 @@ static int get_free_fb(VP9_COMMON *cm) {
}
static
void
ref_cnt_fb
(
int
*
buf
,
int
*
idx
,
int
new_idx
)
{
if
(
buf
[
*
idx
]
>
0
)
buf
[
*
idx
]
--
;
const
int
ref_index
=
*
idx
;
if
(
ref_index
>
0
&&
buf
[
ref_index
]
>
0
)
buf
[
ref_index
]
--
;
*
idx
=
new_idx
;
...
...
This diff is collapsed.
Click to expand it.
vp9/decoder/vp9_decodeframe.c
+
0
−
6
View file @
8363349b
...
...
@@ -687,12 +687,6 @@ static void apply_frame_size(VP9D_COMP *pbi, int width, int height) {
if
(
cm
->
width
!=
width
||
cm
->
height
!=
height
)
{
// Change in frame size.
if
(
cm
->
width
==
0
||
cm
->
height
==
0
)
{
// Assign new frame buffer on first call.
cm
->
new_fb_idx
=
NUM_YV12_BUFFERS
-
1
;
cm
->
fb_idx_ref_cnt
[
cm
->
new_fb_idx
]
=
1
;
}
// TODO(agrange) Don't test width/height, check overall size.
if
(
width
>
cm
->
width
||
height
>
cm
->
height
)
{
// Rescale frame buffers only if they're not big enough already.
...
...
This diff is collapsed.
Click to expand it.
vp9/decoder/vp9_onyxd_if.c
+
3
−
0
View file @
8363349b
...
...
@@ -125,6 +125,9 @@ VP9D_PTR vp9_create_decompressor(VP9D_CONFIG *oxcf) {
vp9_zero
(
*
pbi
);
// Initialize the references to not point to any frame buffers.
memset
(
&
cm
->
ref_frame_map
,
-
1
,
sizeof
(
cm
->
ref_frame_map
));
if
(
setjmp
(
cm
->
error
.
jmp
))
{
cm
->
error
.
setjmp
=
0
;
vp9_remove_decompressor
(
pbi
);
...
...
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