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()
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.cpp205 if (buffer->range_length() != 0) { in main()
210 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.cpp258 new ABuffer(buffer->range_length()); in postAVCFrame()
262 buffer->range_length()); in postAVCFrame()
282 && mAACBuffer->size() + 7 + buffer->range_length() in appendAACFrames()
289 if (buffer->range_length() + 7 > alloc) { in appendAACFrames()
290 alloc = 7 + buffer->range_length(); in appendAACFrames()
317 const uint32_t aac_frame_length = buffer->range_length() + 7; in appendAACFrames()
339 buffer->range_length()); in appendAACFrames()
341 ptr += buffer->range_length(); in appendAACFrames()
406 CHECK_GE(buffer->range_length(), 2u); in onMessageReceived()
408 mAACCodecSpecificData = new ABuffer(buffer->range_length()); in onMessageReceived()
[all …]
DSimpleDecodingSource.cpp279 } else if (in_buf->range_length() != 0) { in doRead()
288 if (in_buf->range_length() + (mIsVorbis ? 4 : 0) > in_buffer->capacity()) { in doRead()
291 in_buf->range_length() + (mIsVorbis ? 4 : 0), in_buffer->capacity()); in doRead()
293 size_t cpLen = min(in_buf->range_length(), in_buffer->capacity()); in doRead()
306 in_ix, 0 /* offset */, in_buf->range_length() + (mIsVorbis ? 4 : 0), in doRead()
DAMRWriter.cpp209 mEstimatedSizeBytes += buffer->range_length(); in threadFunc()
241 buffer->range_length()); in threadFunc()
243 if (n < (ssize_t)buffer->range_length()) { in threadFunc()
DOggExtractor.cpp623 if (buffer == NULL || buffer->range_length() < 1) { in getNumSamplesInPacket()
654 if (buffer->range_length() < 3) { in getNumSamplesInPacket()
698 fullSize += buffer->range_length(); in _readNextPacket()
716 memcpy(tmp->data(), buffer->data(), buffer->range_length()); in _readNextPacket()
717 tmp->set_range(0, buffer->range_length()); in _readNextPacket()
726 (uint8_t *)buffer->data() + buffer->range_length(), in _readNextPacket()
838 ALOGV("read packet of size %zu\n", packet->range_length()); in init()
913 size_t size = buffer->range_length(); in getPacketBlockSize()
967 size_t size = buffer->range_length(); in verifyOpusHeader()
990 int32_t commentSize = buffer->range_length() + 1; in verifyOpusComments()
[all …]
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()
DAudioSource.cpp259 memset((uint8_t *) buffer->data(), 0, buffer->range_length()); in read()
269 (uint8_t *) buffer->data(), buffer->range_length()); in read()
275 (int16_t *) buffer->data(), buffer->range_length() >> 1); in read()
375 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.cpp1167 buffer->range_length()); in addSample_l()
1169 mOffset += buffer->range_length(); in addSample_l()
1175 if (buffer->range_length() < 4) { in StripStartcode()
1184 buffer->range_offset() + 4, buffer->range_length() - 4); in StripStartcode()
1198 size_t searchSize = buffer->range_length() > kExtensionNALSearchRange ? in addMultipleLengthPrefixedSamples_l()
1199 kExtensionNALSearchRange : buffer->range_length(); in addMultipleLengthPrefixedSamples_l()
1213 buffer->range_length() - currentNalOffset); in addMultipleLengthPrefixedSamples_l()
1222 size_t length = buffer->range_length(); in addLengthPrefixedSample_l()
2398 if (buffer->range_length() == 0) { in threadEntry()
2432 buffer->range_length()); in threadEntry()
[all …]
DStagefrightMetadataRetriever.cpp295 if (mediaBuffer->range_length() > codecBuffer->capacity()) { in extractVideoFrame()
297 mediaBuffer->range_length(), codecBuffer->capacity()); in extractVideoFrame()
300 codecBuffer->setRange(0, mediaBuffer->range_length()); in extractVideoFrame()
305 mediaBuffer->range_length()); in extractVideoFrame()
DNuMediaExtractor.cpp480 memcpy((uint8_t *)buffer->data() + info->mSample->range_length(), in appendVorbisNumPageSamples()
537 size_t sampleSize = info->mSample->range_length(); in readSampleData()
553 memcpy((uint8_t *)buffer->data(), src, info->mSample->range_length()); in readSampleData()
/frameworks/av/media/libstagefright/codecs/aacenc/
DAACEncoder.cpp255 size_t align = mInputBuffer->range_length() % sizeof(int16_t); in read()
271 if (copy > mInputBuffer->range_length()) { in read()
272 copy = mInputBuffer->range_length(); in read()
282 mInputBuffer->range_length() - copy); in read()
284 if (mInputBuffer->range_length() == 0) { in read()
/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.cpp336 if (buffer->range_length() == 0) { in run()
384 buffer->range_length()); in run()
/frameworks/av/media/libstagefright/wifi-display/source/
DMediaPuller.cpp168 sp<ABuffer> accessUnit = new ABuffer(mbuf->range_length()); in onMessageReceived()
172 mbuf->range_length()); in onMessageReceived()
/frameworks/av/cmds/stagefright/
Dstagefright.cpp160 mbuf->range_length(), in dumpSource()
162 (ssize_t)mbuf->range_length()); in dumpSource()
336 if (buffer->range_length() > 0) { in playSource()
350 totalBytes += buffer->range_length(); in playSource()
463 size_t size = buffer->range_length(); in isIDRFrame()
574 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());
Dsf2.cpp484 size_t sizeNeeded = inBuffer->range_length(); in onFillThisBuffer()
514 inBuffer->range_length()); in onFillThisBuffer()
524 + outBuffer->size() + inBuffer->range_length(), in onFillThisBuffer()
/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp531 if (mbuf->range_length() < 1 || mbuf->range_length() - 1 > INT32_MAX) { in setWebmBlockCryptoInfo()
538 if (blockEncrypted && mbuf->range_length() < 9) { in setWebmBlockCryptoInfo()
561 int32_t encryptedSizes[] = { static_cast<int32_t>(mbuf->range_length() - 9) }; in setWebmBlockCryptoInfo()
573 mbuf->set_range(9, mbuf->range_length() - 9); in setWebmBlockCryptoInfo()
586 int32_t plainSizes[] = { static_cast<int32_t>(mbuf->range_length() - 1) }; in setWebmBlockCryptoInfo()
590 mbuf->set_range(1, mbuf->range_length() - 1); in setWebmBlockCryptoInfo()
696 size_t srcSize = frame->range_length(); in read()
/frameworks/av/include/media/
DIOMX.h179 OMX_U32 range_offset, OMX_U32 range_length,
233 OMX_U32 range_length; member

12