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

Unified Diff: media/formats/mp2t/es_parser_h264.h

Issue 364823008: Mpeg2TS - estimate duration for video frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | media/formats/mp2t/es_parser_h264.cc » ('j') | media/formats/mp2t/es_parser_h264.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp2t/es_parser_h264.h
diff --git a/media/formats/mp2t/es_parser_h264.h b/media/formats/mp2t/es_parser_h264.h
index bf4f4cc1d9cda586f9e82ceaff509c3868c047b0..8cbfb872a119266dc53e13960555ac1043bb9af8 100644
--- a/media/formats/mp2t/es_parser_h264.h
+++ b/media/formats/mp2t/es_parser_h264.h
@@ -80,6 +80,9 @@ class MEDIA_EXPORT EsParserH264 : NON_EXPORTED_BASE(public EsParser) {
scoped_ptr<media::OffsetByteQueue> es_queue_;
std::list<std::pair<int64, TimingDesc> > timing_desc_list_;
+ // Duration of the last emitted frame.
+ base::TimeDelta last_frame_duration_;
acolwell GONE FROM CHROMIUM 2014/07/03 00:50:58 Remove? This doesn't appear to be used anywhere.
+
// H264 parser state.
// - |current_access_unit_pos_| is pointing to an annexB syncword
// representing the first NALU of an H264 access unit.
@@ -89,6 +92,11 @@ class MEDIA_EXPORT EsParserH264 : NON_EXPORTED_BASE(public EsParser) {
// Last video decoder config.
VideoDecoderConfig last_video_decoder_config_;
+
+ // History of frame PTS.
+ std::list<base::TimeDelta> frame_pts_history_;
+
+ DISALLOW_COPY_AND_ASSIGN(EsParserH264);
};
} // namespace mp2t
« no previous file with comments | « no previous file | media/formats/mp2t/es_parser_h264.cc » ('j') | media/formats/mp2t/es_parser_h264.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698