Home
last modified time | relevance | path

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

123

/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 %d", 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.cpp220 mEstimatedSizeBytes += buffer->range_length(); in threadFunc()
252 buffer->range_length()); in threadFunc()
254 if (n < (ssize_t)buffer->range_length()) { in threadFunc()
DAudioSource.cpp236 memset((uint8_t *) buffer->data(), 0, buffer->range_length()); in read()
246 (uint8_t *) buffer->data(), buffer->range_length()); in read()
252 (int16_t *) buffer->data(), buffer->range_length() >> 1); in read()
343 const size_t bufferSize = buffer->range_length(); in queueInputBuffer_l()
DAudioPlayer.cpp599 if(mInputBuffer->range_length() != 0) { in fillBuffer()
632 mInputBuffer->range_length(), in fillBuffer()
638 if (mInputBuffer->range_length() == 0) { in fillBuffer()
646 if (copy > mInputBuffer->range_length()) { in fillBuffer()
647 copy = mInputBuffer->range_length(); in fillBuffer()
655 mInputBuffer->range_length() - copy); in fillBuffer()
DOggExtractor.cpp480 fullSize += buffer->range_length(); in readNextPacket()
484 memcpy(tmp->data(), buffer->data(), buffer->range_length()); in readNextPacket()
485 tmp->set_range(0, buffer->range_length()); in readNextPacket()
504 (uint8_t *)buffer->data() + buffer->range_length(), in readNextPacket()
593 ALOGV("read packet of size %d\n", packet->range_length()); in init()
604 ALOGV("read packet of size %d\n", packet->range_length()); in init()
615 ALOGV("read packet of size %d\n", packet->range_length()); in init()
690 size_t size = buffer->range_length(); in verifyHeader()
DAACWriter.cpp325 mEstimatedSizeBytes += kAdtsHeaderLength + buffer->range_length(); in threadFunc()
367 ssize_t dataLength = buffer->range_length(); in threadFunc()
DOMXClient.cpp116 OMX_U32 range_offset, OMX_U32 range_length,
350 OMX_U32 range_offset, OMX_U32 range_length, in emptyBuffer() argument
353 node, buffer, range_offset, range_length, flags, timestamp); in emptyBuffer()
DMPEG4Writer.cpp1035 buffer->range_length()); in addSample_l()
1037 mOffset += buffer->range_length(); in addSample_l()
1043 if (buffer->range_length() < 4) { in StripStartcode()
1052 buffer->range_offset() + 4, buffer->range_length() - 4); in StripStartcode()
1059 size_t length = buffer->range_length(); in addLengthPrefixedSample_l()
2103 if (buffer->range_length() == 0) { in threadEntry()
2130 buffer->range_length()); in threadEntry()
2133 mCodecSpecificDataSize = buffer->range_length(); in threadEntry()
2138 buffer->range_length()); in threadEntry()
2150 MediaBuffer *copy = new MediaBuffer(buffer->range_length()); in threadEntry()
[all …]
/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/libvideoeditor/lvpp/
DVideoEditorAudioPlayer.cpp677 M4OSA_UInt32 len = mInputBuffer->range_length(); in fillBuffer()
680 uiPCMsize = (mInputBuffer->range_length())/2; in fillBuffer()
825 mInputBuffer->range_length(), in fillBuffer()
829 if (mInputBuffer->range_length() == 0) { in fillBuffer()
837 if (copy > mInputBuffer->range_length()) { in fillBuffer()
838 copy = mInputBuffer->range_length(); in fillBuffer()
846 mInputBuffer->range_length() - copy); in fillBuffer()
DVideoEditorSRC.cpp250 mLeftover = mBuffer->range_length(); in getNextBuffer()
267 + mBuffer->range_length(); in getNextBuffer()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp230 size_t outLength = mbuf->range_length(); in readBuffer()
240 mbuf->range_length()); in readBuffer()
249 memcpy(buffer->data() + mbuf->range_length(), in readBuffer()
/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/libvideoeditor/vss/stagefrightshells/src/
DVideoEditorVideoEncoder.cpp372 outputBuffer->range_length(), encoder->getFormat().get()); in VideoEditorVideoEncoder_getDSI()
378 (M4OSA_UInt32)outputBuffer->range_length(); in VideoEditorVideoEncoder_getDSI()
855 if ( 0 == buffer->range_length() ) { in VideoEditorVideoEncoder_processOutputBuffer()
865 buffer->range_length()); in VideoEditorVideoEncoder_processOutputBuffer()
867 for( uint32_t i=0; i<buffer->range_length(); i++ ) { in VideoEditorVideoEncoder_processOutputBuffer()
903 buffer->range_length() <= pEncoderContext->mAccessUnit->size, in VideoEditorVideoEncoder_processOutputBuffer()
910 buffer->range_length() - 4); in VideoEditorVideoEncoder_processOutputBuffer()
921 buffer->range_length(), in VideoEditorVideoEncoder_processOutputBuffer()
930 range_offset()), buffer->range_length()); in VideoEditorVideoEncoder_processOutputBuffer()
932 (M4OSA_UInt32)buffer->range_length(); in VideoEditorVideoEncoder_processOutputBuffer()
DVideoEditorAudioEncoder.cpp474 pEncoderContext->mDSI.infoSize = (M4OSA_UInt32)buffer->range_length(); in VideoEditorAudioEncoder_open()
529 buffer->range_length()); in VideoEditorAudioEncoder_processInputBuffer()
564 if( 0 == buffer->range_length() ) { in VideoEditorAudioEncoder_processOutputBuffer()
589 buffer->range_length()); in VideoEditorAudioEncoder_processOutputBuffer()
590 pOutBuffer->pTableBufferSize[0] = (M4OSA_UInt32)buffer->range_length(); in VideoEditorAudioEncoder_processOutputBuffer()
DVideoEditorMp3Reader.cpp694 (pAu->size < mAudioBuffer->range_length())) { in VideoEditorMp3Reader_getNextAu()
700 (mAudioBuffer->range_length() + 3) & ~0x3, in VideoEditorMp3Reader_getNextAu()
712 pAu->size = mAudioBuffer->range_length(); in VideoEditorMp3Reader_getNextAu()
715 mAudioBuffer->range_length()); in VideoEditorMp3Reader_getNextAu()
DVideoEditorAudioDecoder.cpp667 if( 0 == buffer->range_length() ) { in VideoEditorAudioDecoder_processOutputBuffer()
677 pOuputBuffer->m_bufferSize = (M4OSA_UInt32)buffer->range_length(); in VideoEditorAudioDecoder_processOutputBuffer()
680 buffer->range_length()); in VideoEditorAudioDecoder_processOutputBuffer()
684 pOuputBuffer->m_bufferSize = (M4OSA_UInt32)(buffer->range_length()/2); in VideoEditorAudioDecoder_processOutputBuffer()
689 (buffer->range_length()/sizeof(M4OSA_Int16)); in VideoEditorAudioDecoder_processOutputBuffer()
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp631 int64_t range_offset, int64_t range_length, in fetchFile() argument
649 if (range_offset > 0 || range_length >= 0) { in fetchFile()
656 range_length < 0 in fetchFile()
658 range_offset + range_length - 1).c_str()).c_str())); in fetchFile()
682 if (block_size > 0 && (range_length == -1 || buffer->size() + block_size < range_length)) { in fetchFile()
683 range_length = buffer->size() + block_size; in fetchFile()
702 if (range_length >= 0) { in fetchFile()
703 int64_t bytesLeftInRange = range_length - buffer->size(); in fetchFile()
/frameworks/av/include/media/
DIOMX.h134 OMX_U32 range_offset, OMX_U32 range_length,
182 OMX_U32 range_length; member
/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()
/frameworks/av/include/media/stagefright/
DMediaBuffer.h68 size_t range_length() const;

123