| Index: media/mpeg2/mpeg2ts_section_parser.h
|
| diff --git a/media/mpeg2/mpeg2ts_section_parser.h b/media/mpeg2/mpeg2ts_section_parser.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..076531015df24a0c0499d5aeb3a22370eb2073eb
|
| --- /dev/null
|
| +++ b/media/mpeg2/mpeg2ts_section_parser.h
|
| @@ -0,0 +1,33 @@
|
| +// 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_MPEG2_MPEG2TS_SECTION_PARSER_H_
|
| +#define MEDIA_MPEG2_MPEG2TS_SECTION_PARSER_H_
|
| +
|
| +namespace media {
|
| +namespace mpeg2ts {
|
| +
|
| +class Mpeg2TsSectionParser {
|
| + public:
|
| + enum SpecialPid {
|
| + kPidPat = 0x0,
|
| + kPidCat = 0x1,
|
| + kPidTsdt = 0x2,
|
| + kPidNullPacket = 0x1fff,
|
| + };
|
| +
|
| + virtual ~Mpeg2TsSectionParser() {}
|
| +
|
| + // Parse the data bytes of the transport packet.
|
| + virtual bool Parse(bool payload_unit_start_indicator,
|
| + const uint8* buf, int size) = 0;
|
| +
|
| + // Flush.
|
| + virtual void Flush() = 0;
|
| +};
|
| +
|
| +} // namespace mpeg2ts
|
| +} // namespace media
|
| +
|
| +#endif
|
|
|