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

Unified Diff: media/mpeg2/mpeg2ts_section_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, 4 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/mpeg2ts_section_parser.h
diff --git a/media/mpeg2/mpeg2ts_section_parser.h b/media/mpeg2/mpeg2ts_section_parser.h
new file mode 100644
index 0000000000000000000000000000000000000000..076531015df24a0c0499d5aeb3a22370eb2073eb
--- /dev/null
+++ b/media/mpeg2/mpeg2ts_section_parser.h
@@ -0,0 +1,33 @@
+// 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_MPEG2TS_SECTION_PARSER_H_
+#define MEDIA_MPEG2_MPEG2TS_SECTION_PARSER_H_
+
+namespace media {
+namespace mpeg2ts {
+
+class Mpeg2TsSectionParser {
+ public:
+ enum SpecialPid {
acolwell GONE FROM CHROMIUM 2013/08/29 20:44:24 nit: Add spec section reference for these constant
damienv1 2013/09/04 01:37:13 Done.
+ kPidPat = 0x0,
+ kPidCat = 0x1,
+ kPidTsdt = 0x2,
+ kPidNullPacket = 0x1fff,
+ };
+
+ virtual ~Mpeg2TsSectionParser() {}
+
+ // Parse the data bytes of the transport packet.
+ virtual bool Parse(bool payload_unit_start_indicator,
acolwell GONE FROM CHROMIUM 2013/08/29 20:44:24 nit: Document return value.
damienv1 2013/09/04 01:37:13 Done.
+ const uint8* buf, int size) = 0;
+
+ // Flush.
acolwell GONE FROM CHROMIUM 2013/08/29 20:44:24 nit: This comment isn't very helpful. Please provi
damienv1 2013/09/04 01:37:13 Done.
+ virtual void Flush() = 0;
+};
+
+} // namespace mpeg2ts
+} // namespace media
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698