projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2169425
)
Skip frame bit-stream writing for show-existing frame
author
Jingning Han
<jingning@google.com>
Fri, 17 Aug 2018 19:55:54 +0000
(12:55 -0700)
committer
Jingning Han
<jingning@google.com>
Fri, 17 Aug 2018 23:18:32 +0000
(16:18 -0700)
Make the bit-stream writer match the decoder behavior, when the
show existing frame feature is used.
Change-Id: Ibc8153f8668da0f9a2ed8af3b42dae91a5ac08c7
vp9/encoder/vp9_bitstream.c
patch
|
blob
|
history
diff --git
a/vp9/encoder/vp9_bitstream.c
b/vp9/encoder/vp9_bitstream.c
index 9f39c189b1d5e2fb5b7ef1221811b8209991bce9..79fc160c12cf658eb7413339e196d0258c6b9111 100644
(file)
--- a/
vp9/encoder/vp9_bitstream.c
+++ b/
vp9/encoder/vp9_bitstream.c
@@
-1340,6
+1340,10
@@
void vp9_pack_bitstream(VP9_COMP *cpi, uint8_t *dest, size_t *size) {
struct vpx_write_bit_buffer saved_wb;
write_uncompressed_header(cpi, &wb);
+
+ // Skip the rest coding process if use show existing frame.
+ if (cpi->common.show_existing_frame) return;
+
saved_wb = wb;
vpx_wb_write_literal(&wb, 0, 16); // don't know in advance first part. size