/frameworks/av/camera/ |
H A D | CameraMetadata.cpp | 476 // arg2 = offset (blob) 477 // Must be after blob since we don't know offset until after writeBlob. 484 const size_t offset = static_cast<size_t>(offsetTmp); local 485 if (offset >= alignment) { 486 ALOGE("%s: metadata offset(%zu) should be less than alignment(%zu)", 492 const uintptr_t metadataStart = reinterpret_cast<uintptr_t>(blob.data()) + offset; 495 ALOGV("%s: alignment is: %zu, metadata start: %p, offset: %zu", 496 __FUNCTION__, alignment, tmp, offset); 536 * | arg2: offset | 550 * offset befor 560 size_t offset = 0; local [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | TextRenderer.cpp | 45 // we move down a line (i.e. the Y offset changes). The offset increases 48 uint16_t offset = 0; local 53 offset = 0; 55 mXOffset[i] = offset; 56 offset += FontBitmap::glyphWidth[i] + 1;
|
H A D | screenrecord.cpp | 270 printf("Rotated content area is %ux%u at offset x=%d y=%d\n", 273 printf("Content area is %ux%u at offset x=%d y=%d\n", 339 size_t bufIndex, offset, size; local 351 err = encoder->dequeueOutputBuffer(&bufIndex, &offset, &size, &ptsUsec,
|
/frameworks/av/cmds/stagefright/ |
H A D | codec.cpp | 186 0 /* offset */, 212 0 /* offset */, 248 size_t offset; local 253 &index, &offset, &size, &presentationTimeUs, &flags,
|
/frameworks/av/drm/common/ |
H A D | DrmEngineBase.cpp | 124 int fd, off64_t offset, off64_t length, const char* mime) { 127 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length); 130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime); 168 int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) { 169 return onPread(uniqueId, decryptHandle, buffer, numBytes, offset); 122 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument 167 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
H A D | IDrmManagerService.cpp | 518 const off64_t offset = reply.readInt64(); local 530 drmConvertedStatus = new DrmConvertedStatus(statusCode, convertedData, offset); 550 const off64_t offset = reply.readInt64(); local 562 drmConvertedStatus = new DrmConvertedStatus(statusCode, convertedData, offset); 604 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 611 data.writeInt64(offset); 769 ssize_t numBytes, off64_t offset) { 780 data.writeInt64(offset); 1217 reply->writeInt64(drmConvertedStatus->offset); 1248 reply->writeInt64(drmConvertedStatus->offset); 603 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 767 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument 1307 const off64_t offset = data.readInt64(); local 1483 const off64_t offset = data.readInt64(); local [all...] |
/frameworks/av/drm/drmserver/ |
H A D | DrmManager.cpp | 405 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 418 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime); 541 void* buffer, ssize_t numBytes, off64_t offset) { 547 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset); 404 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 540 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
H A D | DrmManagerService.cpp | 209 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 212 return mDrmManager->openDecryptSession(uniqueId, fd, offset, length, mime); 275 void* buffer, ssize_t numBytes, off64_t offset) { 280 return mDrmManager->pread(uniqueId, decryptHandle, buffer, numBytes, offset); 208 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 274 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClient.cpp | 120 int fd, off64_t offset, off64_t length, const char* mime) { 123 mUniqueId, fd, offset, length, mime); 162 sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) { 163 return mDrmManagerClientImpl->pread(mUniqueId, decryptHandle, buffer, numBytes, offset); 119 openDecryptSession( int fd, off64_t offset, off64_t length, const char* mime) argument 161 pread( sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
H A D | DrmManagerClientImpl.cpp | 260 int uniqueId, int fd, off64_t offset, 264 uniqueId, fd, offset, length, mime); 328 void* buffer, ssize_t numBytes, off64_t offset) { 332 uniqueId, decryptHandle.get(), buffer, numBytes, offset); 259 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 327 pread(int uniqueId, sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
H A D | NoOpDrmManagerClientImpl.cpp | 111 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 144 void* buffer, ssize_t numBytes, off64_t offset) { 110 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 143 pread(int uniqueId, sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
/frameworks/av/drm/libdrmframework/plugins/common/include/ |
H A D | DrmEngineBase.h | 84 int fd, off64_t offset, off64_t length, const char* mime); 104 void* buffer, ssize_t numBytes, off64_t offset); 340 * the output converted data and offset. In this case the 341 * application will ignore the offset information. 357 * the application on which offset these signature data 378 * @param[in] offset Start position of the content 385 int fd, off64_t offset, off64_t length) = 0; 393 * @param[in] offset Start position of the content 402 int fd, off64_t offset, off64_t length, 516 * @param[in] offset Offse 400 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/ |
H A D | FwdLockEngine.h | 288 * the output converted data and offset. In this case the 289 * application will ignore the offset information. 298 * the entire data used over a conversion session. This signature must be copied to the offset 305 * the application about the file offset at which this 326 * @param offset Start position of the content 334 int fd, off64_t offset, off64_t length); 338 int fd, int offset, int length); 457 * @param offset Offset with which to update the file position. 467 off64_t offset, 472 off_t offset, 535 off_t offset; member in class:android::FwdLockEngine::DecodeSession [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
H A D | FwdLockEngine.cpp | 404 int offset = -1; local 428 offset = convSession->output.fromConvertData.errorPos; 432 return new DrmConvertedStatus(getConvertedStatus(retStatus), convResult, offset); 439 int offset = -1; local 450 offset = convSession->output.fromCloseSession.fileOffset; 463 return new DrmConvertedStatus(getConvertedStatus(retStatus), convResult, offset); 470 off64_t offset, 476 int offset, 494 -1 < ::lseek(fileDesc, offset, SEEK_SET) && 542 // offset i 467 onOpenDecryptSession(int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument 643 onLseek(int uniqueId, DecryptHandle* decryptHandle, off64_t offset, int whence) argument 663 onPread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/ |
H A D | FwdLockFile.c | 316 off64_t FwdLockFile_lseek(int fileDesc, off64_t offset, int whence) { argument 325 newFilePos = lseek64(pSession->fileDesc, pSession->dataOffset + offset, whence); 329 newFilePos = lseek64(pSession->fileDesc, offset, whence);
|
/frameworks/av/drm/libdrmframework/plugins/passthru/src/ |
H A D | DrmPassthruPlugIn.cpp | 229 return new DrmConvertedStatus(DrmConvertedStatus::STATUS_OK, convertedData, 0 /*offset*/); 234 return new DrmConvertedStatus(DrmConvertedStatus::STATUS_OK, NULL, 0 /*offset*/); 238 int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) { 302 void* buffer, ssize_t numBytes, off64_t offset) { 237 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length) argument 301 onPread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
/frameworks/av/drm/mediadrm/plugins/clearkey/ |
H A D | AesCtrDecryptor.cpp | 39 size_t offset = 0; local 49 memcpy(destination + offset, source + offset, 51 offset += subSample.mNumBytesOfClearData; 55 AES_ctr128_encrypt(source + offset, destination + offset, 59 offset += subSample.mNumBytesOfEncryptedData; 63 *bytesDecryptedOut = offset;
|
H A D | CryptoPlugin.cpp | 46 size_t offset = 0; local 58 memcpy(reinterpret_cast<uint8_t*>(dstPtr) + offset, 59 reinterpret_cast<const uint8_t*>(srcPtr) + offset, 61 offset += subSample.mNumBytesOfClearData; 64 return static_cast<ssize_t>(offset);
|
/frameworks/av/include/drm/ |
H A D | DrmConvertedStatus.h | 26 * data/checksum data and the offset. Offset is going to be used in the case of close 61 int offset; member in class:android::DrmConvertedStatus
|
/frameworks/av/include/media/stagefright/ |
H A D | DataSource.h | 61 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0; 64 bool getUInt16(off64_t offset, uint16_t *x); 65 bool getUInt24(off64_t offset, uint32_t *x); // 3 byte int, returned as a 32-bit int 66 bool getUInt32(off64_t offset, uint32_t *x); 67 bool getUInt64(off64_t offset, uint64_t *x); 76 virtual status_t reconnectAtOffset(off64_t offset) { argument
|
/frameworks/av/include/media/stagefright/foundation/ |
H A D | ABuffer.h | 42 size_t offset() const { return mRangeOffset; } function in struct:android::ABuffer 44 void setRange(size_t offset, size_t size);
|
/frameworks/av/include/ndk/ |
H A D | NdkMediaCodec.h | 45 int32_t offset; member in struct:AMediaCodecBufferInfo 134 size_t idx, off_t offset, size_t size, uint64_t time, uint32_t flags); 140 size_t idx, off_t offset, AMediaCodecCryptoInfo*, uint64_t time, uint32_t flags);
|
/frameworks/av/media/img_utils/include/img_utils/ |
H A D | EndianUtils.h | 97 * EndianOutput. If the given offset is greater than zero, that many elements will 102 virtual status_t write(const uint8_t* buf, size_t offset, size_t count); 104 virtual status_t write(const int8_t* buf, size_t offset, size_t count); 106 virtual status_t write(const uint16_t* buf, size_t offset, size_t count); 108 virtual status_t write(const int16_t* buf, size_t offset, size_t count); 110 virtual status_t write(const uint32_t* buf, size_t offset, size_t count); 112 virtual status_t write(const int32_t* buf, size_t offset, size_t count); 114 virtual status_t write(const uint64_t* buf, size_t offset, size_t count); 116 virtual status_t write(const int64_t* buf, size_t offset, size_t count); 118 virtual status_t write(const float* buf, size_t offset, size_ 132 writeHelper(const T* buf, size_t offset, size_t count) argument [all...] |
H A D | TiffEntryImpl.h | 41 status_t writeData(uint32_t offset, /*out*/EndianOutput* out) const; 42 status_t writeTagInfo(uint32_t offset, /*out*/EndianOutput* out) const; 123 status_t TiffEntryImpl<T>::writeTagInfo(uint32_t offset, /*out*/EndianOutput* out) const { 124 assert((offset % TIFF_WORD_SIZE) == 0); 132 BAIL_ON_FAIL(out->write(&offset, 0, 1), ret); 150 status_t TiffEntryImpl<T>::writeData(uint32_t offset, EndianOutput* out) const { argument 182 inline status_t TiffEntryImpl<sp<TiffIfd> >::writeTagInfo(uint32_t offset, argument 184 assert((offset % TIFF_WORD_SIZE) == 0); 190 BAIL_ON_FAIL(out->write(&offset, 0, 1), ret); 204 inline status_t TiffEntryImpl<sp<TiffIfd> >::writeData(uint32_t offset, EndianOutpu argument 69 LOG_ALWAYS_FATAL_IF(index < 0, �, __FUNCTION__); } template<typename T> TiffEntryImpl<T>::~TiffEntryImpl() {} template<typename T> uint32_t TiffEntryImpl<T>::getCount() const { return mCount; } template<typename T> uint16_t TiffEntryImpl<T>::getTag() const { return mTag; } template<typename T> TagType TiffEntryImpl<T>::getType() const { return static_cast<TagType>(mType); } template<typename T> const void* TiffEntryImpl<T>::getDataHelper() const { return reinterpret_cast<const void*>(mData.array()); } template<typename T> size_t TiffEntryImpl<T>::getSize() const { uint32_t total = getActualSize(); WORD_ALIGN(total) return (total <= OFFSET_SIZE) ? 0 : total; } template<typename T> uint32_t TiffEntryImpl<T>::getActualSize() const { uint32_t total = sizeof(T) * mCount; if (getType() == RATIONAL || getType() == SRATIONAL) { total <<= 1; } return total; } template<typename T> Endianness TiffEntryImpl<T>::getEndianness() const { return mEnd; } template<typename T> uint32_t TiffEntryImpl<T>::getComparableValue() const { return mTag; } template<typename T> status_t TiffEntryImpl<T>::writeTagInfo(uint32_t offset, EndianOutput* out) const { assert((offset % TIFF_WORD_SIZE) == 0); status_t ret = OK; BAIL_ON_FAIL(out->write(&mTag, 0, 1), ret); BAIL_ON_FAIL(out->write(&mType, 0, 1), ret); BAIL_ON_FAIL(out->write(&mCount, 0, 1), ret); uint32_t dataSize = getActualSize(); if (dataSize > OFFSET_SIZE) argument [all...] |
/frameworks/av/media/img_utils/src/ |
H A D | ByteArrayOutput.cpp | 32 status_t ByteArrayOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument 33 if (mByteArray.appendArray(buf + offset, count) < 0) {
|