Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: media/mpeg2/es_parser.h

Issue 23566013: Mpeg2 TS stream parser for media source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add basic unit tests + Cleanup Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 // Should use kNoTimestamp when a timestamp is not valid.
23 virtual void Parse(const uint8* buf, int size,
acolwell GONE FROM CHROMIUM 2013/09/05 18:29:10 Should return a value so that parse errors can be
damienv1 2013/09/09 23:29:46 Done.
24 base::TimeDelta pts,
25 base::TimeDelta dts) = 0;
26
27 // Flush any pending buffer.
28 virtual void Flush() = 0;
29 };
30
31 } // namespace mpeg2ts
32 } // namespace media
33
34 #endif
OLDNEW
« no previous file with comments | « media/media.gyp ('k') | media/mpeg2/es_parser_adts.h » ('j') | media/mpeg2/es_parser_adts.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698