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_CETS_ECM_H_ |
| 6 #define MEDIA_FORMATS_MP2T_TS_SECTION_CETS_ECM_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
| 12 #include "media/base/byte_queue.h" |
| 13 #include "media/formats/mp2t/ts_section.h" |
| 14 |
| 15 namespace media { |
| 16 |
| 17 class BitReader; |
| 18 class DecryptConfig; |
| 19 |
| 20 namespace mp2t { |
| 21 |
| 22 class TsSectionCetsEcm : public TsSection { |
| 23 public: |
| 24 // RegisterDecryptConfigCb::Run(const DecryptConfig& decrypt_config); |
| 25 using RegisterDecryptConfigCb = |
| 26 base::Callback<void(const DecryptConfig& decrypt_config)>; |
| 27 explicit TsSectionCetsEcm( |
| 28 const RegisterDecryptConfigCb& register_decrypt_config_cb); |
| 29 ~TsSectionCetsEcm() override; |
| 30 |
| 31 // TsSection implementation. |
| 32 bool Parse(bool payload_unit_start_indicator, |
| 33 const uint8_t* buf, |
| 34 int size) override; |
| 35 void Flush() override; |
| 36 void Reset() override; |
| 37 |
| 38 private: |
| 39 RegisterDecryptConfigCb register_decrypt_config_cb_; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(TsSectionCetsEcm); |
| 42 }; |
| 43 |
| 44 } // namespace mp2t |
| 45 } // namespace media |
| 46 |
| 47 #endif |
OLD | NEW |