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() 87 off64_t mCachedOffset; member in android::HeifDataSource 112 if (offset < mCachedOffset) { in readAt() 116 mCachedOffset = offset; in readAt() 121 mCachedOffset = 0; in readAt() 130 if (mEOS && (offset < mCachedOffset || in readAt() 131 offset >= (off64_t)(mCachedOffset + mCachedSize))) { in readAt() 138 CHECK(offset >= mCachedOffset); in readAt() 155 if (offset + size <= mCachedOffset + mCachedSize) { in readAt() 156 memcpy(mMemory->pointer(), mCache.get() + offset - mCachedOffset, size); in readAt() [all …]
|
/frameworks/av/media/libstagefright/ |
D | CallbackDataSource.cpp | 121 : mSource(source), mCachedOffset(0), mCachedSize(0) { in TinyCacheSource() 131 if (mCachedOffset <= offset in readAt() 132 && offset < (off64_t) (mCachedOffset + mCachedSize)) { in readAt() 133 if (offset + size <= mCachedOffset + mCachedSize) { in readAt() 134 memcpy(data, &mCache[offset - mCachedOffset], size); in readAt() 142 const ssize_t remaining = mCachedOffset + mCachedSize - offset; in readAt() 143 memcpy(data, &mCache[offset - mCachedOffset], remaining); in readAt() 162 mCachedOffset = 0; in readAt() 168 mCachedOffset = 0; in readAt() 173 mCachedOffset = offset; in readAt() [all …]
|
/frameworks/av/media/libstagefright/include/ |
D | CallbackDataSource.h | 84 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()
|