-
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
9 changed files
with
199 additions
and
118 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,33 @@ | ||
/* | ||
* Copyright (C) 2022 Team Kodi | ||
* This file is part of Kodi - https://kodi.tv | ||
* | ||
* SPDX-License-Identifier: GPL-2.0-or-later | ||
* See LICENSES/README.md for more information. | ||
*/ | ||
|
||
#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 = static_cast<uint32_t>(cryptBlocks); | ||
m_SkipBlocks = static_cast<uint32_t>(skipBlocks); | ||
}; | ||
virtual void SetEncryptionScheme(ENCRYPTION_SCHEME encryptionScheme){}; | ||
|
||
protected: | ||
uint32_t m_CryptBlocks{0}; | ||
uint32_t 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
Oops, something went wrong.