Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: media/formats/mp2t/ts_section_cets_pssh.h

Issue 1517473002: Support HLS MPEG2 TS with SAMPLE-AES encryption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@encryption_scheme
Patch Set: ddorwin comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
18 class BitReader;
19
20 namespace mp2t {
21
22 class TsSectionCetsPssh : public TsSection {
23 public:
24 using RegisterPsshBoxesCb = base::Callback<void(const std::vector<uint8_t>&)>;
25 explicit TsSectionCetsPssh(const RegisterPsshBoxesCb& register_pssh_boxes_cb);
26 ~TsSectionCetsPssh() override;
27
28 // TsSection implementation.
29 bool Parse(bool payload_unit_start_indicator,
30 const uint8_t* buf,
31 int size) override;
32 void Flush() override;
33 void Reset() override;
34
35 private:
36 RegisterPsshBoxesCb register_pssh_boxes_cb_;
37
38 DISALLOW_COPY_AND_ASSIGN(TsSectionCetsPssh);
39 };
40
41 } // namespace mp2t
42 } // namespace media
43
44 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698