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

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

Issue 23566013: Mpeg2 TS stream parser for media source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from patch set #3 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_MPEG2TS_PMT_PARSER_H_
6 #define MEDIA_MPEG2_MPEG2TS_PMT_PARSER_H_
7
8 #include <vector>
damienv1 2013/09/10 04:57:01 Not needed anymore.
damienv1 2013/09/10 21:03:48 Done.
9
10 #include "base/callback.h"
11 #include "base/compiler_specific.h"
12 #include "media/mpeg2/mpeg2ts_psi.h"
13
14 namespace media {
15 namespace mpeg2ts {
16
17 class Mpeg2TsPmtParser : public Mpeg2TsPsiParser {
18 public:
19 // RegisterPesCb::Run(int pes_pid, int stream_type);
20 // Stream type is defined in
21 // "Table 2-34 – Stream type assignments" in H.222
22 // TODO(damienv): add the program number.
23 typedef base::Callback<void(int, int)> RegisterPesCb;
24
25 explicit Mpeg2TsPmtParser(RegisterPesCb register_pes_cb);
26 virtual ~Mpeg2TsPmtParser();
27
28 // Mpeg2TsPsiParser implementation.
29 virtual bool ParsePsiSection(BitReader* bit_reader) OVERRIDE;
30 virtual void ResetPsiSection() OVERRIDE;
31
32 private:
33 RegisterPesCb register_pes_cb_;
34
35 DISALLOW_COPY_AND_ASSIGN(Mpeg2TsPmtParser);
36 };
37
38 } // namespace mpeg2ts
39 } // namespace media
40
41 #endif
42
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698