6 struct UUID_SampleEncryption_Sample_Entry {
11 struct UUID_SampleEncryption_Sample {
12 std::string InitializationVector;
13 uint32_t NumberOfEntries;
14 std::vector<UUID_SampleEncryption_Sample_Entry> Entries;
17 class UUID_SampleEncryption:
public UUID {
19 UUID_SampleEncryption();
20 void setVersion(uint32_t newVersion);
21 uint32_t getVersion();
22 void setFlags(uint32_t newFlags);
24 void setAlgorithmID(uint32_t newAlgorithmID);
25 uint32_t getAlgorithmID();
26 void setIVSize(uint32_t newIVSize);
28 void setKID(std::string newKID);
30 uint32_t getSampleCount();
31 void setSample(UUID_SampleEncryption_Sample newSample,
size_t index);
32 UUID_SampleEncryption_Sample getSample(
size_t index);
33 std::string toPrettyString(uint32_t indent = 0);
36 class UUID_TrackEncryption:
public UUID {
38 UUID_TrackEncryption();
39 void setVersion(uint32_t newVersion);
40 uint32_t getVersion();
41 void setFlags(uint32_t newFlags);
43 void setDefaultAlgorithmID(uint32_t newAlgorithmID);
44 uint32_t getDefaultAlgorithmID();
45 void setDefaultIVSize(uint8_t newIVSize);
46 uint8_t getDefaultIVSize();
47 void setDefaultKID(std::string newKID);
48 std::string getDefaultKID();
49 std::string toPrettyString(uint32_t indent = 0);
52 class UUID_ProtectionSystemSpecificHeader:
public UUID {
54 UUID_ProtectionSystemSpecificHeader();
55 void setVersion(uint32_t newVersion);
56 uint32_t getVersion();
57 void setFlags(uint32_t newFlags);
59 void setSystemID(std::string newID);
60 std::string getSystemID();
61 void setDataSize(uint32_t newDataSize);
62 uint32_t getDataSize();
63 void setData(std::string newData);
64 std::string getData();
65 std::string toPrettyString(uint32_t indent = 0);
68 class SINF:
public Box {
71 void setEntry(Box & newEntry, uint32_t no);
72 Box & getEntry(uint32_t no);
73 std::string toPrettyString(uint32_t indent = 0);
76 class FRMA:
public Box {
79 void setOriginalFormat(std::string newFormat);
80 std::string getOriginalFormat();
81 std::string toPrettyString(uint32_t indent = 0);
84 class SCHM:
public fullBox {
87 void setSchemeType(uint32_t newType);
88 uint32_t getSchemeType();
89 void setSchemeVersion(uint32_t newVersion);
90 uint32_t getSchemeVersion();
91 void setSchemeURI(std::string newURI);
92 std::string getSchemeURI();
93 std::string toPrettyString(uint32_t indent = 0);
96 class SCHI:
public Box {
99 void setContent(Box & newContent);
101 std::string toPrettyString(uint32_t indent = 0);
uint32_t BytesClear
Definition: mp4_encryption.h:7
Contains all MP4 format related code.
Definition: mp4.cpp:15
uint32_t BytesEncrypted
Definition: mp4_encryption.h:8