Lines Matching defs:offset
90 // Returns the frame length in bytes as described in an ADTS header starting at the given offset,
95 static size_t getAdtsFrameLength(const sp<DataSource> &source, off64_t offset, size_t* headerSize) {
103 if (source->readAt(offset, &syncword, 2) != 2) {
111 if (source->readAt(offset + 1, &protectionAbsent, 1) < 1) {
117 if (source->readAt(offset + 3, &header, 3) < 3) {
152 int64_t offset;
153 CHECK(meta->findInt64("offset", &offset));
156 if (mDataSource->readAt(offset + 2, &header, 2) < 2) {
175 while (offset < streamSize) {
176 if ((frameSize = getAdtsFrameLength(source, offset, NULL)) == 0) {
180 mOffsetVector.push(offset);
182 offset += frameSize;
362 ALOGV("skipped ID3 tag, new starting offset is %lld (0x%016llx)",
378 (*meta)->setInt64("offset", pos);