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

Unified Diff: media/mpeg2/es_parser.h

Issue 23566013: Mpeg2 TS stream parser for media source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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: media/mpeg2/es_parser.h
diff --git a/media/mpeg2/es_parser.h b/media/mpeg2/es_parser.h
new file mode 100644
index 0000000000000000000000000000000000000000..8c126f28fa883bc0dd5eab86611b4db9c120f31c
--- /dev/null
+++ b/media/mpeg2/es_parser.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_MPEG2_ES_PARSER_H_
+#define MEDIA_MPEG2_ES_PARSER_H_
+
+#include "base/basictypes.h"
+#include "base/time/time.h"
+
+namespace media {
+namespace mpeg2ts {
+
+class EsParser {
+ public:
+ EsParser() {}
+ virtual ~EsParser() {}
+
+ // ES parsing.
+ // TODO(damienv): Would the data_alignment_indicator
+ // of Mpeg2 TS be useful as an additional argument ?
acolwell GONE FROM CHROMIUM 2013/09/05 18:29:10 nit: Does this TODO need to stay? It isn't a call
damienv1 2013/09/09 23:29:45 Removed.
+ // Should use kNoTimestamp when a timestamp is not valid.
+ virtual void Parse(const uint8* buf, int size,
+ base::TimeDelta pts,
+ base::TimeDelta dts) = 0;
+
+ // Flush any pending buffer.
+ virtual void Flush() = 0;
+};
+
+} // namespace mpeg2ts
+} // namespace media
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698