Searched defs:subSamples (Results 1 - 18 of 18) sorted by relevance

/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DAesCtrDecryptor.cpp32 const SubSample* subSamples,
46 const SubSample& subSample = subSamples[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,
48 const SubSample& subSample = subSamples[i];
67 status_t res = mSession->decrypt(keyId, iv, srcPtr, dstPtr, subSamples,
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.cpp66 void* destination, const SubSample* subSamples,
81 reinterpret_cast<uint8_t*>(destination), subSamples,
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.cpp34 uint8_t* destination, const SubSample* subSamples,
40 return decryptor.decrypt(keyVector, iv, source, destination, subSamples,
48 const SubSample* subSamples,
53 subSamples, numSubSamples,
97 SubSample subSamples[kNumSubsamples] = { local
102 subSamples, kNumSubsamples);
142 SubSample subSamples[kNumSubsamples] = { local
148 subSamples, kNumSubsamples);
188 SubSample subSamples[kNumSubsamples] = { local
194 subSamples, kNumSubsample
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
238 SubSample subSamples[kNumSubsamples] = { local
291 SubSample subSamples[kNumSubsamples] = { local
346 SubSample subSamples[kNumSubsamples] = { local
408 SubSample subSamples[kNumSubsamples] = { local
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDrm.h101 CryptoPlugin::SubSample *subSamples; member in struct:android::NuPlayerDrm::CryptoInfo
H A DNuPlayerDrm.cpp255 ret->subSamples = (CryptoPlugin::SubSample*)(ret + 1);
256 CryptoPlugin::SubSample *subSamples = ret->subSamples; local
259 subSamples[i].mNumBytesOfClearData = (clearbytes == NULL) ? 0 : clearbytes[i];
260 subSamples[i].mNumBytesOfEncryptedData = (encryptedbytes == NULL) ?
/frameworks/av/include/media/
H A DMediaCasDefs.h76 DescramblerPlugin::SubSample *subSamples; member in class:android::media::MediaDescrambler::DescrambleInfo
/frameworks/av/drm/libmediadrm/
H A DCrypto.cpp240 const CryptoPlugin::SubSample *subSamples, size_t numSubSamples,
264 ssize_t result = mPlugin->decrypt(secure, key, iv, mode, pattern, srcPtr, subSamples,
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,
125 totalSize += subSamples[i].mNumBytesOfEncryptedData;
126 totalSize += subSamples[i].mNumBytesOfClearData;
135 data.write(subSamples, sizeof(CryptoPlugin::SubSample) * numSubSamples);
344 CryptoPlugin::SubSample *subSamples = local
347 data.read(subSamples,
373 CryptoPlugin::SubSample &ss = subSamples[i];
394 subSamples, numSubSamples, destination, &errorDetailMsg);
413 delete[] subSamples;
414 subSamples
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,
317 subSample.numBytesOfClearData = subSamples[i].mNumBytesOfClearData;
318 subSample.numBytesOfEncryptedData = subSamples[i].mNumBytesOfEncryptedData;
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.cpp214 const SubSample *subSamples,
221 "subSamples=%s, srcPtr=%p, dstPtr=%p, srcOffset=%d, dstOffset=%d)",
223 subSamplesToString(subSamples, numSubSamples).string(),
242 SubSample const *subSamples, size_t numSubSamples) const
247 subSamples[i].mNumBytesOfClearData,
248 subSamples[i].mNumBytesOfEncryptedData);
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
241 subSamplesToString( SubSample const *subSamples, size_t numSubSamples) const argument
/frameworks/av/drm/mediacas/plugins/clearkey/
H A DClearKeyCasPlugin.cpp344 size_t numSubSamples, const DescramblerPlugin::SubSample *subSamples,
368 size_t numBytesinSubSample = subSamples[i].mNumBytesOfClearData
369 + subSamples[i].mNumBytesOfEncryptedData;
377 && subSamples[i].mNumBytesOfEncryptedData >= AES_BLOCK_SIZE) {
381 subSamples[i].mNumBytesOfClearData,
434 const SubSample *subSamples,
441 ALOGV("descramble: secure=%d, sctrl=%d, subSamples=%s, "
444 subSamplesToString(subSamples, numSubSamples).string(),
454 numSubSamples, subSamples,
473 SubSample const *subSamples, size_
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
472 subSamplesToString( SubSample const *subSamples, size_t numSubSamples) const argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaDescrambler.cpp131 DescramblerPlugin::SubSample *subSamples,
152 info.subSamples = subSamples;
198 // subSamples array may silently overflow if number of samples are
218 DescramblerPlugin::SubSample *subSamples = local
221 if (subSamples == NULL) {
227 subSamples[i].mNumBytesOfClearData =
230 subSamples[i].mNumBytesOfEncryptedData =
234 totalSize += subSamples[i].mNumBytesOfClearData +
235 subSamples[
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
300 DescramblerPlugin::SubSample *subSamples = NULL; local
[all...]
H A Dandroid_media_MediaCodec.cpp341 const CryptoPlugin::SubSample *subSamples,
351 index, offset, subSamples, numSubSamples, key, iv, mode, pattern,
1341 CryptoPlugin::SubSample *subSamples = NULL; local
1356 // subSamples array may silently overflow if number of samples are too large. Use
1358 } else if ( CC_UNLIKELY(numSubSamples >= (signed)(INT32_MAX / sizeof(*subSamples))) ) {
1373 subSamples = new CryptoPlugin::SubSample[numSubSamples];
1376 subSamples[i].mNumBytesOfClearData =
1379 subSamples[i].mNumBytesOfEncryptedData =
1420 subSamples, numSubSamples,
1439 delete[] subSamples;
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,
802 "subSamples=%s, dst=%p)",
807 subSamplesToString(subSamples, numSubSamples).string(),
823 String8 MockCryptoPlugin::subSamplesToString(SubSample const *subSamples, argument
829 subSamples[i].mNumBytesOfClearData,
830 subSamples[i].mNumBytesOfEncryptedData);
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/ndk/
H A DNdkMediaCodec.cpp509 CryptoPlugin::SubSample *subSamples = new CryptoPlugin::SubSample[crypto->numsubsamples]; local
511 subSamples[i].mNumBytesOfClearData = crypto->clearbytes[i];
512 subSamples[i].mNumBytesOfEncryptedData = crypto->encryptedbytes[i];
522 subSamples,
534 delete [] subSamples;
/frameworks/av/media/libstagefright/
H A DMediaCodec.cpp1027 const CryptoPlugin::SubSample *subSamples,
1043 msg->setPointer("subSamples", (void *)subSamples);
2721 const CryptoPlugin::SubSample *subSamples; local
2737 subSamples = &ss;
2751 CHECK(msg->findPointer("subSamples", (void **)&subSamples));
2765 size += subSamples[i].mNumBytesOfClearData;
2766 size += subSamples[i].mNumBytesOfEncryptedData;
2807 subSamples,
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
[all...]
/frameworks/av/media/libstagefright/mpeg2ts/
H A DATSParser.cpp1368 sp<ABuffer> subSamples = new ABuffer( local
1375 info.subSamples = (DescramblerPlugin::SubSample *)subSamples->data();
1385 info.subSamples[i].mNumBytesOfClearData = 0;
1386 info.subSamples[i].mNumBytesOfEncryptedData = it->subSampleSize;
1388 info.subSamples[i].mNumBytesOfClearData = it->subSampleSize;
1389 info.subSamples[i].mNumBytesOfEncryptedData = 0;
1395 info.subSamples[0].mNumBytesOfEncryptedData -= pesOffset;

Completed in 252 milliseconds