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

Unified Diff: media/mp2t/ts_section_pat.h

Issue 23566013: Mpeg2 TS stream parser for media source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup - address comments from patch set #8 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/mp2t/ts_section_pat.h
diff --git a/media/mp2t/ts_section_pat.h b/media/mp2t/ts_section_pat.h
new file mode 100644
index 0000000000000000000000000000000000000000..44a0142e3142a10f04b8af21afe762bd611d6b11
--- /dev/null
+++ b/media/mp2t/ts_section_pat.h
@@ -0,0 +1,40 @@
+// 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_MP2T_TS_SECTION_PAT_H_
+#define MEDIA_MP2T_TS_SECTION_PAT_H_
+
+#include "base/callback.h"
+#include "base/compiler_specific.h"
+#include "media/mp2t/ts_section_psi.h"
+
+namespace media {
+namespace mp2t {
+
+class TsSectionPat : public TsSectionPsi {
+ public:
+ // RegisterPmtCb::Run(int program_number, int pmt_pid);
+ typedef base::Callback<void(int, int)> RegisterPmtCb;
+
+ explicit TsSectionPat(RegisterPmtCb register_pmt_cb);
acolwell GONE FROM CHROMIUM 2013/09/16 06:19:30 nit: const&
damienv1 2013/09/17 02:58:22 Done.
+ virtual ~TsSectionPat();
+
+ // TsSectionPsi implementation.
+ virtual bool ParsePsiSection(BitReader* bit_reader) OVERRIDE;
+ virtual void ResetPsiSection() OVERRIDE;
+
+ private:
+ RegisterPmtCb register_pmt_cb_;
+
+ // Parameters from the PAT.
+ int version_number_;
+
+ DISALLOW_COPY_AND_ASSIGN(TsSectionPat);
+};
+
+} // namespace mp2t
+} // namespace media
+
+#endif
+

Powered by Google App Engine
This is Rietveld 408576698