Add GetMinimumSize() for Labels and ensure it's zero for empty Links.
[chromium-blink-merge.git] / media / mp2t / es_parser.h
blobda06c5ef6733b87dc234c1a1e702e6d29e2098e7
1 // Copyright 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.
5 #ifndef MEDIA_MP2T_ES_PARSER_H_
6 #define MEDIA_MP2T_ES_PARSER_H_
8 #include "base/basictypes.h"
9 #include "base/callback.h"
10 #include "base/memory/ref_counted.h"
11 #include "base/time/time.h"
13 namespace media {
15 class StreamParserBuffer;
17 namespace mp2t {
19 class EsParser {
20 public:
21 typedef base::Callback<void(scoped_refptr<StreamParserBuffer>)> EmitBufferCB;
23 EsParser() {}
24 virtual ~EsParser() {}
26 // ES parsing.
27 // Should use kNoTimestamp when a timestamp is not valid.
28 virtual bool Parse(const uint8* buf, int size,
29 base::TimeDelta pts,
30 base::TimeDelta dts) = 0;
32 // Flush any pending buffer.
33 virtual void Flush() = 0;
35 // Reset the state of the ES parser.
36 virtual void Reset() = 0;
39 } // namespace mp2t
40 } // namespace media
42 #endif