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_PSSH_H_ |
| 6 #define MEDIA_FORMATS_MP2T_TS_SECTION_CETS_PSSH_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/callback.h" |
| 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" |
| 13 #include "media/base/byte_queue.h" |
| 14 #include "media/formats/mp2t/ts_section.h" |
| 15 |
| 16 namespace media { |
| 17 |
| 18 class BitReader; |
| 19 |
| 20 namespace mp2t { |
| 21 |
| 22 class TsSectionCetsPssh : public TsSection { |
| 23 public: |
| 24 // RegisterPsshBoxesCb::Run(const std::vector<uint8> init_data); |
| 25 typedef base::Callback<void(const std::vector<uint8>)> RegisterPsshBoxesCb; |
| 26 explicit TsSectionCetsPssh(const RegisterPsshBoxesCb& register_pssh_boxes_cb); |
| 27 ~TsSectionCetsPssh() override; |
| 28 |
| 29 // TsSection implementation. |
| 30 bool Parse(bool payload_unit_start_indicator, |
| 31 const uint8* buf, |
| 32 int size) override; |
| 33 void Flush() override; |
| 34 void Reset() override; |
| 35 |
| 36 private: |
| 37 RegisterPsshBoxesCb register_pssh_boxes_cb_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(TsSectionCetsPssh); |
| 40 }; |
| 41 |
| 42 } // namespace mp2t |
| 43 } // namespace media |
| 44 |
| 45 #endif |
OLD | NEW |