Lines Matching refs:readOffset
397 for (size_t readOffset = 1; readOffset < mSize; ++readOffset) { in removeUnsynchronization() local
398 if (mData[readOffset - 1] == 0xff && mData[readOffset] == 0x00) { in removeUnsynchronization()
404 mData[writeOffset++] = mData[readOffset]; in removeUnsynchronization()
464 size_t readOffset = offset + 11; in removeUnsynchronizationV2_4() local
467 if (mData[readOffset - 1] == 0xff in removeUnsynchronizationV2_4()
468 && mData[readOffset] == 0x00) { in removeUnsynchronizationV2_4()
469 ++readOffset; in removeUnsynchronizationV2_4()
477 mData[writeOffset++] = mData[readOffset++]; in removeUnsynchronizationV2_4()
481 if (readOffset <= oldSize) { in removeUnsynchronizationV2_4()
482 memmove(&mData[writeOffset], &mData[readOffset], oldSize - readOffset); in removeUnsynchronizationV2_4()
484 ALOGE("b/34618607 (%zu %zu %zu %zu)", readOffset, writeOffset, oldSize, mSize); in removeUnsynchronizationV2_4()