Searched refs:mCachedOffset (Results 1 – 4 of 4) sorted by relevance
/frameworks/av/media/libheif/ |
D | HeifDecoderImpl.cpp | 54 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/ |
D | CallbackDataSource.cpp | 125 : 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/ |
D | CallbackDataSource.h | 86 off64_t mCachedOffset; variable
|
/frameworks/av/media/extractors/mp4/ |
D | MPEG4Extractor.cpp | 226 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()
|