| Index: media/mpeg2/es_parser.h
|
| diff --git a/media/mpeg2/es_parser.h b/media/mpeg2/es_parser.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6595e517cb8db3c2256d252611eb414fea9d3f92
|
| --- /dev/null
|
| +++ b/media/mpeg2/es_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_ES_PARSER_H_
|
| +#define MEDIA_MPEG2_ES_PARSER_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/time/time.h"
|
| +
|
| +namespace media {
|
| +namespace mpeg2ts {
|
| +
|
| +class EsParser {
|
| + public:
|
| + EsParser() {}
|
| + virtual ~EsParser() {}
|
| +
|
| + // ES parsing.
|
| + // TODO(damienv): Would the data_alignment_indicator
|
| + // of Mpeg2 TS be useful as an additional argument ?
|
| + virtual void Parse(const uint8* buf, int size,
|
| + bool is_pts_valid, base::TimeDelta pts,
|
| + bool is_dts_valid, base::TimeDelta dts) = 0;
|
| +
|
| + // Flush any pending buffer.
|
| + virtual void Flush() = 0;
|
| +};
|
| +
|
| +} // namespace mpeg2ts
|
| +} // namespace media
|
| +
|
| +#endif
|
|
|