OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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_FORMATS_MP2T_TS_SECTION_CAT_H_ |
| 6 #define MEDIA_FORMATS_MP2T_TS_SECTION_CAT_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" |
| 11 #include "media/formats/mp2t/ts_section_psi.h" |
| 12 |
| 13 namespace media { |
| 14 namespace mp2t { |
| 15 |
| 16 class TsSectionCat : public TsSectionPsi { |
| 17 public: |
| 18 // RegisterCencPidsCb::Run(int ca_pid, int pssh_pid); |
| 19 typedef base::Callback<void(int, int)> RegisterCencPidsCb; |
| 20 explicit TsSectionCat(const RegisterCencPidsCb& register_cenc_ids_cb); |
| 21 ~TsSectionCat() override; |
| 22 |
| 23 // TsSectionPsi implementation. |
| 24 bool ParsePsiSection(BitReader* bit_reader) override; |
| 25 void ResetPsiSection() override; |
| 26 |
| 27 private: |
| 28 RegisterCencPidsCb register_cenc_ids_cb_; |
| 29 |
| 30 // Parameters from the CAT. |
| 31 int version_number_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(TsSectionCat); |
| 34 }; |
| 35 |
| 36 } // namespace mp2t |
| 37 } // namespace media |
| 38 |
| 39 #endif |
OLD | NEW |