Home
last modified time | relevance | path

Searched refs:range_length (Results 1 – 25 of 41) 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()
167 if (range_length >= 0) { in fetchBlock()
168 int64_t bytesLeftInRange = range_length - buffer->size(); in fetchBlock()
170 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()
531 size_t size = buffer->range_length(); in makeH264SPropParamSets()
583 if (mediaBuf->range_length() + 12 <= buffer->capacity()) { in sendAVCData()
600 mediaData, mediaBuf->range_length()); in sendAVCData()
602 buffer->setRange(0, mediaBuf->range_length() + 12); in sendAVCData()
616 while (offset < mediaBuf->range_length()) { in sendAVCData()
617 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 …]
DAMRWriter.cpp209 mEstimatedSizeBytes += buffer->range_length(); in threadFunc()
241 buffer->range_length()); in threadFunc()
243 if (n < (ssize_t)buffer->range_length()) { in threadFunc()
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()
DSimpleDecodingSource.cpp304 } else if (in_buf->range_length() != 0) { in doRead()
313 if (in_buf->range_length() + (mIsVorbis ? 4 : 0) > in_buffer->capacity()) { in doRead()
316 in_buf->range_length() + (mIsVorbis ? 4 : 0), in_buffer->capacity()); in doRead()
318 size_t cpLen = min(in_buf->range_length(), in_buffer->capacity()); in doRead()
331 in_ix, 0 /* offset */, in_buf->range_length() + (mIsVorbis ? 4 : 0), in doRead()
DAudioSource.cpp271 memset((uint8_t *) buffer->data(), 0, buffer->range_length()); in read()
281 (uint8_t *) buffer->data(), buffer->range_length()); in read()
287 (int16_t *) buffer->data(), buffer->range_length() >> 1); in read()
428 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()
DFrameDecoder.cpp312 if (mediaBuffer->range_length() > codecBuffer->capacity()) { in extractInternal()
314 mediaBuffer->range_length(), codecBuffer->capacity()); in extractInternal()
318 codecBuffer->setRange(0, mediaBuffer->range_length()); in extractInternal()
323 mediaBuffer->range_length()); in extractInternal()
DMPEG4Writer.cpp1373 buffer->range_length()); in addSample_l()
1375 mOffset += buffer->range_length(); in addSample_l()
1383 if (buffer->range_length() < 4) { in StripStartcode()
1392 buffer->range_offset() + 4, buffer->range_length() - 4); in StripStartcode()
1402 size_t searchSize = buffer->range_length(); in addMultipleLengthPrefixedSamples_l()
1416 buffer->range_length() - currentNalOffset); in addMultipleLengthPrefixedSamples_l()
1421 size_t length = buffer->range_length(); in addLengthPrefixedSample_l()
1959 && (buffer->range_length() > sizeof(kExifHeader)) in isExifData()
2902 if (buffer->range_length() == 0) { in threadEntry()
2936 buffer->range_length()); in threadEntry()
[all …]
DNuMediaExtractor.cpp610 memcpy((uint8_t *)buffer->data() + mbuf->range_length(), in appendVorbisNumPageSamples()
668 size_t sampleSize = it->mBuffer->range_length(); in readSampleData()
684 memcpy((uint8_t *)buffer->data(), src, it->mBuffer->range_length()); in readSampleData()
709 *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.cpp342 if (buffer->range_length() == 0) { in run()
390 buffer->range_length()); in run()
/frameworks/av/media/extractors/ogg/
DOggExtractor.cpp630 if (buffer == NULL || buffer->range_length() < 1) { in getNumSamplesInPacket()
661 if (buffer->range_length() < 3) { in getNumSamplesInPacket()
705 fullSize += buffer->range_length(); in _readNextPacket()
723 memcpy(tmp->data(), buffer->data(), buffer->range_length()); in _readNextPacket()
724 tmp->set_range(0, buffer->range_length()); in _readNextPacket()
733 (uint8_t *)buffer->data() + buffer->range_length(), in _readNextPacket()
844 ALOGV("read packet of size %zu\n", packet->range_length()); in init()
919 size_t size = buffer->range_length(); in getPacketBlockSize()
973 size_t size = buffer->range_length(); in verifyOpusHeader()
996 int32_t commentSize = buffer->range_length() + 1; in verifyOpusComments()
[all …]
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp591 if (mbuf->range_length() < 1 || mbuf->range_length() - 1 > INT32_MAX) { in setWebmBlockCryptoInfo()
599 if (encrypted && mbuf->range_length() < 9) { in setWebmBlockCryptoInfo()
636 if (mbuf->range_length() < 10) { in setWebmBlockCryptoInfo()
640 if (mbuf->range_length() - 10 < numPartitions * sizeof(uint32_t)) { in setWebmBlockCryptoInfo()
650 : (mbuf->range_length() - frameOffset); in setWebmBlockCryptoInfo()
669 mbuf->set_range(frameOffset, mbuf->range_length() - frameOffset); in setWebmBlockCryptoInfo()
687 int32_t encryptedSizes[] = { static_cast<int32_t>(mbuf->range_length() - 9) }; in setWebmBlockCryptoInfo()
690 mbuf->set_range(9, mbuf->range_length() - 9); in setWebmBlockCryptoInfo()
704 int32_t plainSizes[] = { static_cast<int32_t>(mbuf->range_length() - 1) }; in setWebmBlockCryptoInfo()
708 mbuf->set_range(1, mbuf->range_length() - 1); in setWebmBlockCryptoInfo()
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBufferBase.h58 virtual size_t range_length() const = 0;
/frameworks/av/media/libmediaextractor/include/media/stagefright/
DMediaBufferBase.h58 virtual size_t range_length() const = 0;
DMediaBuffer.h72 virtual size_t range_length() const;
/frameworks/av/cmds/stagefright/
Dstagefright.cpp165 mbuf->range_length(), in dumpSource()
167 mbuf->range_length()); in dumpSource()
344 if (buffer->range_length() > 0) { in playSource()
358 totalBytes += buffer->range_length(); in playSource()
471 size_t size = buffer->range_length(); in isIDRFrame()
582 if (buffer->range_length() > 0) { in performSeekTest()
Drecord.cpp248 printf("got an output frame of size %d%s\n", buffer->range_length(),
274 buffer->data(), buffer->range_length());
/frameworks/av/media/libmediaextractor/
DMediaBuffer.cpp134 size_t MediaBuffer::range_length() const { in range_length() function in android::MediaBuffer

12