Home
last modified time | relevance | path

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

/frameworks/av/media/libheif/
DHeifDecoderImpl.cpp54 mCachedOffset(0), mCachedSize(0), mCacheBufferSize(0) {} in HeifDataSource()
90 off64_t mCachedOffset; member in android::HeifDataSource
115 if (offset < mCachedOffset) { in readAt()
119 mCachedOffset = offset; in readAt()
124 mCachedOffset = 0; in readAt()
133 if (mEOS && (offset < mCachedOffset || in readAt()
134 offset >= (off64_t)(mCachedOffset + mCachedSize))) { in readAt()
141 CHECK(offset >= mCachedOffset); in readAt()
158 if (offset + size <= mCachedOffset + mCachedSize) { in readAt()
159 memcpy(mMemory->pointer(), mCache.get() + offset - mCachedOffset, size); in readAt()
[all …]
/frameworks/av/media/libstagefright/
DCallbackDataSource.cpp125 : mSource(source), mCachedOffset(0), mCachedSize(0) { in TinyCacheSource()
135 if (mCachedOffset <= offset in readAt()
136 && offset < (off64_t) (mCachedOffset + mCachedSize)) { in readAt()
137 if (offset + size <= mCachedOffset + mCachedSize) { in readAt()
138 memcpy(data, &mCache[offset - mCachedOffset], size); in readAt()
146 const ssize_t remaining = mCachedOffset + mCachedSize - offset; in readAt()
147 memcpy(data, &mCache[offset - mCachedOffset], remaining); in readAt()
166 mCachedOffset = 0; in readAt()
172 mCachedOffset = 0; in readAt()
177 mCachedOffset = offset; in readAt()
[all …]
/frameworks/av/media/libstagefright/include/
DCallbackDataSource.h86 off64_t mCachedOffset; variable
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp226 off64_t mCachedOffset; member in android::CachedRangedDataSource
240 mCachedOffset(0), in CachedRangedDataSource()
258 mCachedOffset = 0; in clearCache()
265 if (isInRange(mCachedOffset, mCachedSize, offset, size)) { in readAt()
266 memcpy(data, &mCache[offset - mCachedOffset], size); in readAt()
294 mCachedOffset = offset; in setCachedRange()
297 ssize_t err = mSource->readAt(mCachedOffset, mCache, mCachedSize); in setCachedRange()