Searched defs:numSubSamples (Results 1 - 20 of 20) sorted by relevance

/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DAesCtrDecryptor.cpp33 size_t numSubSamples,
45 for (size_t i = 0; i < numSubSamples; ++i) {
29 decrypt(const android::Vector<uint8_t>& key, const Iv iv, const uint8_t* source, uint8_t* destination, const SubSample* subSamples, size_t numSubSamples, size_t* bytesDecryptedOut) argument
H A DCryptoPlugin.cpp37 const SubSample* subSamples, size_t numSubSamples,
47 for (size_t i = 0; i < numSubSamples; ++i) {
68 numSubSamples, &bytesDecrypted);
35 decrypt(bool secure, const KeyId keyId, const Iv iv, Mode mode, const Pattern & , const void* srcPtr, const SubSample* subSamples, size_t numSubSamples, void* dstPtr, AString* errorDetailMsg) argument
H A DSession.cpp67 size_t numSubSamples, size_t* bytesDecryptedOut) {
82 numSubSamples, bytesDecryptedOut);
64 decrypt( const KeyId keyId, const Iv iv, const void* source, void* destination, const SubSample* subSamples, size_t numSubSamples, size_t* bytesDecryptedOut) argument
/frameworks/av/drm/mediadrm/plugins/clearkey/tests/
H A DAesCtrDecryptorUnittest.cpp35 size_t numSubSamples, size_t* bytesDecryptedOut) {
41 numSubSamples, bytesDecryptedOut);
49 size_t numSubSamples) {
53 subSamples, numSubSamples,
33 attemptDecrypt(const Key& key, const Iv& iv, const uint8_t* source, uint8_t* destination, const SubSample* subSamples, size_t numSubSamples, size_t* bytesDecryptedOut) argument
45 attemptDecryptExpectingSuccess(const Key& key, const Iv& iv, const uint8_t* encrypted, const uint8_t* decrypted, const SubSample* subSamples, size_t numSubSamples) argument
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDrm.h96 int numSubSamples; member in struct:android::NuPlayerDrm::CryptoInfo
105 int numSubSamples,
H A DNuPlayerDrm.cpp234 int numSubSamples,
243 sizeof(CryptoPlugin::SubSample) * numSubSamples;
249 ret->numSubSamples = numSubSamples;
258 for (int i = 0; i < numSubSamples; i++) {
282 size_t numSubSamples = cryptedsize / sizeof(size_t); local
284 if (numSubSamples <= 0) {
285 ALOGE("getSampleCryptoInfo INVALID numSubSamples: %zu", numSubSamples);
327 return makeCryptoInfo(numSubSamples,
233 makeCryptoInfo( int numSubSamples, uint8_t key[kBlockSize], uint8_t iv[kBlockSize], CryptoPlugin::Mode mode, size_t *clearbytes, size_t *encryptedbytes) argument
[all...]
/frameworks/av/include/media/
H A DMediaCasDefs.h75 size_t numSubSamples; member in class:android::media::MediaDescrambler::DescrambleInfo
/frameworks/base/media/java/android/media/
H A DMediaDescrambler.java184 if (cryptoInfo.numSubSamples <= 0) {
186 "Invalid CryptoInfo: invalid numSubSamples=" + cryptoInfo.numSubSamples);
192 && cryptoInfo.numBytesOfClearData.length < cryptoInfo.numSubSamples) {
196 && cryptoInfo.numBytesOfEncryptedData.length < cryptoInfo.numSubSamples) {
207 cryptoInfo.numSubSamples,
240 byte key, int numSubSamples, int[] numBytesOfClearData, int[] numBytesOfEncryptedData,
239 native_descramble( byte key, int numSubSamples, int[] numBytesOfClearData, int[] numBytesOfEncryptedData, @NonNull ByteBuffer srcBuf, int srcOffset, int srcLimit, ByteBuffer dstBuf, int dstOffset, int dstLimit) argument
H A DMediaCodec.java2368 public int numSubSamples; field in class:MediaCodec.CryptoInfo
2459 numSubSamples = newNumSubSamples;
2479 builder.append(numSubSamples + " subsamples, key [");
/frameworks/av/drm/libmediadrm/
H A DCrypto.cpp240 const CryptoPlugin::SubSample *subSamples, size_t numSubSamples,
265 numSubSamples, destPtr, errorDetailMsg);
237 decrypt(const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const sp<IMemory> &source, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const ICrypto::DestinationBuffer &destination, AString *errorDetailMsg) argument
H A DICrypto.cpp102 const CryptoPlugin::SubSample *subSamples, size_t numSubSamples,
124 for (size_t i = 0; i < numSubSamples; ++i) {
134 data.writeInt32(numSubSamples);
135 data.write(subSamples, sizeof(CryptoPlugin::SubSample) * numSubSamples);
338 int32_t numSubSamples = data.readInt32(); local
339 if (numSubSamples < 0 || numSubSamples > 0xffff) {
345 new CryptoPlugin::SubSample[numSubSamples];
348 sizeof(CryptoPlugin::SubSample) * numSubSamples);
372 for (int32_t i = 0; i < numSubSamples;
99 decrypt(const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const SourceBuffer &source, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const DestinationBuffer &destination, AString *errorDetailMsg) argument
[all...]
H A DCryptoHal.cpp284 const CryptoPlugin::SubSample *subSamples, size_t numSubSamples,
315 for (size_t i = 0; i < numSubSamples; i++) {
281 decrypt(const uint8_t keyId[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const ICrypto::SourceBuffer &source, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const ICrypto::DestinationBuffer &destination, AString *errorDetailMsg) argument
/frameworks/av/drm/mediacas/plugins/mock/
H A DMockCasPlugin.cpp213 size_t numSubSamples,
223 subSamplesToString(subSamples, numSubSamples).string(),
242 SubSample const *subSamples, size_t numSubSamples) const
245 for (size_t i = 0; i < numSubSamples; i++) {
210 descramble( bool secure, ScramblingControl scramblingControl, size_t numSubSamples, const SubSample *subSamples, const void *srcPtr, int32_t srcOffset, void *dstPtr, int32_t dstOffset, AString *errorDetailMsg) argument
/frameworks/av/drm/mediacas/plugins/clearkey/
H A DClearKeyCasPlugin.cpp344 size_t numSubSamples, const DescramblerPlugin::SubSample *subSamples,
367 for (size_t i = 0; i < numSubSamples; i++) {
433 size_t numSubSamples,
444 subSamplesToString(subSamples, numSubSamples).string(),
454 numSubSamples, subSamples,
473 SubSample const *subSamples, size_t numSubSamples) const
476 for (size_t i = 0; i < numSubSamples; i++) {
342 decrypt( bool secure, DescramblerPlugin::ScramblingControl scramblingControl, size_t numSubSamples, const DescramblerPlugin::SubSample *subSamples, const void *srcPtr, void *dstPtr, AString * ) argument
430 descramble( bool secure, ScramblingControl scramblingControl, size_t numSubSamples, const SubSample *subSamples, const void *srcPtr, int32_t srcOffset, void *dstPtr, int32_t dstOffset, AString *errorDetailMsg) argument
/frameworks/av/media/ndk/
H A DNdkMediaExtractor.cpp339 size_t numSubSamples = cryptedsize / sizeof(size_t); local
374 numSubSamples,
/frameworks/base/media/jni/
H A Dandroid_media_MediaDescrambler.cpp129 size_t numSubSamples,
150 info.numSubSamples = numSubSamples;
192 static ssize_t getSubSampleInfo(JNIEnv *env, jint numSubSamples, argument
196 if (numSubSamples <= 0 || numSubSamples >=
201 ALOGE("numSubSamples is invalid!");
219 new(std::nothrow) DescramblerPlugin::SubSample[numSubSamples];
226 for (jint i = 0; i < numSubSamples; ++i) {
290 JNIEnv *env, jobject thiz, jbyte key, jint numSubSamples,
127 descramble( jbyte key, size_t numSubSamples, ssize_t totalLength, DescramblerPlugin::SubSample *subSamples, const void *srcPtr, jint srcOffset, void *dstPtr, jint dstOffset, ssize_t *result) argument
289 android_media_MediaDescrambler_native_descramble( JNIEnv *env, jobject thiz, jbyte key, jint numSubSamples, jintArray numBytesOfClearDataObj, jintArray numBytesOfEncryptedDataObj, jobject srcBuf, jint srcOffset, jint srcLimit, jobject dstBuf, jint dstOffset, jint dstLimit) argument
[all...]
H A Dandroid_media_MediaExtractor.cpp530 size_t numSubSamples = size / sizeof(int32_t); local
532 if (numSubSamples == 0) {
536 jintArray numBytesOfEncryptedDataObj = env->NewIntArray(numSubSamples);
539 for (size_t i = 0; i < numSubSamples; ++i) {
553 numBytesOfPlainDataObj = env->NewIntArray(numSubSamples);
556 for (size_t i = 0; i < numSubSamples; ++i) {
601 (jint)numSubSamples,
H A Dandroid_media_MediaCodec.cpp342 size_t numSubSamples,
351 index, offset, subSamples, numSubSamples, key, iv, mode, pattern,
1298 jint numSubSamples = local
1345 if (numSubSamples <= 0) {
1351 && env->GetArrayLength(numBytesOfEncryptedDataObj) < numSubSamples) {
1354 && env->GetArrayLength(numBytesOfClearDataObj) < numSubSamples) {
1358 } else if ( CC_UNLIKELY(numSubSamples >= (signed)(INT32_MAX / sizeof(*subSamples))) ) {
1373 subSamples = new CryptoPlugin::SubSample[numSubSamples];
1375 for (jint i = 0; i < numSubSamples; ++i) {
1420 subSamples, numSubSamples,
338 queueSecureInputBuffer( size_t index, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument
[all...]
/frameworks/av/drm/mediadrm/plugins/mock/
H A DMockDrmCryptoPlugin.cpp797 const SubSample *subSamples, size_t numSubSamples,
807 subSamplesToString(subSamples, numSubSamples).string(),
824 size_t numSubSamples) const
827 for (size_t i = 0; i < numSubSamples; i++) {
795 decrypt(bool secure, const uint8_t key[16], const uint8_t iv[16], Mode mode, const Pattern &pattern, const void *srcPtr, const SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString * ) argument
/frameworks/av/media/libstagefright/
H A DMediaCodec.cpp1028 size_t numSubSamples,
1044 msg->setSize("numSubSamples", numSubSamples);
2722 size_t numSubSamples; local
2738 numSubSamples = 1;
2752 CHECK(msg->findSize("numSubSamples", &numSubSamples));
2764 for (size_t i = 0; i < numSubSamples; ++i) {
2808 numSubSamples,
1024 queueSecureInputBuffer( size_t index, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument

Completed in 719 milliseconds