Home
last modified time | relevance | path

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

12

/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.cpp212 if (buffer->range_length() != 0) { in main()
217 buffer->range_length(), timeUs / 1E6); in main()
DMyTransmitter.h631 if (mediaBuf->range_length() > 0) { in onMessageReceived()
648 CHECK_LE(mediaBuf->range_length() - 4 + 12, buffer->size()); in onMessageReceived()
651 mediaData + 4, mediaBuf->range_length() - 4); in onMessageReceived()
653 buffer->setRange(0, mediaBuf->range_length() - 4 + 12); in onMessageReceived()
866 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 …]
DAMRWriter.cpp222 mEstimatedSizeBytes += buffer->range_length(); in threadFunc()
254 buffer->range_length()); in threadFunc()
256 if (n < (ssize_t)buffer->range_length()) { in threadFunc()
DAudioSource.cpp240 memset((uint8_t *) buffer->data(), 0, buffer->range_length()); in read()
250 (uint8_t *) buffer->data(), buffer->range_length()); in read()
256 (int16_t *) buffer->data(), buffer->range_length() >> 1); in read()
347 const size_t bufferSize = buffer->range_length(); in queueInputBuffer_l()
DOggExtractor.cpp490 fullSize += buffer->range_length(); in readNextPacket()
494 memcpy(tmp->data(), buffer->data(), buffer->range_length()); in readNextPacket()
495 tmp->set_range(0, buffer->range_length()); in readNextPacket()
504 (uint8_t *)buffer->data() + buffer->range_length(), in readNextPacket()
609 ALOGV("read packet of size %zu\n", packet->range_length()); in init()
620 ALOGV("read packet of size %zu\n", packet->range_length()); in init()
631 ALOGV("read packet of size %zu\n", packet->range_length()); in init()
705 size_t size = buffer->range_length(); in packetBlockSize()
735 size_t size = buffer->range_length(); in verifyHeader()
DAudioPlayer.cpp609 if(mInputBuffer->range_length() != 0) { in fillBuffer()
642 mInputBuffer->range_length(), in fillBuffer()
648 if (mInputBuffer->range_length() == 0) { in fillBuffer()
656 if (copy > mInputBuffer->range_length()) { in fillBuffer()
657 copy = mInputBuffer->range_length(); in fillBuffer()
665 mInputBuffer->range_length() - copy); in fillBuffer()
DAACWriter.cpp328 mEstimatedSizeBytes += kAdtsHeaderLength + buffer->range_length(); in threadFunc()
370 ssize_t dataLength = buffer->range_length(); in threadFunc()
DMPEG4Writer.cpp1050 buffer->range_length()); in addSample_l()
1052 mOffset += buffer->range_length(); in addSample_l()
1058 if (buffer->range_length() < 4) { in StripStartcode()
1067 buffer->range_offset() + 4, buffer->range_length() - 4); in StripStartcode()
1074 size_t length = buffer->range_length(); in addLengthPrefixedSample_l()
2114 if (buffer->range_length() == 0) { in threadEntry()
2141 buffer->range_length()); in threadEntry()
2144 mCodecSpecificDataSize = buffer->range_length(); in threadEntry()
2149 buffer->range_length()); in threadEntry()
2161 MediaBuffer *copy = new MediaBuffer(buffer->range_length()); in threadEntry()
[all …]
DOMXClient.cpp125 OMX_U32 range_offset, OMX_U32 range_length,
373 OMX_U32 range_offset, OMX_U32 range_length, in emptyBuffer() argument
376 node, buffer, range_offset, range_length, flags, timestamp); in emptyBuffer()
DNuMediaExtractor.cpp456 size_t sampleSize = info->mSample->range_length(); in readSampleData()
472 memcpy((uint8_t *)buffer->data(), src, info->mSample->range_length()); in readSampleData()
481 memcpy((uint8_t *)buffer->data() + info->mSample->range_length(), in readSampleData()
DSkipCutBuffer.cpp43 int32_t buflen = buffer->range_length(); in submit()
/frameworks/wilhelm/src/android/
Dandroid_AudioToCbRenderer.cpp63 size_t full = mDecodeBuffer->range_length(); in onRender()
70 mDecodeBuffer->range_length() - offset, in onRender()
/frameworks/av/media/libstagefright/codecs/aacenc/
DAACEncoder.cpp257 size_t align = mInputBuffer->range_length() % sizeof(int16_t); in read()
273 if (copy > mInputBuffer->range_length()) { in read()
274 copy = mInputBuffer->range_length(); in read()
284 mInputBuffer->range_length() - copy); in read()
286 if (mInputBuffer->range_length() == 0) { in read()
/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.cpp150 mbuf->range_length(), in dumpSource()
152 (ssize_t)mbuf->range_length()); in dumpSource()
332 if (buffer->range_length() > 0) { in playSource()
346 totalBytes += buffer->range_length(); in playSource()
457 size_t size = buffer->range_length(); in isIDRFrame()
563 if (buffer->range_length() > 0) { in performSeekTest()
Drecord.cpp252 printf("got an output frame of size %d%s\n", buffer->range_length(),
279 buffer->data(), buffer->range_length());
Dsf2.cpp485 size_t sizeNeeded = inBuffer->range_length(); in onFillThisBuffer()
515 inBuffer->range_length()); in onFillThisBuffer()
525 + outBuffer->size() + inBuffer->range_length(), in onFillThisBuffer()
/frameworks/av/include/media/
DIOMX.h138 OMX_U32 range_offset, OMX_U32 range_length,
188 OMX_U32 range_length; member
/frameworks/av/include/media/stagefright/
DMediaBuffer.h70 size_t range_length() const;
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp828 int64_t range_offset, int64_t range_length, in fetchFile() argument
846 if (range_offset > 0 || range_length >= 0) { in fetchFile()
853 range_length < 0 in fetchFile()
855 range_offset + range_length - 1).c_str()).c_str())); in fetchFile()
879 …if (block_size > 0 && (range_length == -1 || (int64_t)(buffer->size() + block_size) < range_length in fetchFile()
880 range_length = buffer->size() + block_size; in fetchFile()
903 if (range_length >= 0) { in fetchFile()
904 int64_t bytesLeftInRange = range_length - buffer->size(); in fetchFile()
/frameworks/av/media/libstagefright/omx/
DOMX.cpp410 OMX_U32 range_offset, OMX_U32 range_length, in emptyBuffer() argument
413 buffer, range_offset, range_length, flags, timestamp); in emptyBuffer()
479 msg.u.extended_buffer_data.range_length = pBuffer->nFilledLen; in OnFillBufferDone()

12