Searched defs:offset (Results 1 - 25 of 644) sorted by path

1234567891011>>

/frameworks/av/camera/
H A DCameraMetadata.cpp487 // arg2 = offset (blob)
488 // Must be after blob since we don't know offset until after writeBlob.
495 const size_t offset = static_cast<size_t>(offsetTmp); local
496 if (offset >= alignment) {
497 ALOGE("%s: metadata offset(%zu) should be less than alignment(%zu)",
503 const uintptr_t metadataStart = reinterpret_cast<uintptr_t>(blob.data()) + offset;
506 ALOGV("%s: alignment is: %zu, metadata start: %p, offset: %zu",
507 __FUNCTION__, alignment, tmp, offset);
547 * | arg2: offset |
561 * offset befor
571 size_t offset = 0; local
[all...]
/frameworks/av/cmds/screenrecord/
H A DTextRenderer.cpp47 // we move down a line (i.e. the Y offset changes). The offset increases
50 uint16_t offset = 0; local
55 offset = 0;
57 mXOffset[i] = offset;
58 offset += FontBitmap::glyphWidth[i] + 1;
H A Dscreenrecord.cpp273 printf("Rotated content area is %ux%u at offset x=%d y=%d\n",
276 printf("Content area is %ux%u at offset x=%d y=%d\n",
342 size_t bufIndex, offset, size; local
354 err = encoder->dequeueOutputBuffer(&bufIndex, &offset, &size, &ptsUsec,
/frameworks/av/cmds/stagefright/
H A Dcodec.cpp190 0 /* offset */,
216 0 /* offset */,
252 size_t offset; local
257 &index, &offset, &size, &presentationTimeUs, &flags,
H A Dmediafilter.cpp143 size_t offset; member in struct:android::DecodedFrame
231 filterIndex, 0 /* offset */, destBuffer->size(),
242 filterIndex, 0 /* offset */, destBuffer->size(),
257 size_t offset; local
262 &index, &offset, &size, &presentationTimeUs, &flags,
547 index, 0 /* offset */, buffer->size(),
570 index, 0 /* offset */, 0 /* size */,
595 &frame.index, &frame.offset, &frame.size,
/frameworks/av/drm/common/
H A DDrmEngineBase.cpp124 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 DIDrmManagerService.cpp521 const off64_t offset = reply.readInt64(); local
533 drmConvertedStatus = new DrmConvertedStatus(statusCode, convertedData, offset);
553 const off64_t offset = reply.readInt64(); local
565 drmConvertedStatus = new DrmConvertedStatus(statusCode, convertedData, offset);
607 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
614 data.writeInt64(offset);
774 ssize_t numBytes, off64_t offset) {
785 data.writeInt64(offset);
1238 reply->writeInt64(drmConvertedStatus->offset);
1269 reply->writeInt64(drmConvertedStatus->offset);
606 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
772 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
1328 const off64_t offset = data.readInt64(); local
1525 const off64_t offset = data.readInt64(); local
[all...]
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp405 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 DDrmManagerService.cpp266 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
269 return mDrmManager->openDecryptSession(uniqueId, fd, offset, length, mime);
332 void* buffer, ssize_t numBytes, off64_t offset) {
337 return mDrmManager->pread(uniqueId, decryptHandle, buffer, numBytes, offset);
265 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
331 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClient.cpp120 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 DDrmManagerClientImpl.cpp260 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
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
H A DFwdLockEngine.h288 * 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 DFwdLockEngine.cpp409 int offset = -1; local
433 offset = convSession->output.fromConvertData.errorPos;
437 return new DrmConvertedStatus(getConvertedStatus(retStatus), convResult, offset);
444 int offset = -1; local
455 offset = convSession->output.fromCloseSession.fileOffset;
468 return new DrmConvertedStatus(getConvertedStatus(retStatus), convResult, offset);
475 off64_t offset,
481 int offset,
499 -1 < ::lseek(fileDesc, offset, SEEK_SET) &&
547 // offset i
472 onOpenDecryptSession(int , DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t ) argument
653 onLseek(int , DecryptHandle* decryptHandle, off64_t offset, int whence) argument
673 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 DFwdLockFile.c316 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 DDrmPassthruPlugIn.cpp229 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/libmediadrm/
H A DCrypto.cpp242 const sp<IMemory> &sharedBuffer, size_t offset,
256 const void *srcPtr = static_cast<uint8_t *>(sharedBuffer->pointer()) + offset;
236 decrypt( DestinationType dstType, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const sp<IMemory> &sharedBuffer, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString *errorDetailMsg) argument
/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DAesCtrDecryptor.cpp39 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 DCryptoPlugin.cpp46 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 DDrmConvertedStatus.h26 * 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 DDataSource.h64 // this returns zero; it just means the given offset is equal to, or
66 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0;
69 bool getUInt16(off64_t offset, uint16_t *x);
70 bool getUInt24(off64_t offset, uint32_t *x); // 3 byte int, returned as a 32-bit int
71 bool getUInt32(off64_t offset, uint32_t *x);
72 bool getUInt64(off64_t offset, uint64_t *x);
85 bool getVector(off64_t offset, Vector<T>* x, size_t count,
99 virtual status_t reconnectAtOffset(off64_t offset) { argument
145 bool DataSource::getVector(off64_t offset, Vector<T>* x, size_t count, argument
164 numBytesRead = this->readAt(offset, (voi
[all...]
/frameworks/av/include/media/stagefright/foundation/
H A DABuffer.h40 size_t offset() const { return mRangeOffset; } function in struct:android::ABuffer
42 void setRange(size_t offset, size_t size);
/frameworks/av/include/ndk/
H A DNdkMediaCodec.h45 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 DEndianUtils.h97 * 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 DTiffEntryImpl.h41 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 {
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 DByteArrayOutput.cpp32 status_t ByteArrayOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument
33 if (mByteArray.appendArray(buf + offset, count) < 0) {

Completed in 663 milliseconds

1234567891011>>