/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/drm/drmserver/ |
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/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/media/img_utils/src/ |
H A D | TiffIfd.cpp | 75 uint32_t TiffIfd::checkAndGetOffset(uint32_t offset) const { 90 if (offset == BAD_OFFSET) { 91 ALOGW("%s: Could not calculate IFD offsets, IFD %u had a bad initial offset.", 98 return offset + ifdSize; 101 status_t TiffIfd::writeData(uint32_t offset, /*out*/EndianOutput* out) const { argument 102 assert((offset % TIFF_WORD_SIZE) == 0); 105 ALOGV("%s: IFD %u written to offset %u", __FUNCTION__, mIfdId, offset ); 106 uint32_t valueOffset = checkAndGetOffset(offset); 123 // Writer IFD footer (4 bytes, offset t 296 setStripOffset(uint32_t offset) argument [all...] |
H A D | TiffWriter.cpp | 95 uint32_t offset = FILE_HEADER_SIZE; local 98 BAIL_ON_FAIL(ifd->writeData(offset, &endOut), ret); 99 offset += ifd->getSize(); 143 uint32_t offset = FILE_HEADER_SIZE; local 146 BAIL_ON_FAIL(ifd->writeData(offset, &endOut), ret); 147 offset += ifd->getSize();
|
/frameworks/av/media/libmedia/ |
H A D | IMediaRecorder.cpp | 171 status_t setOutputFile(int fd, int64_t offset, int64_t length) { argument 172 ALOGV("setOutputFile(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length); 176 data.writeInt64(offset); 404 int64_t offset = data.readInt64(); local 406 reply->writeInt32(setOutputFile(fd, offset, length));
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | VideoFrameScheduler.cpp | 421 nsecs_t offset = 0; local 424 offset += 428 mTimeCorrection += mVsyncPeriod / 2 - offset / N;
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerDriver.cpp | 100 status_t NuPlayerDriver::setDataSource(int fd, int64_t offset, int64_t length) { argument 110 mPlayer->setDataSourceAsync(fd, offset, length);
|
H A D | RTSPSource.cpp | 396 size_t offset = 0; local 398 while (offset + 188 <= accessUnit->size()) { 400 accessUnit->data() + offset, 188); 405 offset += 188; 408 if (offset < accessUnit->size()) {
|
/frameworks/av/media/libstagefright/ |
H A D | MediaCodecSource.cpp | 683 size_t offset; local 690 CHECK(msg->findSize("offset", &offset)); 716 // queued before start, and offset timeUs by start time
|
H A D | NuMediaExtractor.cpp | 130 status_t NuMediaExtractor::setDataSource(int fd, off64_t offset, off64_t size) { argument 138 sp<FileSource> fileSource = new FileSource(dup(fd), offset, size);
|
H A D | StagefrightMetadataRetriever.cpp | 90 int fd, int64_t offset, int64_t length) { 93 ALOGV("setDataSource(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length); 100 mSource = new FileSource(fd, offset, length); 89 setDataSource( int fd, int64_t offset, int64_t length) argument
|
H A D | WAVExtractor.cpp | 62 off64_t offset, size_t size); 151 off64_t offset = 12; local 155 if (mDataSource->readAt(offset, chunkHeader, 8) < 8) { 160 offset += 8; 174 if (mDataSource->readAt(offset, formatSpec, 2) < 2) { 191 if (mDataSource->readAt(offset, formatSpec, fmtSize) < fmtSize) { 278 mDataOffset = offset; 325 offset += chunkSize; 338 off64_t offset, size_t size) 345 mOffset(offset), 333 WAVSource( const sp<DataSource> &dataSource, const sp<MetaData> &meta, uint16_t waveFormat, int32_t bitsPerSample, off64_t offset, size_t size) argument [all...] |
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | block.cpp | 373 int offset_cur[4], offset_pred[4], offset; local 542 offset = 1 << (Qq - 1); 551 coef[0] = (((m0 + m2) * quant + offset) >> Qq); 552 coef[64] = (((m0 - m2) * quant + offset) >> Qq); 553 coef[128] = (((m1 - m3) * quant + offset) >> Qq); 554 coef[192] = (((m1 + m3) * quant + offset) >> Qq); 566 /* offset btw 4x4 block */ 570 /* offset btw 8x8 block */ 909 /* offset btw 4x4 block */
|
H A D | slice.cpp | 170 int offset; local 182 offset = y_position * picPitch + x_position; 183 curL = currPic->Sl + offset; 184 orgL = currInput->YCbCr[0] + offset; 185 offset = (offset + x_position) >> 2; 186 curCb = currPic->Scb + offset; 187 curCr = currPic->Scr + offset; 188 orgCb = currInput->YCbCr[1] + offset; 189 orgCr = currInput->YCbCr[2] + offset; 513 int j, offset; local [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | vlc_decode.cpp | 143 int k, offset; local 161 offset = (k & 1) + (k >> 1) * doubleWidth; 183 mot_x[pos+offset] = (MOT) mvx; 184 mot_y[pos+offset] = (MOT) mvy; 229 offset = (k & 1) + (k >> 1) * doubleWidth; 232 mot_x[pos+offset] = (MOT) mvx; 233 mot_y[pos+offset] = (MOT) mvy; 888 /* first escape mode. level is offset */ 941 /* second escape mode. run is offset */ 1069 /* first escape mode. level is offset */ [all...] |
/frameworks/av/media/libstagefright/id3/ |
H A D | ID3.cpp | 43 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { argument 44 off64_t available = (offset >= (off64_t)mSize) ? 0ll : mSize - offset; 47 memcpy(data, mData + offset, copy); 59 ID3::ID3(const sp<DataSource> &source, bool ignoreV1, off64_t offset) argument 66 mIsValid = parseV2(source, offset); 118 bool ID3::parseV2(const sp<DataSource> &source, off64_t offset) { argument 129 offset, &header, sizeof(header)) != (ssize_t)sizeof(header)) { 188 if (source->readAt(offset + sizeof(header), mData, mSize) != (ssize_t)mSize) { 329 size_t offset local [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AMPEG4AudioAssembler.cpp | 368 size_t offset = 0; local 382 CHECK_LT(offset, buffer->size()); 383 tmp = ptr[offset++]; 408 CHECK_LE(offset + payloadLength, buffer->size()); 410 memcpy(out->data() + out->size(), &ptr[offset], payloadLength); 413 offset += payloadLength; 419 CHECK_LE(offset + (mOtherDataLenBits / 8), buffer->size()); 420 offset += mOtherDataLenBits / 8; 424 if (offset < buffer->size()) { 425 ALOGI("ignoring %d bytes of trailing data", buffer->size() - offset); [all...] |
H A D | APacketSource.cpp | 343 size_t offset = 0; local 345 while (offset + 3 < config->size()) { 346 if (memcmp("\x00\x00\x01", &ptr[offset], 3) 347 || (ptr[offset + 3] & 0xf0) != 0x20) { 348 ++offset; 361 &ptr[offset], config->size() - offset, width, height);
|
H A D | ARTPWriter.cpp | 366 buffer->setRange(buffer->offset(), buffer->size() + 28); 378 size_t offset = 8; local 380 data[offset++] = 1; // CNAME 383 data[offset++] = strlen(kCNAME); 385 memcpy(&data[offset], kCNAME, strlen(kCNAME)); 386 offset += strlen(kCNAME); 388 data[offset++] = 7; // NOTE 391 data[offset++] = strlen(kNOTE); 393 memcpy(&data[offset], kNOTE, strlen(kNOTE)); 394 offset 613 size_t offset = 1; local 682 size_t offset = 2; local [all...] |
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | Converter.cpp | 530 buffer->setRange(buffer->offset() + copy, buffer->size() - copy); 576 buffer->setRange(buffer->offset() + copy, buffer->size() - copy); 686 size_t offset; local 692 &bufferIndex, &offset, &size, &timeUs, &flags); 753 memcpy(buffer->data(), outbuf->base() + offset, size);
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaExtractor.cpp | 73 media_status_t AMediaExtractor_setDataSourceFd(AMediaExtractor *mData, int fd, off64_t offset, off64_t length) { argument 74 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length); 75 return translate_error(mData->mImpl->setDataSource(fd, offset, length));
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | StreamingProcessor.cpp | 762 ssize_t offset; local 765 mRecordingHeap->mBuffers[heapIdx]->getMemory(&offset, 768 uint8_t *data = (uint8_t*)heap->getBase() + offset; 798 ssize_t offset; local 800 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); 807 uint8_t *data = (uint8_t*)heap->getBase() + offset;
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothSocket.java | 429 /*package*/ int read(byte[] b, int offset, int length) throws IOException { argument 432 int ret = mSocketIS.read(b, offset, length); 439 /*package*/ int write(byte[] b, int offset, int length) throws IOException { argument 442 mSocketOS.write(b, offset, length);
|