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

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

Issue 23566013: Mpeg2 TS stream parser for media source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_PAT_PARSER_H_
6 #define MEDIA_MPEG2_MPEG2TS_PAT_PARSER_H_
7
8 #include <vector>
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 Mpeg2TsPatParser : public Mpeg2TsPsiParser {
18 public:
19 // RegisterPmtCb::Run(int program_number, int pmt_pid);
20 typedef base::Callback<void(int, int)> RegisterPmtCb;
21
22 explicit Mpeg2TsPatParser(RegisterPmtCb register_pmt_cb);
23 virtual ~Mpeg2TsPatParser();
24
25 // Mpeg2TsPsiParser implementation.
26 virtual bool ParsePsiSection(BitReader* bit_reader) OVERRIDE;
27
28 private:
29 RegisterPmtCb register_pmt_cb_;
30
31 // Parameters from the PAT
32 // TODO(damienv): Verify the version number is the same
33 // or is incremented by 1.
34 int version_number_;
35
36 DISALLOW_COPY_AND_ASSIGN(Mpeg2TsPatParser);
37 };
38
39 } // namespace mpeg2ts
40 } // namespace media
41
42 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698