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

/frameworks/av/drm/mediadrm/plugins/clearkey/default/
H A DAesCtrDecryptor.cpp32 const SubSample* subSamples,
51 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/default/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,
72 SubSample subSamples[kNumSubsamples] = { local
83 &subSamples[0], kNumSubsamples, &bytesDecrypted));
106 SubSample subSamples[kNumSubsamples] = { local
117 &subSamples[0], kNumSubsamples, &bytesDecrypted));
158 SubSample subSamples[kNumSubsamples] = { local
163 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
203 SubSample subSamples[kNumSubsamples] = { local
249 SubSample subSamples[kNumSubsamples] = { local
299 SubSample subSamples[kNumSubsamples] = { local
352 SubSample subSamples[kNumSubsamples] = { local
407 SubSample subSamples[kNumSubsamples] = { local
469 SubSample subSamples[kNumSubsamples] = { local
[all...]
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
H A DAesCtrDecryptor.cpp41 const std::vector<SubSample> subSamples,
60 const SubSample& subSample = subSamples[i];
37 decrypt( const std::vector<uint8_t>& key, const Iv iv, const uint8_t* source, uint8_t* destination, const std::vector<SubSample> subSamples, size_t numSubSamples, size_t* bytesDecryptedOut) argument
H A DSession.cpp72 uint8_t* destPtr, const std::vector<SubSample> subSamples,
87 itr->second /*key*/, iv, srcPtr, destPtr, subSamples,
88 subSamples.size(), bytesDecryptedOut);
70 decrypt( const KeyId keyId, const Iv iv, const uint8_t* srcPtr, uint8_t* destPtr, const std::vector<SubSample> subSamples, size_t* bytesDecryptedOut) argument
H A DCryptoPlugin.cpp54 const hidl_vec<SubSample>& subSamples,
120 for (size_t i = 0; i < subSamples.size(); i++) {
121 const SubSample &subSample = subSamples[i];
137 for (size_t i = 0; i < subSamples.size(); ++i) {
138 const SubSample& subSample = subSamples[i];
152 static_cast<uint8_t*>(destPtr), toVector(subSamples), &bytesDecrypted);
48 decrypt( bool secure, const hidl_array<uint8_t, KEY_ID_SIZE>& keyId, const hidl_array<uint8_t, KEY_IV_SIZE>& iv, Mode mode, const Pattern& pattern, const hidl_vec<SubSample>& subSamples, const SharedBuffer& source, uint64_t offset, const DestinationBuffer& destination, decrypt_cb _hidl_cb) argument
/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/drm/libmediadrm/
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 std::unique_ptr<CryptoPlugin::SubSample[]> subSamples = local
347 data.read(subSamples.get(),
384 CryptoPlugin::SubSample &ss = subSamples[i];
405 subSamples.get(), numSubSamples, destination, &errorDetailMsg);
424 subSamples.reset();
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
H A DCryptoHal.cpp324 const CryptoPlugin::SubSample *subSamples, size_t numSubSamples,
357 subSample.numBytesOfClearData = subSamples[i].mNumBytesOfClearData;
358 subSample.numBytesOfEncryptedData = subSamples[i].mNumBytesOfEncryptedData;
321 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* ) 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,
371 size_t numBytesinSubSample = subSamples[i].mNumBytesOfClearData
372 + subSamples[i].mNumBytesOfEncryptedData;
380 && subSamples[i].mNumBytesOfEncryptedData >= AES_BLOCK_SIZE) {
384 subSamples[i].mNumBytesOfClearData,
437 const SubSample *subSamples,
444 ALOGV("descramble: secure=%d, sctrl=%d, subSamples=%s, "
447 subSamplesToString(subSamples, numSubSamples).string(),
457 numSubSamples, subSamples,
476 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
433 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
475 subSamplesToString( SubSample const *subSamples, size_t numSubSamples) const argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaDescrambler.cpp56 const hidl_vec<SubSample>& subSamples,
205 const hidl_vec<SubSample>& subSamples,
232 subSamples,
295 // subSamples array may silently overflow if number of samples are
316 SubSample *subSamples = outSubSamples->data(); local
317 if (subSamples == NULL) {
323 subSamples[i].numBytesOfClearData =
326 subSamples[i].numBytesOfEncryptedData =
330 totalSize += subSamples[i].numBytesOfClearData +
331 subSamples[
202 descramble( uint32_t key, ssize_t totalLength, const hidl_vec<SubSample>& subSamples, const void *srcPtr, jint srcOffset, void *dstPtr, jint dstOffset, Status *status, uint32_t *bytesWritten, hidl_string *detailedError) argument
388 hidl_vec<SubSample> subSamples; local
[all...]
H A Dandroid_media_MediaCodec.cpp350 const CryptoPlugin::SubSample *subSamples,
360 index, offset, subSamples, numSubSamples, key, iv, mode, pattern,
1456 CryptoPlugin::SubSample *subSamples = NULL; local
1471 // subSamples array may silently overflow if number of samples are too large. Use
1473 } else if ( CC_UNLIKELY(numSubSamples >= (signed)(INT32_MAX / sizeof(*subSamples))) ) {
1488 subSamples = new CryptoPlugin::SubSample[numSubSamples];
1491 subSamples[i].mNumBytesOfClearData =
1494 subSamples[i].mNumBytesOfEncryptedData =
1535 subSamples, numSubSamples,
1554 delete[] subSamples;
347 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.cpp798 const SubSample *subSamples, size_t numSubSamples,
803 "subSamples=%s, dst=%p)",
808 subSamplesToString(subSamples, numSubSamples).string(),
824 String8 MockCryptoPlugin::subSamplesToString(SubSample const *subSamples, argument
830 subSamples[i].mNumBytesOfClearData,
831 subSamples[i].mNumBytesOfEncryptedData);
795 decrypt(bool secure, const uint8_t key[DECRYPT_KEY_SIZE], const uint8_t iv[DECRYPT_KEY_SIZE], 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.cpp757 CryptoPlugin::SubSample *subSamples = new CryptoPlugin::SubSample[crypto->numsubsamples]; local
759 subSamples[i].mNumBytesOfClearData = crypto->clearbytes[i];
760 subSamples[i].mNumBytesOfEncryptedData = crypto->encryptedbytes[i];
770 subSamples,
782 delete [] subSamples;
/frameworks/av/media/libstagefright/mpeg2ts/
H A DATSParser.cpp1400 hidl_vec<SubSample> subSamples; local
1401 subSamples.resize(descrambleSubSamples);
1407 subSamples[i].numBytesOfClearData = 0;
1408 subSamples[i].numBytesOfEncryptedData = it->subSampleSize;
1410 subSamples[i].numBytesOfClearData = it->subSampleSize;
1411 subSamples[i].numBytesOfEncryptedData = 0;
1419 subSamples[0].numBytesOfEncryptedData -= pesOffset;
1432 subSamples,
/frameworks/av/media/libstagefright/
H A DMediaCodec.cpp1356 const CryptoPlugin::SubSample *subSamples,
1372 msg->setPointer("subSamples", (void *)subSamples);
3138 const CryptoPlugin::SubSample *subSamples; local
3154 subSamples = &ss;
3168 CHECK(msg->findPointer("subSamples", (void **)&subSamples));
3182 size += subSamples[i].mNumBytesOfClearData;
3183 size += subSamples[i].mNumBytesOfEncryptedData;
3224 subSamples,
1353 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...]

Completed in 219 milliseconds