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 <stdint.h> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/callback.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 namespace mp2t { |
| 18 |
| 19 class TsSectionCetsPssh : public TsSection { |
| 20 public: |
| 21 using RegisterPsshBoxesCb = base::Callback<void(const std::vector<uint8_t>&)>; |
| 22 explicit TsSectionCetsPssh(const RegisterPsshBoxesCb& register_pssh_boxes_cb); |
| 23 ~TsSectionCetsPssh() override; |
| 24 |
| 25 // TsSection implementation. |
| 26 bool Parse(bool payload_unit_start_indicator, |
| 27 const uint8_t* buf, |
| 28 int size) override; |
| 29 void Flush() override; |
| 30 void Reset() override; |
| 31 |
| 32 private: |
| 33 RegisterPsshBoxesCb register_pssh_boxes_cb_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(TsSectionCetsPssh); |
| 36 }; |
| 37 |
| 38 } // namespace mp2t |
| 39 } // namespace media |
| 40 |
| 41 #endif |
OLD | NEW |