/frameworks/av/media/libstagefright/codecs/gsm/dec/ |
D | SoftGSM.cpp | 252 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && inHeader->nFilledLen == 0) { in onQueueFilled() 257 outHeader->nFilledLen = 0; in onQueueFilled() 266 if (inHeader->nFilledLen > kMaxNumSamplesPerFrame) { in onQueueFilled() 267 ALOGE("input buffer too large (%d).", inHeader->nFilledLen); in onQueueFilled() 272 if(((inHeader->nFilledLen / kMSGSMFrameSize) * kMSGSMFrameSize) != inHeader->nFilledLen) { in onQueueFilled() 273 ALOGE("input buffer not multiple of %d (%d).", kMSGSMFrameSize, inHeader->nFilledLen); in onQueueFilled() 278 if (outHeader->nAllocLen < (inHeader->nFilledLen / kMSGSMFrameSize) * 320) { in onQueueFilled() 289 reinterpret_cast<int16_t *>(outHeader->pBuffer), inputptr, inHeader->nFilledLen); in onQueueFilled() 293 outHeader->nFilledLen = n * sizeof(int16_t); in onQueueFilled() 297 inHeader->nFilledLen = 0; in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/mp3dec/ |
D | SoftMP3.cpp | 303 if (inHeader->nOffset == 0 && inHeader->nFilledLen) { in onQueueFilled() 310 if (mIsFirst && !inHeader->nFilledLen) { in onQueueFilled() 312 outHeader->nFilledLen = 0; in onQueueFilled() 329 mConfig->inputBufferCurrentLength = inHeader->nFilledLen; in onQueueFilled() 373 outHeader->nFilledLen = kPVMP3DecoderDelay * mNumChannels * sizeof(int16_t); in onQueueFilled() 375 if (!memsetSafe(outHeader, 0, outHeader->nFilledLen)) { in onQueueFilled() 395 mConfig->inputBufferUsedLength = inHeader->nFilledLen; in onQueueFilled() 416 outHeader->nFilledLen = in onQueueFilled() 420 outHeader->nFilledLen = mConfig->outputFrameSize * sizeof(int16_t); in onQueueFilled() 427 CHECK_GE((int32_t)inHeader->nFilledLen, mConfig->inputBufferUsedLength); in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/dec/ |
D | SoftVPX.cpp | 174 outHeader->nFilledLen = (outputBufferWidth() * outputBufferHeight() * bpp * 3) / 2; in outputBuffers() 191 outHeader->nFilledLen = 0; in outputBuffers() 211 outHeader->nFilledLen = 0; in outputBuffers() 223 uint64_t nFilledLen = width; in outputBufferSafe() local 224 nFilledLen *= height; in outputBufferSafe() 225 if (nFilledLen > UINT32_MAX / 3) { in outputBufferSafe() 227 (unsigned long long)nFilledLen, width, height); in outputBufferSafe() 230 } else if (outHeader->nAllocLen < outHeader->nFilledLen) { in outputBufferSafe() 301 if (inHeader->nFilledLen > 0) { in onQueueFilled() 304 inHeader->nFilledLen, &mPrivInfo[mTimeStampIdx], 0); in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/g711/dec/ |
D | SoftG711.cpp | 271 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && inHeader->nFilledLen == 0) { in onQueueFilled() 276 outHeader->nFilledLen = 0; in onQueueFilled() 285 if (inHeader->nFilledLen > kMaxNumSamplesPerFrame) { in onQueueFilled() 286 ALOGE("input buffer too large (%d).", inHeader->nFilledLen); in onQueueFilled() 292 if (inHeader->nFilledLen * sizeof(int16_t) > outHeader->nAllocLen) { in onQueueFilled() 306 inputptr, inHeader->nFilledLen); in onQueueFilled() 310 inputptr, inHeader->nFilledLen); in onQueueFilled() 315 outHeader->nFilledLen = inHeader->nFilledLen * sizeof(int16_t); in onQueueFilled() 319 inHeader->nFilledLen = 0; in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/ |
D | SoftAMR.cpp | 356 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && inHeader->nFilledLen == 0) { in onQueueFilled() 361 outHeader->nFilledLen = 0; in onQueueFilled() 370 if (inHeader->nFilledLen == 0) { in onQueueFilled() 399 if (inHeader->nFilledLen < frameSize) { in onQueueFilled() 400 ALOGE("b/27662364: expected %zu bytes vs %u", frameSize, inHeader->nFilledLen); in onQueueFilled() 424 if (static_cast<size_t>(numBytesRead) > inHeader->nFilledLen) { in onQueueFilled() 455 if (inHeader->nFilledLen < frameSize) { in onQueueFilled() 456 ALOGE("b/27662364: expected %zu bytes vs %u", frameSize, inHeader->nFilledLen); in onQueueFilled() 494 inHeader->nFilledLen -= numBytesRead; in onQueueFilled() 500 outHeader->nFilledLen = kNumSamplesPerFrameNB * sizeof(int16_t); in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
D | SoftFlacEncoder.cpp | 387 ALOGV("saw EOS on buffer of size %u", inHeader->nFilledLen); in onQueueFilled() 391 if (inHeader->nFilledLen > kMaxInputBufferSize) { in onQueueFilled() 392 ALOGE("input buffer too large (%d).", inHeader->nFilledLen); in onQueueFilled() 402 if (inHeader->nFilledLen) { in onQueueFilled() 405 const unsigned nbInputFrames = inHeader->nFilledLen / frameSize; in onQueueFilled() 406 const unsigned nbInputSamples = inHeader->nFilledLen / sampleSize; in onQueueFilled() 504 memcpy(outHeader->pBuffer + outHeader->nOffset + outHeader->nFilledLen, in onEncodedFlacAvailable() 506 outHeader->nFilledLen += mHeaderOffset; in onEncodedFlacAvailable() 522 if (bytes > outHeader->nAllocLen - outHeader->nOffset - outHeader->nFilledLen) { in onEncodedFlacAvailable() 531 outHeader->nFilledLen += bytes; in onEncodedFlacAvailable()
|
/frameworks/av/media/libstagefright/codecs/aacdec/ |
D | SoftAAC2.cpp | 690 inBufferLength[0] = inHeader->nFilledLen; in onQueueFilled() 727 if (inHeader->nFilledLen == 0) { in onQueueFilled() 745 if (inHeader->nFilledLen < 7) { in onQueueFilled() 747 "Got %d bytes.", inHeader->nFilledLen); in onQueueFilled() 748 hexdump(adtsHeader, inHeader->nFilledLen); in onQueueFilled() 758 if (inHeader->nFilledLen < aac_frame_length) { in onQueueFilled() 762 inHeader->nFilledLen, aac_frame_length); in onQueueFilled() 763 hexdump(adtsHeader, inHeader->nFilledLen); in onQueueFilled() 774 inHeader->nFilledLen -= adtsHeaderSize; in onQueueFilled() 798 inBufferLength[0] = inHeader->nFilledLen; in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/ |
D | SoftMPEG4.cpp | 108 if (inHeader->nFilledLen == 0) { in onQueueFilled() 116 outHeader->nFilledLen = 0; in onQueueFilled() 156 vol_size = inHeader->nFilledLen; in onQueueFilled() 234 int32_t bufferSize = inHeader->nFilledLen; in onQueueFilled() 294 inHeader->nFilledLen = 0; in onQueueFilled() 301 if (inHeader->nFilledLen == 0) { in onQueueFilled() 312 outHeader->nFilledLen = frameSize; in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/ |
D | SoftAMRNBEncoder.cpp | 326 if (copy > inHeader->nFilledLen) { in onQueueFilled() 327 copy = inHeader->nFilledLen; in onQueueFilled() 338 inHeader->nFilledLen -= copy; in onQueueFilled() 345 if (inHeader->nFilledLen == 0) { in onQueueFilled() 393 outHeader->nFilledLen = res; in onQueueFilled() 408 hexdump(outHeader->pBuffer + outHeader->nOffset, outHeader->nFilledLen); in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/xaacdec/ |
D | SoftXAAC.cpp | 553 inBufferLength = inHeader->nFilledLen; in onQueueFilled() 585 if (inHeader->nFilledLen == 0) { in onQueueFilled() 597 size_t tempFilledLen = inHeader->nFilledLen; in onQueueFilled() 606 if (inHeader->nFilledLen < 7) { in onQueueFilled() 610 inHeader->nFilledLen); in onQueueFilled() 611 hexdump(adtsHeader, inHeader->nFilledLen); in onQueueFilled() 619 if (inHeader->nFilledLen < aac_frame_length) { in onQueueFilled() 624 inHeader->nFilledLen, aac_frame_length); in onQueueFilled() 625 hexdump(adtsHeader, inHeader->nFilledLen); in onQueueFilled() 636 inHeader->nFilledLen -= adtsHeaderSize; in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/ |
D | SoftAMRWBEncoder.cpp | 373 if (copy > inHeader->nFilledLen) { in onQueueFilled() 374 copy = inHeader->nFilledLen; in onQueueFilled() 385 inHeader->nFilledLen -= copy; in onQueueFilled() 392 if (inHeader->nFilledLen == 0) { in onQueueFilled() 448 outHeader->nFilledLen = outputData.Length; in onQueueFilled() 461 outHeader->nFilledLen, mInputTimeUs, outHeader->nFlags); in onQueueFilled() 463 hexdump(outHeader->pBuffer + outHeader->nOffset, outHeader->nFilledLen); in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/vorbis/dec/ |
D | SoftVorbis.cpp | 322 outHeader->nFilledLen = 0; in handleEOS() 365 size_t size = inHeader->nFilledLen; in onQueueFilled() 459 if (inHeader->nFilledLen || !mSawInputEos) { in onQueueFilled() 460 if (inHeader->nFilledLen < sizeof(numPageSamples)) { in onQueueFilled() 464 inHeader->nFilledLen, sizeof(numPageSamples)); in onQueueFilled() 468 inHeader->pBuffer + inHeader->nOffset + inHeader->nFilledLen - 4, in onQueueFilled() 476 inHeader->nFilledLen -= sizeof(numPageSamples);; in onQueueFilled() 486 buf.size = inHeader ? inHeader->nFilledLen : 0; in onQueueFilled() 552 outHeader->nFilledLen = numFrames * sizeof(int16_t) * mVi->channels; in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/raw/ |
D | SoftRaw.cpp | 248 CHECK_GE(outHeader->nAllocLen, inHeader->nFilledLen); in onQueueFilled() 251 inHeader->nFilledLen); in onQueueFilled() 255 outHeader->nFilledLen = inHeader->nFilledLen; in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/aacenc/ |
D | SoftAACEncoder2.cpp | 520 outHeader->nFilledLen = encInfo.confSize; in onQueueFilled() 560 if (copy > inHeader->nFilledLen) { in onQueueFilled() 561 copy = inHeader->nFilledLen; in onQueueFilled() 585 inHeader->nFilledLen -= copy; in onQueueFilled() 593 if (inHeader->nFilledLen == 0) { in onQueueFilled() 691 outHeader->nFilledLen = nOutputBytes; in onQueueFilled() 707 hexdump(outHeader->pBuffer + outHeader->nOffset, outHeader->nFilledLen); in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/ |
D | SoftMPEG4Encoder.cpp | 402 outHeader->nFilledLen = 0; in onQueueFilled() 418 outHeader->nFilledLen = dataLength; in onQueueFilled() 436 if (inHeader->nFilledLen > 0) { in onQueueFilled() 450 inHeader->pBuffer + inHeader->nOffset, inHeader->nFilledLen, in onQueueFilled() 509 outHeader->nFilledLen = dataLength; in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/flac/dec/ |
D | SoftFlacDecoder.cpp | 331 uint32_t inBufferLength = inHeader->nFilledLen; in onQueueFilled() 336 if (mInputBufferCount == 0 && inHeader->nFilledLen == 0) { in onQueueFilled() 339 outHeader->nFilledLen = 0; in onQueueFilled() 427 outHeader->nFilledLen = outBufferSize; in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/opus/dec/ |
D | SoftOpus.cpp | 398 outHeader->nFilledLen = 0; in handleEOS() 429 size_t size = inHeader->nFilledLen; in onQueueFilled() 537 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && inHeader->nFilledLen == 0) { in onQueueFilled() 555 const uint32_t size = inHeader->nFilledLen; in onQueueFilled() 587 outHeader->nFilledLen = numFrames * sizeof(int16_t) * mHeader->channels; in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/avcdec/ |
D | SoftAVCDec.cpp | 403 ps_dec_ip->u4_num_Bytes = inHeader->nFilledLen - mInputOffset; in setDecodeArgs() 527 if (inHeader->nFilledLen == 0) { in onQueueFilled() 668 outHeader->nFilledLen = (outputBufferWidth() * outputBufferHeight() * 3) / 2; in onQueueFilled() 686 outHeader->nFilledLen = 0; in onQueueFilled() 700 if (inHeader != NULL && ((inHeader->nFilledLen - mInputOffset) <= 4)) { in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/on2/enc/ |
D | SoftVPXEncoder.cpp | 643 inputBufferHeader->nFilledLen == 0) { in onQueueFilled() 648 outputBufferHeader->nFilledLen = 0; in onQueueFilled() 671 source, inputBufferHeader->nFilledLen, in onQueueFilled() 747 outputBufferHeader->nFilledLen = encoded_packet->data.frame.sz; in onQueueFilled() 748 if (outputBufferHeader->nFilledLen > outputBufferHeader->nAllocLen) { in onQueueFilled()
|
/frameworks/av/media/libstagefright/omx/ |
D | OMXNodeInstance.cpp | 95 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp, (fenceFd) 156 header->nFilledLen); in CopyToOMX() 163 if (header->nOffset + header->nFilledLen > header->nOffset in getBuffer() 164 && header->nOffset + header->nFilledLen <= header->nAllocLen) { in getBuffer() 165 buf->setRange(header->nOffset, header->nFilledLen); in getBuffer() 1788 header->nFilledLen = 0; in fillBuffer() 1865 header->nFilledLen = rangeLength ? sizeof(VideoGrallocMetadata) : 0; in emptyBuffer_l() 1878 header->nFilledLen = rangeLength; in emptyBuffer_l() 1914 OMX_U32 metaSize = portIndex == kPortIndexInput ? header->nFilledLen : header->nAllocLen; in storeFenceInMeta_l() 1936 OMX_U32 metaSize = portIndex == kPortIndexInput ? header->nAllocLen : header->nFilledLen; in retrieveFenceFromMeta_l() [all …]
|
D | SoftVideoEncoderOMXComponent.cpp | 672 if (inputBufferHeader->nFilledLen < frameSize) { in validateInputBuffer() 674 } else if (inputBufferHeader->nFilledLen > frameSize) { in validateInputBuffer()
|
D | SimpleSoftOMXComponent.cpp | 264 (*header)->nFilledLen = 0; in useBuffer() 618 buffer->mHeader->nFilledLen = 0; in onPortFlush()
|
/frameworks/av/media/libstagefright/codecs/mpeg2dec/ |
D | SoftMPEG2.cpp | 536 ps_dec_ip->u4_num_Bytes = inHeader->nFilledLen; in setDecodeArgs() 644 if (inHeader->nFilledLen == 0) { in onQueueFilled() 792 outHeader->nFilledLen = (outputBufferWidth() * outputBufferHeight() * 3) / 2; in onQueueFilled() 812 DUMP_TO_FILE(mOutFile, outHeader->pBuffer, outHeader->nFilledLen); in onQueueFilled() 827 outHeader->nFilledLen = 0; in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/avcenc/ |
D | SoftAVCEnc.cpp | 1171 if ((inputBufferHeader != NULL) && inputBufferHeader->nFilledLen) { in setEncodeArgs() 1197 inputBufferHeader->nFilledLen, mWidth, mHeight); in setEncodeArgs() 1319 outputBufferHeader->nFilledLen = 0; in onQueueFilled() 1348 outputBufferHeader->nFilledLen = s_encode_op.s_out_buf.u4_bytes; in onQueueFilled() 1358 outputBufferHeader->nFilledLen); in onQueueFilled() 1457 outputBufferHeader->nFilledLen = s_encode_op.s_out_buf.u4_bytes; in onQueueFilled() 1482 if (outputBufferHeader->nFilledLen || s_encode_op.u4_is_last) { in onQueueFilled() 1489 outputBufferHeader->nFilledLen); in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/hevcdec/ |
D | SoftHEVC.cpp | 400 ps_dec_ip->u4_num_Bytes = inHeader->nFilledLen; in setDecodeArgs() 525 if (inHeader->nFilledLen == 0) { in onQueueFilled() 658 outHeader->nFilledLen = (outputBufferWidth() * outputBufferHeight() * 3) / 2; in onQueueFilled() 676 outHeader->nFilledLen = 0; in onQueueFilled()
|