Home
last modified time | relevance | path

Searched refs:range_length (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/av/media/libstagefright/httplive/
DHTTPDownloader.cpp82 int64_t range_offset, int64_t range_length, in fetchBlock() argument
100 if (range_offset > 0 || range_length >= 0) { in fetchBlock()
107 range_length < 0 in fetchBlock()
109 range_offset + range_length - 1).c_str()).c_str())); in fetchBlock()
143 …if (block_size > 0 && (range_length == -1 || (int64_t)(buffer->size() + block_size) < range_length in fetchBlock()
144 range_length = buffer->size() + block_size; in fetchBlock()
173 if (range_length >= 0) { in fetchBlock()
174 int64_t bytesLeftInRange = range_length - buffer->size(); in fetchBlock()
176 ALOGE("range_length %" PRId64 " wrapped around", range_length); in fetchBlock()
DHTTPDownloader.h57 int64_t range_length, /* open file for range_length (-1: entire file) */
/frameworks/av/media/libstagefright/rtsp/
DARTPWriter.cpp347 if (buffer->range_length() < 4) { in StripStartcode()
356 buffer->range_offset() + 4, buffer->range_length() - 4); in StripStartcode()
366 while (buffer->range_length() > 0) { in SpsPpsParser()
380 uint32_t bufferSize = buffer->range_length(); in SpsPpsParser()
410 buffer->range_length() - targetSize - SPCSize); in SpsPpsParser()
426 while (buffer->range_length() > 0) { in VpsSpsPpsParser()
442 uint32_t bufferSize = buffer->range_length(); in VpsSpsPpsParser()
472 buffer->range_length() - targetSize - SPCSize); in VpsSpsPpsParser()
588 if (mediaBuf->range_length() > 0) { in onRead()
589 ALOGV("read buffer of size %zu", mediaBuf->range_length()); in onRead()
[all …]
Drtp_test.cpp202 if (buffer->range_length() != 0) { in main()
207 buffer->range_length(), timeUs / 1E6); in main()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBufferBase.h62 virtual size_t range_length() const = 0;
106 mWrapper->range_length = [](void *handle) -> size_t { in wrap()
107 return ((MediaBufferBase*)handle)->range_length(); in wrap()
DMediaBuffer.h77 virtual size_t range_length() const;
/frameworks/av/media/libstagefright/
DMPEG2TSWriter.cpp256 if (mBuffer == NULL || buffer->range_length() > mBuffer->capacity()) { in appendAVCFrame()
257 mBuffer = new ABuffer(buffer->range_length()); in appendAVCFrame()
264 buffer->range_length()); in appendAVCFrame()
276 mBuffer->setRange(0, buffer->range_length()); in appendAVCFrame()
286 if (mBuffer == NULL || 7 + buffer->range_length() > mBuffer->capacity()) { in appendAACFrames()
287 mBuffer = new ABuffer(7 + buffer->range_length()); in appendAACFrames()
311 const uint32_t aac_frame_length = buffer->range_length() + 7; in appendAACFrames()
333 buffer->range_length()); in appendAACFrames()
335 ptr += buffer->range_length(); in appendAACFrames()
385 CHECK_GE(buffer->range_length(), 2u); in onMessageReceived()
[all …]
DOggWriter.cpp306 mEstimatedSizeBytes += buffer->range_length(); in threadFunc()
320 buffer->range_length())) { in threadFunc()
329 buffer->range_length(), &opusHeadBuf, in threadFunc()
380 op.bytes = (long)buffer->range_length(); in threadFunc()
399 if (n < buffer->range_length()) { in threadFunc()
DAMRWriter.cpp209 mEstimatedSizeBytes += buffer->range_length(); in threadFunc()
241 buffer->range_length()); in threadFunc()
243 if (n < (ssize_t)buffer->range_length()) { in threadFunc()
DSimpleDecodingSource.cpp305 } else if (in_buf->range_length() != 0) { in doRead()
314 if (in_buf->range_length() + (mIsVorbis ? 4 : 0) > in_buffer->capacity()) { in doRead()
317 in_buf->range_length() + (mIsVorbis ? 4 : 0), in_buffer->capacity()); in doRead()
319 size_t cpLen = min(in_buf->range_length(), in_buffer->capacity()); in doRead()
DAudioSource.cpp296 memset((uint8_t *) buffer->data(), 0, buffer->range_length()); in read()
306 (uint8_t *) buffer->data(), buffer->range_length()); in read()
312 (int16_t *) buffer->data(), buffer->range_length() >> 1); in read()
453 const size_t bufferSize = buffer->range_length(); in queueInputBuffer_l()
DAACWriter.cpp310 mEstimatedSizeBytes += kAdtsHeaderLength + buffer->range_length(); in threadFunc()
352 ssize_t dataLength = buffer->range_length(); in threadFunc()
DMPEG4Writer.cpp1640 ALOGV("buffer->range_length:%lld", (long long)buffer->range_length()); in addSample_l()
1645 *bytesWritten = buffer->range_length(); in addSample_l()
1649 mOffset += buffer->range_length(); in addSample_l()
1652 mOffset = offset + buffer->range_length(); in addSample_l()
1655 *bytesWritten = buffer->range_length(); in addSample_l()
1675 buffer->range_length()); in addSample_l()
1677 mOffset += buffer->range_length(); in addSample_l()
1688 if (buffer->range_length() < 4) { in StripStartcode()
1698 buffer->range_offset() + 4, buffer->range_length() - 4); in StripStartcode()
1708 size_t searchSize = buffer->range_length(); in addMultipleLengthPrefixedSamples_l()
[all …]
DNuMediaExtractor.cpp650 memcpy((uint8_t *)buffer->data() + mbuf->range_length(), in appendVorbisNumPageSamples()
711 size_t sampleSize = it->mBuffer->range_length(); in readSampleData()
724 const size_t srclen = it->mBuffer->range_length(); in readSampleData()
752 *sampleSize = it->mBuffer->range_length(); in getSampleSize()
/frameworks/wilhelm/src/android/
Dandroid_AudioToCbRenderer.cpp64 size_t full = mDecodeBuffer->range_length(); in onRender()
71 mDecodeBuffer->range_length() - offset, in onRender()
/frameworks/av/media/libstagefright/webm/
DWebmFrame.cpp31 sp<ABuffer> abuf = new ABuffer(mbuf->range_length()); in toABuffer()
32 memcpy(abuf->data(), (uint8_t*) mbuf->data() + mbuf->range_offset(), mbuf->range_length()); in toABuffer()
DWebmFrameThread.cpp350 if (buffer->range_length() == 0) { in run()
407 buffer->range_length()); in run()
/frameworks/av/media/module/extractors/mkv/
DMatroskaExtractor.cpp652 if (mbuf->range_length() < 1 || mbuf->range_length() - 1 > INT32_MAX) { in setWebmBlockCryptoInfo()
660 if (encrypted && mbuf->range_length() < 9) { in setWebmBlockCryptoInfo()
697 if (mbuf->range_length() < 10) { in setWebmBlockCryptoInfo()
701 if (mbuf->range_length() - 10 < numPartitions * sizeof(uint32_t)) { in setWebmBlockCryptoInfo()
711 : (mbuf->range_length() - frameOffset); in setWebmBlockCryptoInfo()
732 mbuf->set_range(frameOffset, mbuf->range_length() - frameOffset); in setWebmBlockCryptoInfo()
750 int32_t encryptedSizes[] = { static_cast<int32_t>(mbuf->range_length() - 9) }; in setWebmBlockCryptoInfo()
755 mbuf->set_range(9, mbuf->range_length() - 9); in setWebmBlockCryptoInfo()
769 int32_t plainSizes[] = { static_cast<int32_t>(mbuf->range_length() - 1) }; in setWebmBlockCryptoInfo()
775 mbuf->set_range(1, mbuf->range_length() - 1); in setWebmBlockCryptoInfo()
[all …]
/frameworks/av/cmds/stagefright/
DAudioPlayer.cpp545 if(mInputBuffer->range_length() != 0) { in fillBuffer()
572 mInputBuffer->range_length(), in fillBuffer()
578 if (mInputBuffer->range_length() == 0) { in fillBuffer()
586 if (copy > mInputBuffer->range_length()) { in fillBuffer()
587 copy = mInputBuffer->range_length(); in fillBuffer()
595 mInputBuffer->range_length() - copy); in fillBuffer()
Dstagefright.cpp181 mbuf->range_length(), in dumpSource()
183 mbuf->range_length()); in dumpSource()
361 if (buffer->range_length() > 0) { in playSource()
378 totalBytes += buffer->range_length(); in playSource()
491 size_t size = buffer->range_length(); in isIDRFrame()
604 if (buffer->range_length() > 0) { in performSeekTest()
/frameworks/av/media/module/extractors/ogg/
DOggExtractor.cpp706 if (buffer == NULL || buffer->range_length() < 1) { in getNumSamplesInPacket()
737 if (buffer->range_length() < 3) { in getNumSamplesInPacket()
794 size_t range_length() override { in range_length() function in android::StandAloneMediaBuffer
837 fullSize += buffer->range_length(); in _readNextPacket()
863 memcpy(tmp->data(), buffer->data(), buffer->range_length()); in _readNextPacket()
864 tmp->set_range(0, buffer->range_length()); in _readNextPacket()
873 (uint8_t *)buffer->data() + buffer->range_length(), in _readNextPacket()
993 ALOGV("read packet of size %zu\n", packet->range_length()); in init()
1073 size_t size = buffer->range_length(); in getPacketBlockSize()
1127 size_t size = buffer->range_length(); in verifyOpusHeader()
[all …]
/frameworks/av/media/module/extractors/tests/
DExtractorUnitTest.cpp438 buffer->data(), buffer->size(), buffer->range_length()); in TEST_P()
439 if (outFp) fwrite(buffer->data(), 1, buffer->range_length(), outFp); in TEST_P()
561 buffer->data(), buffer->size(), buffer->range_length()); in TEST_P()
1071 ASSERT_LE(offset + buffer->range_length(), mExtractorOuputSize[idx]) in TEST_P()
1074 memcpy(mExtractorOutput[idx] + offset, buffer->data(), buffer->range_length()); in TEST_P()
1075 extractedOutputSize[idx] += buffer->range_length(); in TEST_P()
1076 offset += buffer->range_length(); in TEST_P()
/frameworks/av/include/media/
DMediaExtractorPluginApi.h60 size_t (*range_length)(void *handle); member
DMediaExtractorPluginHelper.h67 virtual size_t range_length() { in range_length() function
68 return mBuffer->range_length(mBuffer->handle); in range_length()
/frameworks/av/media/module/foundation/
DMediaBuffer.cpp137 size_t MediaBuffer::range_length() const { in range_length() function in android::MediaBuffer

12