/frameworks/av/media/libstagefright/httplive/ |
D | HTTPDownloader.cpp | 82 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()
|
D | HTTPDownloader.h | 57 int64_t range_length, /* open file for range_length (-1: entire file) */
|
/frameworks/av/media/libstagefright/rtsp/ |
D | ARTPWriter.cpp | 177 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 …]
|
D | rtp_test.cpp | 202 if (buffer->range_length() != 0) { in main() 207 buffer->range_length(), timeUs / 1E6); in main()
|
D | MyTransmitter.h | 634 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/include/media/stagefright/ |
D | MediaBufferBase.h | 62 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/av/media/libstagefright/ |
D | MPEG2TSWriter.cpp | 256 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 …]
|
D | OggWriter.cpp | 299 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()
|
D | AMRWriter.cpp | 209 mEstimatedSizeBytes += buffer->range_length(); in threadFunc() 241 buffer->range_length()); in threadFunc() 243 if (n < (ssize_t)buffer->range_length()) { in threadFunc()
|
D | AudioPlayer.cpp | 552 if(mInputBuffer->range_length() != 0) { in fillBuffer() 579 mInputBuffer->range_length(), in fillBuffer() 585 if (mInputBuffer->range_length() == 0) { in fillBuffer() 593 if (copy > mInputBuffer->range_length()) { in fillBuffer() 594 copy = mInputBuffer->range_length(); in fillBuffer() 602 mInputBuffer->range_length() - copy); in fillBuffer()
|
D | SimpleDecodingSource.cpp | 305 } 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()
|
D | AudioSource.cpp | 275 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()
|
D | AACWriter.cpp | 310 mEstimatedSizeBytes += kAdtsHeaderLength + buffer->range_length(); in threadFunc() 352 ssize_t dataLength = buffer->range_length(); in threadFunc()
|
D | MPEG4Writer.cpp | 1385 buffer->range_length()); in addSample_l() 1387 mOffset += buffer->range_length(); in addSample_l() 1395 if (buffer->range_length() < 4) { in StripStartcode() 1404 buffer->range_offset() + 4, buffer->range_length() - 4); in StripStartcode() 1414 size_t searchSize = buffer->range_length(); in addMultipleLengthPrefixedSamples_l() 1428 buffer->range_length() - currentNalOffset); in addMultipleLengthPrefixedSamples_l() 1433 size_t length = buffer->range_length(); in addLengthPrefixedSample_l() 1994 size_t length = buffer->range_length(); in isExifData() 2007 buffer->set_range(4, buffer->range_length() - 4); in isExifData() 2972 if (buffer->range_length() == 0) { in threadEntry() [all …]
|
D | FrameDecoder.cpp | 315 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()
|
D | NuMediaExtractor.cpp | 598 memcpy((uint8_t *)buffer->data() + mbuf->range_length(), in appendVorbisNumPageSamples() 656 size_t sampleSize = it->mBuffer->range_length(); in readSampleData() 672 memcpy((uint8_t *)buffer->data(), src, it->mBuffer->range_length()); in readSampleData() 697 *sampleSize = it->mBuffer->range_length(); in getSampleSize()
|
/frameworks/wilhelm/src/android/ |
D | android_AudioToCbRenderer.cpp | 64 size_t full = mDecodeBuffer->range_length(); in onRender() 71 mDecodeBuffer->range_length() - offset, in onRender()
|
/frameworks/av/media/extractors/mkv/ |
D | MatroskaExtractor.cpp | 647 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/ |
D | WebmFrame.cpp | 31 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()
|
D | WebmFrameThread.cpp | 351 if (buffer->range_length() == 0) { in run() 398 buffer->range_length()); in run()
|
/frameworks/av/media/extractors/ogg/ |
D | OggExtractor.cpp | 650 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/ |
D | stagefright.cpp | 172 mbuf->range_length(), in dumpSource() 174 mbuf->range_length()); in dumpSource() 355 if (buffer->range_length() > 0) { in playSource() 372 totalBytes += buffer->range_length(); in playSource() 485 size_t size = buffer->range_length(); in isIDRFrame() 598 if (buffer->range_length() > 0) { in performSeekTest()
|
D | record.cpp | 248 printf("got an output frame of size %d%s\n", buffer->range_length(), 274 buffer->data(), buffer->range_length());
|
/frameworks/av/include/media/ |
D | MediaExtractorPluginApi.h | 60 size_t (*range_length)(void *handle); member
|
/frameworks/av/media/libstagefright/foundation/ |
D | MediaBuffer.cpp | 137 size_t MediaBuffer::range_length() const { in range_length() function in android::MediaBuffer
|