OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_MPEG2_MPEG2TS_PMT_PARSER_H_ |
| 6 #define MEDIA_MPEG2_MPEG2TS_PMT_PARSER_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/callback.h" |
| 11 #include "base/compiler_specific.h" |
| 12 #include "media/mpeg2/mpeg2ts_psi.h" |
| 13 |
| 14 namespace media { |
| 15 namespace mpeg2ts { |
| 16 |
| 17 class Mpeg2TsPmtParser : public Mpeg2TsPsiParser { |
| 18 public: |
| 19 // RegisterPesCb::Run(int pes_pid, int stream_type); |
| 20 // Stream type is defined in |
| 21 // "Table 2-34 – Stream type assignments" in H.222 |
| 22 // TODO(damienv): add the program number. |
| 23 typedef base::Callback<void(int, int)> RegisterPesCb; |
| 24 |
| 25 explicit Mpeg2TsPmtParser(RegisterPesCb register_pes_cb); |
| 26 virtual ~Mpeg2TsPmtParser(); |
| 27 |
| 28 // Mpeg2TsPsiParser implementation. |
| 29 virtual bool ParsePsiSection(BitReader* bit_reader) OVERRIDE; |
| 30 |
| 31 private: |
| 32 RegisterPesCb register_pes_cb_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(Mpeg2TsPmtParser); |
| 35 }; |
| 36 |
| 37 } // namespace mpeg2ts |
| 38 } // namespace media |
| 39 |
| 40 #endif |
| 41 |
OLD | NEW |