Home
last modified time | relevance | path

Searched refs:readAt (Results 1 – 25 of 66) sorted by relevance

123

/frameworks/av/media/extractors/mp3/
DXINGSeeker.cpp88 if (source->readAt(offset, &buffer, 4) < 4) { // get header in CreateFromSource()
115 if (source->readAt(offset, &buffer, 4) < 4) { // XING header ID in CreateFromSource()
128 if (source->readAt(offset, &buffer, 4) < 4) { // flags in CreateFromSource()
138 if (source->readAt(offset, buffer, 4) < 4) { in CreateFromSource()
153 if (source->readAt(offset, buffer, 4) < 4) { in CreateFromSource()
161 if (source->readAt(offset + 1, seeker->mTOC, 99) < 99) { in CreateFromSource()
171 if (source->readAt(offset, buffer, 4) < 4) { in CreateFromSource()
179 if (source->readAt(xingbase + 0xaf - 0x24, &buffer, 1) < 1) { // encoding flags in CreateFromSource()
189 if (source->readAt(xingbase + 0xb1 - 0x24, &buffer, 3) == 3) { in CreateFromSource()
DVBRISeeker.cpp46 ssize_t n = source->readAt(pos, header, sizeof(header)); in CreateFromSource()
62 n = source->readAt(pos, vbriHeader, sizeof(vbriHeader)); in CreateFromSource()
106 n = source->readAt(pos + sizeof(vbriHeader), buffer, totalEntrySize); in CreateFromSource()
DMP3Extractor.cpp59 if (source->readAt(*inout_pos, id3header, sizeof(id3header)) in Resync()
122 totalBytesRead = source->readAt(pos + remainingBytes, in Resync()
166 if (source->readAt(test_pos, tmp, 4) < 4) { in Resync()
535 ssize_t n = mDataSource->readAt(mCurrentPos, buffer->data(), 4); in read()
580 ssize_t n = mDataSource->readAt(mCurrentPos, buffer->data(), frame_size); in read()
684 if (helper.readAt(0, mpeg_header, sizeof(mpeg_header)) < (ssize_t)sizeof(mpeg_header)) { in Sniff()
/frameworks/av/media/libmedia/
DMidiIoWrapper.cpp29 static int readAt(void *handle, void *buffer, int pos, int size) { in readAt() function
30 return ((android::MidiIoWrapper*)handle)->readAt(buffer, pos, size); in readAt()
74 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { in readAt() function in android::MidiIoWrapper::DataSourceUnwrapper
75 return mSource->readAt(mSource->handle, offset, data, size); in readAt()
128 int MidiIoWrapper::readAt(void *buffer, int offset, int size) { in readAt() function in android::MidiIoWrapper
192 return mDataSource->readAt(offset, buffer, size); in unbufferedReadAt()
212 mEasFile.readAt = ::readAt; in getLocator()
DIDataSource.cpp50 virtual ssize_t readAt(off64_t offset, size_t size) { in readAt() function
111 reply->writeInt64(readAt(offset, size)); in onTransact()
/frameworks/av/media/libstagefright/include/media/stagefright/
DDataSourceBase.h47 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0;
54 if (readAt(offset, byte, 2) != 2) { in getUInt16()
67 if (readAt(offset, byte, 3) != 3) { in getUInt24()
79 if (readAt(offset, &tmp, 4) != 4) { in getUInt32()
91 if (readAt(offset, &tmp, 8) != 8) { in getUInt64()
107 if (readAt(offset, &tmp, 1) == 1) { in getUInt16Var()
DRemoteDataSource.h51 virtual ssize_t readAt(off64_t offset, size_t size) { in readAt() function
62 return mSource->readAt(offset, mMemory->unsecurePointer(), size); in readAt()
/frameworks/av/media/ndk/
DNdkMediaDataSource.cpp47 AMediaDataSourceReadAt readAt; member
57 AMediaDataSource_setReadAt(mDataSource, dataSource->readAt); in NdkDataSource()
78 ssize_t NdkDataSource::readAt(off64_t offset, void *data, size_t size) { in readAt() function in NdkDataSource
80 if (mDataSource->readAt == NULL || mDataSource->userdata == NULL) { in readAt()
83 return mDataSource->readAt(mDataSource->userdata, offset, data, size); in readAt()
187 mSource->readAt = NULL; in AMediaDataSource_new()
233 void AMediaDataSource_setReadAt(AMediaDataSource *mSource, AMediaDataSourceReadAt readAt) { in AMediaDataSource_setReadAt() argument
234 mSource->readAt = readAt; in AMediaDataSource_setReadAt()
/frameworks/av/media/libstagefright/
DCallbackDataSource.cpp57 ssize_t CallbackDataSource::readAt(off64_t offset, void* data, size_t size) { in readAt() function in android::CallbackDataSource
71 mIDataSource->readAt(offset + totalNumRead, numToRead); in readAt()
130 ssize_t TinyCacheSource::readAt(off64_t offset, void* data, size_t size) { in readAt() function in android::TinyCacheSource
145 const ssize_t readMore = readAt(offset + remaining, in readAt()
155 return mSource->readAt(offset, data, size); in readAt()
159 const ssize_t numRead = mSource->readAt(offset, mCache, kCacheSize); in readAt()
DThrottledSource.cpp34 ssize_t ThrottledSource::readAt(off64_t offset, void *data, size_t size) { in readAt() function in android::ThrottledSource
37 ssize_t n = mSource->readAt(offset, data, size); in readAt()
DJPEGSource.cpp124 ssize_t n = mSource->readAt(mOffset, buffer->data(), mSize - mOffset); in read()
161 if (mSource->readAt(i++, &marker, 1) != 1) { in parseJPEG()
167 if (mSource->readAt(i++, &marker, 1) != 1) { in parseJPEG()
/frameworks/av/media/extractors/aac/
DAACExtractor.cpp102 if (source->readAt(offset, &syncword, 2) != 2) { in getAdtsFrameLength()
110 if (source->readAt(offset + 1, &protectionAbsent, 1) < 1) { in getAdtsFrameLength()
116 if (source->readAt(offset + 3, &header, 3) < 3) { in getAdtsFrameLength()
142 if (mDataSource->readAt(offset + 2, &header, 2) < 2) { in AACExtractor()
320 if (mDataSource->readAt(mOffset + headerSize, buffer->data(), in read()
357 if (helper.readAt(pos, id3header, sizeof(id3header)) in Sniff()
384 if (helper.readAt(pos, &header, 2) != 2) { in Sniff()
/frameworks/av/media/extractors/mp4/
DSampleIterator.cpp212 if (mTable->mDataSource->readAt( in getChunkOffset()
224 if (mTable->mDataSource->readAt( in getChunkOffset()
254 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
267 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
280 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
295 if (mTable->mDataSource->readAt( in getSampleSizeDirect()
DMPEG4Extractor.cpp240 ssize_t readAt(off64_t offset, void *data, size_t size) override;
288 ssize_t CachedRangedDataSource::readAt(off64_t offset, void *data, size_t size) { in readAt() function in android::CachedRangedDataSource
296 return mSource->readAt(offset, data, size); in readAt()
323 ssize_t err = mSource->readAt(mCachedOffset, mCache, mCachedSize); in setCachedRange()
628 if (mDataSource->readAt(offset, &header, size) == (ssize_t)size) { in getTrackMetaData()
860 if (mDataSource->readAt(*offset, hdr, 8) < 8) { in parseChunk()
868 if (mDataSource->readAt(*offset + 8, &chunk_size, 8) < 8) { in parseChunk()
914 if (mDataSource->readAt(*offset, buffer, n) in parseChunk()
1047 mDataSource->readAt(*offset, &terminate_code, 4); in parseChunk()
1210 if (mDataSource->readAt(data_offset + 4, &scheme_type, 4) < 4) { in parseChunk()
[all …]
DSampleTable.cpp190 if (mDataSource->readAt( in setChunkOffsetParams()
233 if (mDataSource->readAt( in setSampleToChunkParams()
290 if (mDataSource->readAt( in setSampleToChunkParams()
327 if (mDataSource->readAt( in setSampleSizeParams()
383 if (mDataSource->readAt( in setTimeToSampleParams()
419 if (mDataSource->readAt(data_offset + 8, mTimeToSample, in setTimeToSampleParams()
446 if (mDataSource->readAt( in setCompositionTimeToSampleParams()
493 if (mDataSource->readAt(data_offset + 8, mCompositionTimeDeltaEntries, in setCompositionTimeToSampleParams()
517 if (mDataSource->readAt( in setSyncSampleParams()
564 if (mDataSource->readAt(data_offset + 8, mSyncSamples, in setSyncSampleParams()
/frameworks/av/include/media/
DMediaExtractorPluginHelper.h311 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { in readAt() function
312 return mSource->readAt(mSource->handle, offset, data, size); in readAt()
332 if (readAt(offset, byte, 2) != 2) { in getUInt16()
346 if (readAt(offset, byte, 3) != 3) { in getUInt24()
359 if (readAt(offset, &tmp, 4) != 4) { in getUInt32()
372 if (readAt(offset, &tmp, 8) != 8) { in getUInt64()
388 if (readAt(offset, &tmp, 1) == 1) { in getUInt16Var()
DDataSource.h75 mWrapper->readAt = [](void *handle, off64_t offset, void *data, size_t size) -> ssize_t { in wrap()
76 return ((DataSource*)handle)->readAt(offset, data, size); in wrap()
/frameworks/av/media/libstagefright/include/
DCallbackDataSource.h37 virtual ssize_t readAt(off64_t offset, void *data, size_t size);
65 virtual ssize_t readAt(off64_t offset, void* data, size_t size);
/frameworks/av/media/extractors/wav/
DWAVExtractor.cpp164 if (mDataSource->readAt( in init()
179 if (mDataSource->readAt(offset, chunkHeader, 8) < 8) { in init()
198 if (mDataSource->readAt(offset, formatSpec, 2) < 2) { in init()
216 if (mDataSource->readAt(offset, formatSpec, fmtSize) < fmtSize) { in init()
498 ssize_t n = mDataSource->readAt( in read()
597 if (helper->readAt(0, header, sizeof(header)) < (ssize_t)sizeof(header)) { in Sniff()
/frameworks/wilhelm/src/android/util/
DAacAdtsExtractor.cpp56 ssize_t readSize = source->readAt(offset, &syncHeader, ADTS_HEADER_SIZE_UP_TO_FRAMESIZE); in getFrameSize()
109 ssize_t readSize = mDataSource->readAt(2, &header, 2); in AacAdtsExtractor()
259 ssize_t readSize = mDataSource->readAt(mOffset + ADTS_HEADER_LENGTH, buffer->data(), in read()
/frameworks/av/media/extractors/amr/
DAMRExtractor.cpp104 ssize_t count = source->readAt(offset, &header, 1); in getFrameSizeByOffset()
124 if (source->readAt(0, header, sizeof(header)) != sizeof(header)) { in SniffAMR()
323 ssize_t n = mDataSource->readAt(mOffset, &header, 1); in read()
350 n = mDataSource->readAt(mOffset, buffer->data(), frameSize); in read()
/frameworks/av/media/libdatasource/
DMediaHTTP.cpp94 ssize_t MediaHTTP::readAt(off64_t offset, void *data, size_t size) { in readAt() function in android::MediaHTTP
111 ssize_t n = mHTTPConnection->readAt( in readAt()
/frameworks/base/media/java/android/media/
DMediaDataSource.java51 public abstract int readAt(long position, byte[] buffer, int offset, int size) in readAt() method in MediaDataSource
DIMediaHTTPConnection.aidl29 int readAt(long offset, int size); in readAt() method
/frameworks/av/media/libdatasource/include/datasource/
DDataURISource.h32 virtual ssize_t readAt(off64_t offset, void *data, size_t size);

123