-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin refactor of wvdecrypter, sample-aes-cbc support
- Loading branch information
Showing
6 changed files
with
90 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <bento4/Ap4.h> | ||
|
||
enum class ENCRYPTION_SCHEME | ||
{ | ||
NONE, | ||
CENC, | ||
CBCS | ||
}; | ||
|
||
class Adaptive_CencSingleSampleDecrypter : public AP4_CencSingleSampleDecrypter | ||
{ | ||
public: | ||
|
||
Adaptive_CencSingleSampleDecrypter() : AP4_CencSingleSampleDecrypter(0) {}; | ||
|
||
void SetCrypto(AP4_UI08 cryptBlocks, AP4_UI08 skipBlocks) { m_CryptBlocks = cryptBlocks; m_SkipBlocks = skipBlocks; }; | ||
virtual void SetEncryptionScheme(ENCRYPTION_SCHEME encryptionScheme) {}; | ||
AP4_UI08 m_CryptBlocks = 0; | ||
AP4_UI08 m_SkipBlocks = 0; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters