Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guillaume Martres
aom-rav1e
Commits
fd935f30
Commit
fd935f30
authored
Jun 07, 2013
by
John Koleszar
Committed by
Gerrit Code Review
Jun 07, 2013
Browse files
Merge "Add cheap show-buffer operation" into experimental
parents
229f9a5f
2584a5e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp9/decoder/vp9_decodframe.c
View file @
fd935f30
...
...
@@ -935,10 +935,17 @@ size_t read_uncompressed_header(VP9D_COMP *pbi,
cm
->
version
=
vp9_rb_read_bit
(
rb
);
RESERVED
;
if
(
vp9_rb_read_bit
(
rb
))
{
// show an existing frame directly
int
frame_to_show
=
cm
->
ref_frame_map
[
vp9_rb_read_literal
(
rb
,
3
)];
ref_cnt_fb
(
cm
->
fb_idx_ref_cnt
,
&
cm
->
new_fb_idx
,
frame_to_show
);
pbi
->
refresh_frame_flags
=
0
;
cm
->
filter_level
=
0
;
return
0
;
}
cm
->
frame_type
=
(
FRAME_TYPE
)
vp9_rb_read_bit
(
rb
);
cm
->
show_frame
=
vp9_rb_read_bit
(
rb
);
scaling_active
=
vp9_rb_read_bit
(
rb
);
RESERVED
;
if
(
cm
->
frame_type
==
KEY_FRAME
)
{
if
(
vp9_rb_read_literal
(
rb
,
8
)
!=
SYNC_CODE_0
||
...
...
@@ -1047,6 +1054,11 @@ int vp9_decode_frame(VP9D_COMP *pbi, const uint8_t **p_data_end) {
const
int
keyframe
=
pc
->
frame_type
==
KEY_FRAME
;
YV12_BUFFER_CONFIG
*
new_fb
=
&
pc
->
yv12_fb
[
pc
->
new_fb_idx
];
if
(
!
first_partition_size
)
{
// showing a frame directly
*
p_data_end
=
data
+
1
;
return
0
;
}
data
+=
vp9_rb_bytes_read
(
&
rb
);
xd
->
corrupted
=
0
;
new_fb
->
corrupted
=
0
;
...
...
vp9/encoder/vp9_bitstream.c
View file @
fd935f30
...
...
@@ -1311,10 +1311,10 @@ void write_uncompressed_header(VP9_COMP *cpi,
vp9_wb_write_bit
(
wb
,
cm
->
version
);
vp9_wb_write_bit
(
wb
,
0
);
vp9_wb_write_bit
(
wb
,
0
);
vp9_wb_write_bit
(
wb
,
cm
->
frame_type
);
vp9_wb_write_bit
(
wb
,
cm
->
show_frame
);
vp9_wb_write_bit
(
wb
,
scaling_active
);
vp9_wb_write_bit
(
wb
,
0
);
if
(
cm
->
frame_type
==
KEY_FRAME
)
{
vp9_wb_write_literal
(
wb
,
SYNC_CODE_0
,
8
);
...
...
Write
Preview
Markdown
is supported
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