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

Unified Diff: media/mp4/cenc.h

Issue 10651006: Add Common Encryption support to BMFF, including subsample decryption. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Satisfy mac_rel buildbot Created 8 years, 5 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
« no previous file with comments | « media/mp4/box_definitions.cc ('k') | media/mp4/cenc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mp4/cenc.h
diff --git a/media/mp4/cenc.h b/media/mp4/cenc.h
index ee23743f5ac9c15fdeaef70d61b03c9f0c233b8a..e558559a9394215428ac7b2e3366335a6ba96766 100644
--- a/media/mp4/cenc.h
+++ b/media/mp4/cenc.h
@@ -8,25 +8,21 @@
#include <vector>
#include "base/basictypes.h"
+#include "media/base/decrypt_config.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;
+ uint8 iv[16];
+ std::vector<SubsampleEntry> subsamples;
FrameCENCInfo();
~FrameCENCInfo();
bool Parse(int iv_size, BufferReader* r);
- size_t GetTotalSize() const;
+ size_t GetTotalSizeOfSubsamples() const;
};
« no previous file with comments | « media/mp4/box_definitions.cc ('k') | media/mp4/cenc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698