/frameworks/av/media/libmediaplayerservice/ |
H A D | VideoFrameScheduler.cpp | 421 nsecs_t offset = 0; local 424 offset += 428 mTimeCorrection += mVsyncPeriod / 2 - offset / N;
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | GenericSource.cpp | 115 int fd, int64_t offset, int64_t length) { 119 mOffset = offset; 114 setDataSource( int fd, int64_t offset, int64_t length) argument
|
H A D | NuPlayer.cpp | 268 void NuPlayer::setDataSourceAsync(int fd, int64_t offset, int64_t length) { argument 276 status_t err = source->setDataSource(fd, offset, length);
|
H A D | NuPlayerCCDecoder.cpp | 54 size_t offset = 0; local 57 while (offset < ccBuf->size()) { 60 CCData *cc = (CCData *) (ccBuf->data() + offset); 64 offset += sizeof(CCData); 109 offset += sizeof(CCData);
|
H A D | NuPlayerDecoder.cpp | 398 size_t offset; local 403 &bufferIx, &offset, &size, &timeUs, &flags); 474 buffer->setRange(offset, size); 758 codecBuffer->offset(),
|
H A D | NuPlayerDriver.cpp | 100 status_t NuPlayerDriver::setDataSource(int fd, int64_t offset, int64_t length) { argument 110 mPlayer->setDataSourceAsync(fd, offset, length);
|
H A D | RTSPSource.cpp | 396 size_t offset = 0; local 398 while (offset + 188 <= accessUnit->size()) { 400 accessUnit->data() + offset, 188); 405 offset += 188; 408 if (offset < accessUnit->size()) {
|
/frameworks/av/media/libstagefright/ |
H A D | AACExtractor.cpp | 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) { argument 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; local 153 CHECK(meta->findInt64("offset", &offset)); 156 if (mDataSource->readAt(offset + 2, &header, 2) < 2) { 175 while (offset < streamSiz [all...] |
H A D | AMRExtractor.cpp | 101 off64_t offset, bool isWide, size_t *frameSize) { 103 if (source->readAt(offset, &header, 1) < 1) { 136 off64_t offset = mIsWide ? 9 : 6; local 142 while (offset < streamSize) { 143 if (getFrameSizeByOffset(source, offset, mIsWide, &frameSize) != OK) { 149 mOffsetTable[mOffsetTableLength] = offset - (mIsWide ? 9: 6); 153 offset += frameSize; 100 getFrameSizeByOffset(const sp<DataSource> &source, off64_t offset, bool isWide, size_t *frameSize) argument
|
H A D | AVIExtractor.cpp | 172 off64_t offset; local 177 mTrackIndex, mSampleIndex, &offset, &size, &isKey, &timeUs); 188 ssize_t n = mExtractor->mDataSource->readAt(offset, out->data(), size); 245 if (mBuffer != NULL && mBuffer->offset() > 0) { 278 for (size_t offset = 0; offset + 3 < mBuffer->size(); ++offset) { 279 uint32_t firstHeader = U32_AT(mBuffer->data() + offset); 286 size_t subsequentOffset = offset + frameSize; 311 mBuffer->data() + offset, 422 parseChunk(off64_t offset, off64_t size, int depth) argument 589 parseStreamHeader(off64_t offset, size_t size) argument 669 parseStreamFormat(off64_t offset, size_t size) argument 767 parseIndex(off64_t offset, size_t size) argument 810 uint32_t offset = U32LE_AT(&data[8]); local 845 off64_t offset; local 881 off64_t offset; local 1002 off64_t offset; local 1050 off64_t offset; local 1104 getSampleInfo( size_t trackIndex, size_t sampleIndex, off64_t *offset, size_t *size, bool *isKey, int64_t *sampleTimeUs) argument 1165 off64_t offset; local [all...] |
H A D | AwesomePlayer.cpp | 339 int fd, int64_t offset, int64_t length) { 344 sp<DataSource> dataSource = new FileSource(fd, offset, length); 1780 // In order to avoid jumps in the DataSource offset caused by 2837 off64_t offset = request.readInt64(); local 2842 nTracks, fd, offset, length, mimeType); 338 setDataSource( int fd, int64_t offset, int64_t length) argument
|
H A D | DataSource.cpp | 51 bool DataSource::getUInt16(off64_t offset, uint16_t *x) { argument 55 if (readAt(offset, byte, 2) != 2) { 64 bool DataSource::getUInt24(off64_t offset, uint32_t *x) { argument 68 if (readAt(offset, byte, 3) != 3) { 77 bool DataSource::getUInt32(off64_t offset, uint32_t *x) { argument 81 if (readAt(offset, &tmp, 4) != 4) { 90 bool DataSource::getUInt64(off64_t offset, uint64_t *x) { argument 94 if (readAt(offset, &tmp, 8) != 8) {
|
H A D | DataURISource.cpp | 87 ssize_t DataURISource::readAt(off64_t offset, void *data, size_t size) { argument 88 if ((offset < 0) || (offset >= (off64_t)mBuffer->size())) { 92 size_t copy = mBuffer->size() - offset; 97 memcpy(data, mBuffer->data() + offset, copy);
|
H A D | ESDS.cpp | 70 size_t offset, size_t size, 76 *tag = mData[offset++]; 86 uint8_t x = mData[offset++]; 100 *data_offset = offset; 123 status_t ESDS::parseESDescriptor(size_t offset, size_t size) { argument 128 offset += 2; // skip ES_ID 131 unsigned streamDependenceFlag = mData[offset] & 0x80; 132 unsigned URL_Flag = mData[offset] & 0x40; 133 unsigned OCRstreamFlag = mData[offset] & 0x20; 135 ++offset; 69 skipDescriptorHeader( size_t offset, size_t size, uint8_t *tag, size_t *data_offset, size_t *data_size) const argument 191 parseDecoderConfigDescriptor(size_t offset, size_t size) argument [all...] |
H A D | FileSource.cpp | 46 FileSource::FileSource(int fd, int64_t offset, int64_t length) argument 48 mOffset(offset), 55 CHECK(offset >= 0); 87 ssize_t FileSource::readAt(off64_t offset, void *data, size_t size) { argument 95 if (offset >= mLength) { 98 int64_t numAvailable = mLength - offset; 106 return readAtDRM(offset, data, size); 108 off64_t result = lseek64(mFd, offset + mOffset, SEEK_SET); 110 ALOGE("seek to %lld failed", offset + mOffset); 158 ssize_t FileSource::readAtDRM(off64_t offset, voi argument [all...] |
H A D | MPEG2TSWriter.cpp | 938 size_t offset = copy; local 939 while (offset < accessUnit->size()) { 940 bool lastAccessUnit = ((accessUnit->size() - offset) < 184); 966 uint8_t paddingSize = (uint8_t)184 - (accessUnit->size() - offset); 975 size_t copy = accessUnit->size() - offset; 980 memcpy(ptr, accessUnit->data() + offset, copy); 984 offset += copy; 1010 * Compute CRC32 checksum for buffer starting at offset start and for length
|
H A D | MPEG4Extractor.cpp | 119 status_t parseChunk(off64_t *offset); 120 status_t parseTrackFragmentHeader(off64_t offset, off64_t size); 121 status_t parseTrackFragmentRun(off64_t offset, off64_t size); 122 status_t parseSampleAuxiliaryInformationSizes(off64_t offset, off64_t size); 123 status_t parseSampleAuxiliaryInformationOffsets(off64_t offset, off64_t size); 148 off64_t offset; member in struct:android::MPEG4Source::Sample 173 virtual ssize_t readAt(off64_t offset, void *data, size_t size); 177 status_t setCachedRange(off64_t offset, size_t size); 221 ssize_t MPEG4DataSource::readAt(off64_t offset, void *data, size_t size) { argument 224 if (offset > 241 setCachedRange(off64_t offset, size_t size) argument 270 size_t offset = 0; local 489 off64_t offset = 0; local 573 readSize(off64_t offset, const sp<DataSource> DataSource, uint8_t *numOfBytes) argument 762 parseChunk(off64_t *offset, int depth) argument 2002 parseSegmentIndex(off64_t offset, size_t size) argument 2210 parseITunesMetaData(off64_t offset, size_t size) argument 2400 parse3GPPMetaData(off64_t offset, size_t size, int depth) argument 2511 parseID3v2MetaData(off64_t offset) argument 3033 off64_t offset = mFirstMoofOffset; local 3099 parseChunk(off64_t *offset) argument 3215 parseSampleAuxiliaryInformationSizes( off64_t offset, off64_t ) argument 3278 parseSampleAuxiliaryInformationOffsets( off64_t offset, off64_t ) argument 3377 parseTrackFragmentHeader(off64_t offset, off64_t size) argument 3476 parseTrackFragmentRun(off64_t offset, off64_t size) argument 3757 off64_t offset; local 4002 off64_t offset = 0; local 4299 off64_t offset = 0ll; local [all...] |
H A D | MPEG4Writer.cpp | 83 void addChunkOffset(off64_t offset); 577 * changed later for 32-bit file offset even if 1156 off64_t offset = *--mBoxes.end(); local 1160 int32_t x = htonl(mMoovBoxBufferOffset - offset); 1161 memcpy(mMoovBoxBuffer + offset, &x, 4); 1163 lseek64(mFd, offset, SEEK_SET); 1164 writeInt32(mOffset - offset); 1440 void MPEG4Writer::Track::addChunkOffset(off64_t offset) { argument 1442 uint32_t value = offset; 1445 mCo64TableEntries->add(hton64(offset)); 1576 off64_t offset = chunk->mTrack->isAvc() local 2372 off64_t offset = mIsAvc? mOwner->addLengthPrefixedSample_l(copy) local [all...] |
H A D | MediaBuffer.cpp | 135 void MediaBuffer::set_range(size_t offset, size_t length) { argument 136 if ((mGraphicBuffer == NULL) && (offset + length > mSize)) { 137 ALOGE("offset = %zu, length = %zu, mSize = %zu", offset, length, mSize); 139 CHECK((mGraphicBuffer != NULL) || (offset + length <= mSize)); 141 mRangeOffset = offset;
|
H A D | MediaCodec.cpp | 367 size_t offset, 378 msg->setSize("offset", offset); 390 size_t offset, 405 msg->setSize("offset", offset); 438 size_t *offset, 453 CHECK(response->findSize("offset", offset)); 693 response->setSize("offset", buffe 365 queueInputBuffer( size_t index, size_t offset, size_t size, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument 388 queueSecureInputBuffer( size_t index, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument 436 dequeueOutputBuffer( size_t *index, size_t *offset, size_t *size, int64_t *presentationTimeUs, uint32_t *flags, int64_t timeoutUs) argument 1856 size_t offset; local [all...] |
H A D | MediaCodecSource.cpp | 683 size_t offset; local 690 CHECK(msg->findSize("offset", &offset)); 716 // queued before start, and offset timeUs by start time
|
H A D | NuCachedSource2.cpp | 148 size_t offset = 0; local 150 while (from >= offset + (*it)->mSize) { 151 offset += (*it)->mSize; 155 size_t delta = from - offset; 442 int64_t offset; local 443 CHECK(msg->findInt64("offset", &offset)); 451 ssize_t result = readInternal(offset, data, size); 503 ssize_t NuCachedSource2::readAt(off64_t offset, void *data, size_t size) { argument 506 ALOGV("readAt offset 579 readInternal(off64_t offset, void *data, size_t size) argument 635 seekInternal_l(off64_t offset) argument [all...] |
H A D | NuMediaExtractor.cpp | 130 status_t NuMediaExtractor::setDataSource(int fd, off64_t offset, off64_t size) { argument 138 sp<FileSource> fileSource = new FileSource(dup(fd), offset, size);
|
H A D | OMXCodec.cpp | 3122 size_t offset = 0; local 3176 size_t remainingBytes = info->mSize - offset; 3179 if (offset == 0) { 3211 memcpy((uint8_t *)info->mData + offset, 3224 if (offset == 0) { 3228 offset += srcBuffer->range_length(); 3232 CHECK_GE(info->mSize, offset + sizeof(int32_t)); 3240 memcpy((uint8_t *)info->mData + offset, 3244 offset += sizeof(numPageSamples); 3290 info->mBuffer, offset, [all...] |
H A D | OggExtractor.cpp | 78 status_t seekToOffset(off64_t offset); 121 ssize_t readPage(off64_t offset, Page *page); 263 // Given the offset of the "current" page, find the page immediately preceding 265 // To do this we back up from the "current" page's offset until we find any 323 ALOGV("seeking to offset %lld", pos); 350 ALOGV("seeking to entry %zu / %zu at offset %lld", 356 status_t MyVorbisExtractor::seekToOffset(off64_t offset) { argument 357 if (mFirstDataOffset >= 0 && offset < mFirstDataOffset) { 360 offset = mFirstDataOffset; 364 status_t err = findNextPage(offset, 389 readPage(off64_t offset, Page *page) argument 663 off64_t offset = mFirstDataOffset; local [all...] |