Skip to content

Conversation

@MarijnS95
Copy link
Member

Fixes #439

Comment on lines +32 to +38
#[doc(alias = "AMediaCodecCryptoInfo_new")]
pub fn new(
num_sub_samples: i32,
key: &[u8; 16],
iv: &[u8; 16],
mode: ffi::cryptoinfo_mode_t,
) -> Option<Self> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This API/function isn't really done yet, I'll look for some testing material before merging this.

Comment on lines +103 to +105
/// one of AMEDIACODECRYPTOINFO_MODE_CLEAR or AMEDIACODECRYPTOINFO_MODE_AES_CTR.
#[doc(alias = "AMediaCodecCryptoInfo_getMode")]
pub fn mode(&self) -> ffi::cryptoinfo_mode_t {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still needs to be wrapped in an enum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AMediaExtractor and MediaCodec

3 participants