Home
last modified time | relevance | path

Searched refs:mCachedOffset (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libstagefright/
DCallbackDataSource.cpp122 : mSource(source), mCachedOffset(0), mCachedSize(0) { in TinyCacheSource()
132 if (mCachedOffset <= offset in readAt()
133 && offset < (off64_t) (mCachedOffset + mCachedSize)) { in readAt()
134 if (offset + size <= mCachedOffset + mCachedSize) { in readAt()
135 memcpy(data, &mCache[offset - mCachedOffset], size); in readAt()
143 const ssize_t remaining = mCachedOffset + mCachedSize - offset; in readAt()
144 memcpy(data, &mCache[offset - mCachedOffset], remaining); in readAt()
163 mCachedOffset = 0; in readAt()
169 mCachedOffset = 0; in readAt()
174 mCachedOffset = offset; in readAt()
[all …]
/frameworks/av/media/libheif/
DHeifDecoderImpl.cpp71 mCachedOffset(0), mCachedSize(0), mCacheBufferSize(0) {} in HeifDataSource()
104 off64_t mCachedOffset; member in android::HeifDataSource
129 if (offset < mCachedOffset) { in readAt()
133 mCachedOffset = offset; in readAt()
138 mCachedOffset = 0; in readAt()
147 if (mEOS && (offset < mCachedOffset || in readAt()
148 offset >= (off64_t)(mCachedOffset + mCachedSize))) { in readAt()
155 CHECK(offset >= mCachedOffset); in readAt()
172 if (offset + size <= mCachedOffset + mCachedSize) { in readAt()
173 memcpy(mMemory->unsecurePointer(), mCache.get() + offset - mCachedOffset, size); in readAt()
[all …]
/frameworks/av/media/libstagefright/include/
DCallbackDataSource.h84 off64_t mCachedOffset; variable
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp251 off64_t mCachedOffset; member in android::CachedRangedDataSource
265 mCachedOffset(0), in CachedRangedDataSource()
283 mCachedOffset = 0; in clearCache()
290 if (isInRange(mCachedOffset, mCachedSize, offset, size)) { in readAt()
291 memcpy(data, &mCache[offset - mCachedOffset], size); in readAt()
319 mCachedOffset = offset; in setCachedRange()
322 ssize_t err = mSource->readAt(mCachedOffset, mCache, mCachedSize); in setCachedRange()