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_SECTION_PARSER_H_ | |
6 #define MEDIA_MPEG2_MPEG2TS_SECTION_PARSER_H_ | |
7 | |
8 namespace media { | |
9 namespace mpeg2ts { | |
10 | |
11 class Mpeg2TsSectionParser { | |
12 public: | |
13 enum SpecialPid { | |
acolwell GONE FROM CHROMIUM
2013/08/29 20:44:24
nit: Add spec section reference for these constant
damienv1
2013/09/04 01:37:13
Done.
| |
14 kPidPat = 0x0, | |
15 kPidCat = 0x1, | |
16 kPidTsdt = 0x2, | |
17 kPidNullPacket = 0x1fff, | |
18 }; | |
19 | |
20 virtual ~Mpeg2TsSectionParser() {} | |
21 | |
22 // Parse the data bytes of the transport packet. | |
23 virtual bool Parse(bool payload_unit_start_indicator, | |
acolwell GONE FROM CHROMIUM
2013/08/29 20:44:24
nit: Document return value.
damienv1
2013/09/04 01:37:13
Done.
| |
24 const uint8* buf, int size) = 0; | |
25 | |
26 // Flush. | |
acolwell GONE FROM CHROMIUM
2013/08/29 20:44:24
nit: This comment isn't very helpful. Please provi
damienv1
2013/09/04 01:37:13
Done.
| |
27 virtual void Flush() = 0; | |
28 }; | |
29 | |
30 } // namespace mpeg2ts | |
31 } // namespace media | |
32 | |
33 #endif | |
OLD | NEW |