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

Side by Side Diff: media/mp2t/ts_section_pat.h

Issue 23566013: Mpeg2 TS stream parser for media source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comment about DCHECK vs RCHECK 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_MP2T_TS_SECTION_PAT_H_
6 #define MEDIA_MP2T_TS_SECTION_PAT_H_
7
8 #include "base/callback.h"
9 #include "base/compiler_specific.h"
10 #include "media/mp2t/ts_section_psi.h"
11
12 namespace media {
13 namespace mp2t {
14
15 class TsSectionPat : public TsSectionPsi {
16 public:
17 // RegisterPmtCb::Run(int program_number, int pmt_pid);
18 typedef base::Callback<void(int, int)> RegisterPmtCb;
19
20 explicit TsSectionPat(RegisterPmtCb register_pmt_cb);
21 virtual ~TsSectionPat();
22
23 // TsSectionPsi implementation.
24 virtual bool ParsePsiSection(BitReader* bit_reader) OVERRIDE;
25 virtual void ResetPsiSection() OVERRIDE;
26
27 private:
28 RegisterPmtCb register_pmt_cb_;
29
30 // Parameters from the PAT.
31 int version_number_;
32
33 DISALLOW_COPY_AND_ASSIGN(TsSectionPat);
34 };
35
36 } // namespace mp2t
37 } // namespace media
38
39 #endif
40
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698