Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Unified Diff: content/common/gpu/media/h264_dpb.h

Issue 1369673002: H264Decoder: Handle gaps in frame_num. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/h264_dpb.h
diff --git a/content/common/gpu/media/h264_dpb.h b/content/common/gpu/media/h264_dpb.h
index 67330d944c76ff8b69c0bb550d5254cabc7bb25d..a1b4ba2ff5e66a8c4d37a0ebafde8958af1cb53d 100644
--- a/content/common/gpu/media/h264_dpb.h
+++ b/content/common/gpu/media/h264_dpb.h
@@ -39,11 +39,15 @@ class H264Picture : public base::RefCounted<H264Picture> {
// Values calculated per H.264 specification or taken from slice header.
// See spec for more details on each (some names have been converted from
// CamelCase in spec to Chromium-style names).
+ int pic_order_cnt_type;
int top_field_order_cnt;
int bottom_field_order_cnt;
int pic_order_cnt;
int pic_order_cnt_msb;
int pic_order_cnt_lsb;
+ int delta_pic_order_cnt_bottom;
+ int delta_pic_order_cnt0;
+ int delta_pic_order_cnt1;
int pic_num;
int long_term_pic_num;
@@ -53,7 +57,9 @@ class H264Picture : public base::RefCounted<H264Picture> {
int long_term_frame_idx;
media::H264SliceHeader::Type type;
+ int nal_ref_idc;
bool idr; // IDR picture?
+ int idr_pic_id; // Valid only if idr == true.
bool ref; // reference picture?
bool long_term; // long term reference picture?
bool outputted;
@@ -61,6 +67,10 @@ class H264Picture : public base::RefCounted<H264Picture> {
// picture has finished decoding?
bool mem_mgmt_5;
+ // Created by the decoding process for gaps in frame_num.
+ // Not for decode or output.
+ bool nonexisting;
+
Field field;
// Values from slice_hdr to be used during reference marking and

Powered by Google App Engine
This is Rietveld 408576698