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

Unified Diff: media/formats/mp2t/ts_section_cat.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: rebase Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/formats/mp2t/mp2t_stream_parser_unittest.cc ('k') | media/formats/mp2t/ts_section_cat.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp2t/ts_section_cat.h
diff --git a/media/formats/mp2t/ts_section_cat.h b/media/formats/mp2t/ts_section_cat.h
new file mode 100644
index 0000000000000000000000000000000000000000..dbeb505d577780bbaa1018e09a8ca1c673ea169b
--- /dev/null
+++ b/media/formats/mp2t/ts_section_cat.h
@@ -0,0 +1,38 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_FORMATS_MP2T_TS_SECTION_CAT_H_
+#define MEDIA_FORMATS_MP2T_TS_SECTION_CAT_H_
+
+#include "base/callback.h"
+#include "base/macros.h"
+#include "media/formats/mp2t/ts_section_psi.h"
+
+namespace media {
+namespace mp2t {
+
+class TsSectionCat : public TsSectionPsi {
+ public:
+ // RegisterCencPidsCb::Run(int ca_pid, int pssh_pid);
+ using RegisterCencPidsCb = base::Callback<void(int, int)>;
+ explicit TsSectionCat(const RegisterCencPidsCb& register_cenc_ids_cb);
+ ~TsSectionCat() override;
+
+ // TsSectionPsi implementation.
+ bool ParsePsiSection(BitReader* bit_reader) override;
+ void ResetPsiSection() override;
+
+ private:
+ RegisterCencPidsCb register_cenc_ids_cb_;
+
+ // Parameters from the CAT.
+ int version_number_;
+
+ DISALLOW_COPY_AND_ASSIGN(TsSectionCat);
+};
+
+} // namespace mp2t
+} // namespace media
+
+#endif
« no previous file with comments | « media/formats/mp2t/mp2t_stream_parser_unittest.cc ('k') | media/formats/mp2t/ts_section_cat.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698