Index: media/mp2t/ts_section_pmt.h |
diff --git a/media/mp2t/ts_section_pmt.h b/media/mp2t/ts_section_pmt.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c4e45e9fe681a6b06a43a8ed331357b290899721 |
--- /dev/null |
+++ b/media/mp2t/ts_section_pmt.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_PMT_H_ |
+#define MEDIA_MP2T_TS_SECTION_PMT_H_ |
+ |
+#include "base/callback.h" |
+#include "base/compiler_specific.h" |
+#include "media/mp2t/ts_section_psi.h" |
+ |
+namespace media { |
+namespace mp2t { |
+ |
+class TsSectionPmt : public TsSectionPsi { |
+ public: |
+ // RegisterPesCb::Run(int pes_pid, int stream_type); |
+ // Stream type is defined in |
+ // "Table 2-34 – Stream type assignments" in H.222 |
+ // TODO(damienv): add the program number. |
+ typedef base::Callback<void(int, int)> RegisterPesCb; |
+ |
+ explicit TsSectionPmt(const RegisterPesCb& register_pes_cb); |
+ virtual ~TsSectionPmt(); |
+ |
+ // Mpeg2TsPsiParser implementation. |
+ virtual bool ParsePsiSection(BitReader* bit_reader) OVERRIDE; |
+ virtual void ResetPsiSection() OVERRIDE; |
+ |
+ private: |
+ RegisterPesCb register_pes_cb_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(TsSectionPmt); |
+}; |
+ |
+} // namespace mp2t |
+} // namespace media |
+ |
+#endif |
+ |