Chromium Code Reviews| 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> | |
|
damienv1
2013/09/10 04:57:01
Not needed anymore.
damienv1
2013/09/10 21:03:48
Done.
| |
| 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 virtual void ResetPsiSection() OVERRIDE; | |
| 31 | |
| 32 private: | |
| 33 RegisterPesCb register_pes_cb_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(Mpeg2TsPmtParser); | |
| 36 }; | |
| 37 | |
| 38 } // namespace mpeg2ts | |
| 39 } // namespace media | |
| 40 | |
| 41 #endif | |
| 42 | |
| OLD | NEW |