Updating XTBs based on .GRDs from branch master
[chromium-blink-merge.git] / media / formats / mp2t / ts_section_pmt.h
blob6c82d78ff655c5ab226c5766247f6768f9a749b9
1 // Copyright 2014 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_FORMATS_MP2T_TS_SECTION_PMT_H_
6 #define MEDIA_FORMATS_MP2T_TS_SECTION_PMT_H_
8 #include "base/callback.h"
9 #include "base/compiler_specific.h"
10 #include "media/formats/mp2t/ts_section_psi.h"
12 namespace media {
13 namespace mp2t {
15 class TsSectionPmt : public TsSectionPsi {
16 public:
17 // RegisterPesCb::Run(int pes_pid, int stream_type);
18 // Stream type is defined in
19 // "Table 2-34 – Stream type assignments" in H.222
20 // TODO(damienv): add the program number.
21 typedef base::Callback<void(int, int)> RegisterPesCb;
23 explicit TsSectionPmt(const RegisterPesCb& register_pes_cb);
24 ~TsSectionPmt() override;
26 // Mpeg2TsPsiParser implementation.
27 bool ParsePsiSection(BitReader* bit_reader) override;
28 void ResetPsiSection() override;
30 private:
31 RegisterPesCb register_pes_cb_;
33 DISALLOW_COPY_AND_ASSIGN(TsSectionPmt);
36 } // namespace mp2t
37 } // namespace media
39 #endif