| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_FORMATS_MP2T_TS_SECTION_H_ | 5 #ifndef MEDIA_FORMATS_MP2T_TS_SECTION_H_ |
| 6 #define MEDIA_FORMATS_MP2T_TS_SECTION_H_ | 6 #define MEDIA_FORMATS_MP2T_TS_SECTION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 namespace media { | 10 namespace media { |
| 9 namespace mp2t { | 11 namespace mp2t { |
| 10 | 12 |
| 11 class TsSection { | 13 class TsSection { |
| 12 public: | 14 public: |
| 13 // From ISO/IEC 13818-1 or ITU H.222 spec: Table 2-3 - PID table. | 15 // From ISO/IEC 13818-1 or ITU H.222 spec: Table 2-3 - PID table. |
| 14 enum SpecialPid { | 16 enum SpecialPid { |
| 15 kPidPat = 0x0, | 17 kPidPat = 0x0, |
| 16 kPidCat = 0x1, | 18 kPidCat = 0x1, |
| 17 kPidTsdt = 0x2, | 19 kPidTsdt = 0x2, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 virtual void Flush() = 0; | 34 virtual void Flush() = 0; |
| 33 | 35 |
| 34 // Reset the state of the parser to its initial state. | 36 // Reset the state of the parser to its initial state. |
| 35 virtual void Reset() = 0; | 37 virtual void Reset() = 0; |
| 36 }; | 38 }; |
| 37 | 39 |
| 38 } // namespace mp2t | 40 } // namespace mp2t |
| 39 } // namespace media | 41 } // namespace media |
| 40 | 42 |
| 41 #endif | 43 #endif |
| OLD | NEW |