Searched refs:offset (Results 1 - 25 of 635) sorted by last modified time

1234567891011>>

/frameworks/wilhelm/include/OMXAL/
H A DOpenMAXAL_Android.h165 XAAint64 offset; member in struct:XADataLocator_AndroidFD_
/frameworks/wilhelm/include/SLES/
H A DOpenSLES_Android.h307 SLAint64 offset; member in struct:SLDataLocator_AndroidFD_
/frameworks/wilhelm/src/android/
H A DAacBqToPcmCbRenderer.cpp30 * Note that if the returned value + offset > size, it means that a partial frame starts at that
31 * offset, but this function will still return the size of the full frame.
33 * @param offset offset in bytes relative to data of where the frame is supposed to start
35 * @return the size in bytes of the AAC ADTS frame starting at the given offset of the given
38 static size_t getAdtsFrameSize(const uint8_t *data, off64_t offset, size_t size) { argument
41 if (!(offset + ADTS_HEADER_SIZE_UP_TO_FRAMESIZE < size)) {
47 const uint8_t *syncword = data + offset;
53 const uint8_t protectionAbsent = data[offset+1] & 0x1;
55 const uint8_t* header = data + offset
85 off64_t offset = 0; local
[all...]
H A DAudioPlayer_to_android.cpp1534 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; local
1537 offset == SL_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE ?
1538 (int64_t)PLAYER_FD_FIND_FILE_SIZE : offset,
1576 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; local
1579 offset == SL_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE ?
1580 (int64_t)PLAYER_FD_FIND_FILE_SIZE : offset,
H A DBufferQueueSource.cpp57 ssize_t BufferQueueSource::readAt(off64_t offset, void *data, size_t size) { argument
58 SL_LOGD("BufferQueueSource::readAt(offset=%lld, data=%p, size=%d)", offset, data, size);
96 //assert(mStreamToBqOffset <= offset);
97 CHECK_LE(mStreamToBqOffset, offset);
99 if (offset + size <= mStreamToBqOffset + oldFront->mDataSize) {
100 pSrc = ((char*)oldFront->mDataBuffer) + (offset - mStreamToBqOffset);
102 if (offset - mStreamToBqOffset + size == oldFront->mDataSize) {
H A DBufferQueueSource.h40 virtual ssize_t readAt(off64_t offset, void *data, size_t size);
50 // a monotonically increasing offset used to translate an offset from the beginning
51 // of the stream, to an offset in each buffer from the buffer queue source
H A DMediaPlayer_to_android.cpp436 int64_t offset = (int64_t)mp->mDataSource.mLocator.mFD.offset; local
439 offset == SL_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE ?
440 (int64_t)PLAYER_FD_FIND_FILE_SIZE : offset,
H A Dandroid_AudioSfDecoder.cpp210 dataSource = new FileSource(fd, mDataLocator.fdi.offset, mDataLocator.fdi.length);
H A Dandroid_AudioToCbRenderer.cpp65 size_t offset = 0; local
66 while (offset < full) {
69 + offset + mDecodeBuffer->range_offset(),
70 mDecodeBuffer->range_length() - offset,
72 offset += consumed;
73 //SL_LOGV("consumed=%u, offset=%u, full=%u", consumed, offset, full);
H A Dandroid_GenericPlayer.cpp100 void GenericPlayer::setDataSource(int fd, int64_t offset, int64_t length, bool closeAfterUse) { argument
101 SL_LOGV("GenericPlayer::setDataSource(fd=%d, offset=%lld, length=%lld, closeAfterUse=%s)", fd,
102 offset, length, closeAfterUse ? "true" : "false");
114 if (offset >= sb.st_size) {
115 SL_LOGE("SfPlayer::setDataSource: invalid offset");
118 mDataLocator.fdi.offset = offset;
122 } else if (offset + length > sb.st_size) {
123 mDataLocator.fdi.length = sb.st_size - offset;
H A Dandroid_GenericPlayer.h67 void setDataSource(int fd, int64_t offset, int64_t length, bool closeAfterUse = false);
H A Dandroid_LocAVPlayer.cpp63 } else if (mPlayer->setDataSource(mDataLocator.fdi.fd, mDataLocator.fdi.offset,
H A Dandroid_defs.h194 int64_t offset; member in struct:android::FdInfo
/frameworks/wilhelm/src/android/util/
H A DAacAdtsExtractor.cpp48 static size_t getFrameSize(const sp<DataSource> &source, off64_t offset) { argument
55 ssize_t readSize = source->readAt(offset, &syncHeader, ADTS_HEADER_SIZE_UP_TO_FRAMESIZE);
133 off64_t offset = 0, numFrames = 0; local
134 while (offset < streamSize) {
136 if ((frameSize = getFrameSize(mDataSource, offset)) == 0) {
140 SL_LOGE("AacAdtsExtractor() failed querying framesize at offset=%lld", offset);
144 offset += frameSize;
145 if (offset > streamSize) {
146 SL_LOGE("AacAdtsExtractor() frame of size %zu at offset
[all...]
/frameworks/wilhelm/src/
H A Ddata.c216 SL_LOGV("%s: fd=%d offset=%lld length=%lld", name, pDataLocator->mFD.fd,
217 pDataLocator->mFD.offset, pDataLocator->mFD.length);
/frameworks/wilhelm/src/itf/
H A DIDynamicInterfaceManagement.c54 size_t offset = x->mOffset; local
55 void *thisItf = (char *) thisObject + offset;
162 size_t offset = x->mOffset; local
163 void *thisItf = (char *) thisObject + offset;
231 size_t offset = x->mOffset; local
232 void *thisItf = (char *) thisObject + offset;
310 size_t offset = x->mOffset; local
311 void *thisItf = (char *) thisObject + offset;
410 size_t offset = x->mOffset; local
411 void *thisItf = (char *) thiz + offset;
[all...]
H A DIObject.c587 size_t offset = x->mOffset; local
588 void *thisItf = (char *) thiz + offset;
/frameworks/wilhelm/tests/examples/
H A DslesTestBassBoostPath.cpp125 locatorFd.offset = 0;
H A DslesTestEqFdPath.cpp52 , SLAint64 offset, SLAint64 size
130 locatorFd.offset = offset;
286 fprintf(stdout, "starting at the specified offset, and using the specified length.\n");
50 TestEQPathFromFD( SLObjectItf sl, const char* path , SLAint64 offset, SLAint64 size , bool alwaysOn ) argument
H A DslesTestEqOutputPath.cpp52 , SLAint64 offset, SLAint64 size
137 locatorFd.offset = offset;
290 fprintf(stdout, "starting at the specified offset, and using the specified length.\n");
50 TestEQPathFromFD( SLObjectItf sl, const char* path , SLAint64 offset, SLAint64 size , bool alwaysOn ) argument
H A DslesTestPlayFdPath.cpp50 void TestPlayPathFromFD( SLObjectItf sl, const char* path, SLAint64 offset, SLAint64 size) argument
118 locatorFd.offset = offset;
199 fprintf(stdout, "starting at the specified offset, and using the specified length.\n");
H A DslesTestSendToPresetReverb.cpp185 locatorFd.offset = 0;
H A DslesTestVirtualizerPath.cpp126 locatorFd.offset = 0;
/frameworks/support/renderscript/v8/jni/
H A Dandroid_renderscript_RenderScript.cpp420 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) argument
423 LOG_API("nAllocation1DData_i, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
425 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes);
430 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) argument
433 LOG_API("nAllocation1DData_s, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
435 rsAllocation1DData(con, (RsAllocation)alloc, offset, lod, count, ptr, sizeBytes);
440 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) argument
443 LOG_API("nAllocation1DData_b, con(%p), adapter(%p), offset(
450 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) argument
461 nAllocationElementData1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyteArray data, int sizeBytes) argument
[all...]
/frameworks/support/renderscript/v8/rs_support/driver/
H A DrsdBcc.cpp549 uint32_t offset = mtls->fep.dimY * mtls->fep.dimZ * p.ar[0] + local
551 p.out = mtls->fep.ptrOut + (mtls->fep.yStrideOut * offset);
552 p.in = mtls->fep.ptrIn + (mtls->fep.yStrideIn * offset);

Completed in 822 milliseconds

1234567891011>>