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

Unified Diff: media/mp4/cenc.h

Issue 10534172: Implement ISO BMFF support in Media Source (try 2). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: media/mp4/cenc.h
diff --git a/media/mp4/cenc.h b/media/mp4/cenc.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee23743f5ac9c15fdeaef70d61b03c9f0c233b8a
--- /dev/null
+++ b/media/mp4/cenc.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2012 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_MP4_CENC_H_
+#define MEDIA_MP4_CENC_H_
+
+#include <vector>
+
+#include "base/basictypes.h"
+
+namespace media {
+namespace mp4 {
+
+class BufferReader;
+
+struct SubsampleSizes {
+ uint16 clear_size;
+ uint32 encrypted_size;
+};
+
+struct FrameCENCInfo {
+ std::vector<uint8> iv;
+ std::vector<SubsampleSizes> subsamples;
+
+ FrameCENCInfo();
+ ~FrameCENCInfo();
+ bool Parse(int iv_size, BufferReader* r);
+ size_t GetTotalSize() const;
+};
+
+
+} // namespace mp4
+} // namespace media
+
+#endif // MEDIA_MP4_CENC_H_

Powered by Google App Engine
This is Rietveld 408576698