Home
last modified time | relevance | path

Searched refs:range_length (Results 1 – 25 of 44) 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.cpp177 if (buffer->range_length() < 4) { in StripStartcode()
186 buffer->range_offset() + 4, buffer->range_length() - 4); in StripStartcode()
279 if (mediaBuf->range_length() > 0) { in onRead()
280 ALOGV("read buffer of size %zu", mediaBuf->range_length()); in onRead()
533 size_t size = buffer->range_length(); in makeH264SPropParamSets()
585 if (mediaBuf->range_length() + 12 <= buffer->capacity()) { in sendAVCData()
602 mediaData, mediaBuf->range_length()); in sendAVCData()
604 buffer->setRange(0, mediaBuf->range_length() + 12); in sendAVCData()
618 while (offset < mediaBuf->range_length()) { in sendAVCData()
619 size_t size = mediaBuf->range_length() - offset; in sendAVCData()
[all …]
Drtp_test.cpp202 if (buffer->range_length() != 0) { in main()
207 buffer->range_length(), timeUs / 1E6); in main()
DMyTransmitter.h634 if (mediaBuf->range_length() > 0) { in onMessageReceived()
651 CHECK_LE(mediaBuf->range_length() - 4 + 12, buffer->size()); in onMessageReceived()
654 mediaData + 4, mediaBuf->range_length() - 4); in onMessageReceived()
656 buffer->setRange(0, mediaBuf->range_length() - 4 + 12); in onMessageReceived()
869 size_t size = buffer->range_length(); in onMessageReceived()
/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.cpp299 mEstimatedSizeBytes += buffer->range_length(); in threadFunc()
313 buffer->range_length())) { in threadFunc()
322 buffer->range_length(), &opusHeadBuf, in threadFunc()
373 op.bytes = (long)buffer->range_length(); in threadFunc()
392 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()
332 in_ix, 0 /* offset */, in_buf->range_length() + (mIsVorbis ? 4 : 0), in doRead()
DAudioSource.cpp275 memset((uint8_t *) buffer->data(), 0, buffer->range_length()); in read()
285 (uint8_t *) buffer->data(), buffer->range_length()); in read()
291 (int16_t *) buffer->data(), buffer->range_length() >> 1); in read()
432 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.cpp1386 buffer->range_length()); in addSample_l()
1388 mOffset += buffer->range_length(); in addSample_l()
1396 if (buffer->range_length() < 4) { in StripStartcode()
1405 buffer->range_offset() + 4, buffer->range_length() - 4); in StripStartcode()
1415 size_t searchSize = buffer->range_length(); in addMultipleLengthPrefixedSamples_l()
1429 buffer->range_length() - currentNalOffset); in addMultipleLengthPrefixedSamples_l()
1434 size_t length = buffer->range_length(); in addLengthPrefixedSample_l()
2000 size_t length = buffer->range_length(); in isExifData()
2013 buffer->set_range(4, buffer->range_length() - 4); in isExifData()
2978 if (buffer->range_length() == 0) { in threadEntry()
[all …]
DFrameDecoder.cpp315 if (mediaBuffer->range_length() > codecBuffer->capacity()) { in extractInternal()
317 mediaBuffer->range_length(), codecBuffer->capacity()); in extractInternal()
321 codecBuffer->setRange(0, mediaBuffer->range_length()); in extractInternal()
326 mediaBuffer->range_length()); in extractInternal()
DNuMediaExtractor.cpp599 memcpy((uint8_t *)buffer->data() + mbuf->range_length(), in appendVorbisNumPageSamples()
657 size_t sampleSize = it->mBuffer->range_length(); in readSampleData()
673 memcpy((uint8_t *)buffer->data(), src, it->mBuffer->range_length()); in readSampleData()
698 *sampleSize = it->mBuffer->range_length(); in getSampleSize()
/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()
/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/extractors/mkv/
DMatroskaExtractor.cpp647 if (mbuf->range_length() < 1 || mbuf->range_length() - 1 > INT32_MAX) { in setWebmBlockCryptoInfo()
655 if (encrypted && mbuf->range_length() < 9) { in setWebmBlockCryptoInfo()
692 if (mbuf->range_length() < 10) { in setWebmBlockCryptoInfo()
696 if (mbuf->range_length() - 10 < numPartitions * sizeof(uint32_t)) { in setWebmBlockCryptoInfo()
706 : (mbuf->range_length() - frameOffset); in setWebmBlockCryptoInfo()
727 mbuf->set_range(frameOffset, mbuf->range_length() - frameOffset); in setWebmBlockCryptoInfo()
745 int32_t encryptedSizes[] = { static_cast<int32_t>(mbuf->range_length() - 9) }; in setWebmBlockCryptoInfo()
750 mbuf->set_range(9, mbuf->range_length() - 9); in setWebmBlockCryptoInfo()
764 int32_t plainSizes[] = { static_cast<int32_t>(mbuf->range_length() - 1) }; in setWebmBlockCryptoInfo()
770 mbuf->set_range(1, mbuf->range_length() - 1); in setWebmBlockCryptoInfo()
[all …]
/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.cpp351 if (buffer->range_length() == 0) { in run()
398 buffer->range_length()); in run()
/frameworks/av/media/extractors/ogg/
DOggExtractor.cpp650 if (buffer == NULL || buffer->range_length() < 1) { in getNumSamplesInPacket()
681 if (buffer->range_length() < 3) { in getNumSamplesInPacket()
738 size_t range_length() override { in range_length() function in android::StandAloneMediaBuffer
781 fullSize += buffer->range_length(); in _readNextPacket()
806 memcpy(tmp->data(), buffer->data(), buffer->range_length()); in _readNextPacket()
807 tmp->set_range(0, buffer->range_length()); in _readNextPacket()
816 (uint8_t *)buffer->data() + buffer->range_length(), in _readNextPacket()
933 ALOGV("read packet of size %zu\n", packet->range_length()); in init()
1008 size_t size = buffer->range_length(); in getPacketBlockSize()
1062 size_t size = buffer->range_length(); in verifyOpusHeader()
[all …]
/frameworks/av/cmds/stagefright/
DAudioPlayer.cpp553 if(mInputBuffer->range_length() != 0) { in fillBuffer()
580 mInputBuffer->range_length(), in fillBuffer()
586 if (mInputBuffer->range_length() == 0) { in fillBuffer()
594 if (copy > mInputBuffer->range_length()) { in fillBuffer()
595 copy = mInputBuffer->range_length(); in fillBuffer()
603 mInputBuffer->range_length() - copy); in fillBuffer()
Dstagefright.cpp171 mbuf->range_length(), in dumpSource()
173 mbuf->range_length()); in dumpSource()
354 if (buffer->range_length() > 0) { in playSource()
371 totalBytes += buffer->range_length(); in playSource()
484 size_t size = buffer->range_length(); in isIDRFrame()
597 if (buffer->range_length() > 0) { in performSeekTest()
Drecord.cpp249 printf("got an output frame of size %d%s\n", buffer->range_length(),
275 buffer->data(), buffer->range_length());
/frameworks/av/media/extractors/tests/
DExtractorUnitTest.cpp423 buffer->data(), buffer->size(), buffer->range_length()); in TEST_P()
424 if (outFp) fwrite(buffer->data(), 1, buffer->range_length(), outFp); in TEST_P()
544 buffer->data(), buffer->size(), buffer->range_length()); in TEST_P()
1024 ASSERT_LE(offset + buffer->range_length(), mExtractorOuputSize[idx]) in TEST_P()
1027 memcpy(mExtractorOutput[idx] + offset, buffer->data(), buffer->range_length()); in TEST_P()
1028 extractedOutputSize[idx] += buffer->range_length(); in TEST_P()
1029 offset += buffer->range_length(); in TEST_P()
/frameworks/av/include/media/
DMediaExtractorPluginApi.h60 size_t (*range_length)(void *handle); member

12