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_ES_PARSER_H_ |
| 6 #define MEDIA_MPEG2_ES_PARSER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/time/time.h" |
| 10 |
| 11 namespace media { |
| 12 namespace mpeg2ts { |
| 13 |
| 14 class EsParser { |
| 15 public: |
| 16 EsParser() {} |
| 17 virtual ~EsParser() {} |
| 18 |
| 19 // ES parsing. |
| 20 // TODO(damienv): Would the data_alignment_indicator |
| 21 // of Mpeg2 TS be useful as an additional argument ? |
| 22 virtual void Parse(const uint8* buf, int size, |
| 23 bool is_pts_valid, base::TimeDelta pts, |
| 24 bool is_dts_valid, base::TimeDelta dts) = 0; |
| 25 |
| 26 // Flush any pending buffer. |
| 27 virtual void Flush() = 0; |
| 28 }; |
| 29 |
| 30 } // namespace mpeg2ts |
| 31 } // namespace media |
| 32 |
| 33 #endif |
OLD | NEW |