/frameworks/av/media/libstagefright/codecs/vorbis/dec/ |
D | SoftVorbis.cpp | 331 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in handleEOS() local 334 notifyEmptyBufferDone(inHeader); in handleEOS() 348 OMX_BUFFERHEADERTYPE *inHeader = NULL; in onQueueFilled() local 351 inHeader = inInfo->mHeader; in onQueueFilled() 359 if (inHeader) { in onQueueFilled() 361 const uint8_t *data = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 362 size_t size = inHeader->nFilledLen; in onQueueFilled() 364 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && size == 0) { in onQueueFilled() 414 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled() 421 notifyEmptyBufferDone(inHeader); in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/ |
D | SoftMPEG4.cpp | 97 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 98 if (inHeader == NULL) { in onQueueFilled() 109 if (inHeader->nFilledLen == 0) { in onQueueFilled() 112 notifyEmptyBufferDone(inHeader); in onQueueFilled() 116 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled() 136 uint8_t *bitstream = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 150 if ((inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) || volHeader) { in onQueueFilled() 152 vol_size = inHeader->nFilledLen; in onQueueFilled() 180 if (inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) { in onQueueFilled() 184 notifyEmptyBufferDone(inHeader); in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/gsm/dec/ |
D | SoftGSM.cpp | 247 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 252 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && inHeader->nFilledLen == 0) { in onQueueFilled() 255 notifyEmptyBufferDone(inHeader); 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() 286 uint8_t *inputptr = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 289 reinterpret_cast<int16_t *>(outHeader->pBuffer), inputptr, inHeader->nFilledLen); in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/aacdec/ |
D | SoftAAC2.cpp | 625 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 627 mEndOfInput = (inHeader->nFlags & OMX_BUFFERFLAG_EOS) != 0; in onQueueFilled() 629 if (mInputBufferCount == 0 && !(inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG)) { in onQueueFilled() 631 inHeader->nFlags |= OMX_BUFFERFLAG_CODECCONFIG; in onQueueFilled() 633 if ((inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) != 0) { in onQueueFilled() 635 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 637 inBuffer[0] = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 638 inBufferLength[0] = inHeader->nFilledLen; in onQueueFilled() 659 notifyEmptyBufferDone(inHeader); in onQueueFilled() 660 inHeader = NULL; in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/opus/dec/ |
D | SoftOpus.cpp | 404 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in handleEOS() local 407 notifyEmptyBufferDone(inHeader); in handleEOS() 422 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 425 const uint8_t *data = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 426 size_t size = inHeader->nFilledLen; in onQueueFilled() 428 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && size == 0) { in onQueueFilled() 478 *(reinterpret_cast<int64_t*>(inHeader->pBuffer + in onQueueFilled() 479 inHeader->nOffset)), in onQueueFilled() 484 *(reinterpret_cast<int64_t*>(inHeader->pBuffer + in onQueueFilled() 485 inHeader->nOffset)), in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/g711/dec/ |
D | SoftG711.cpp | 264 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 269 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && inHeader->nFilledLen == 0) { in onQueueFilled() 272 notifyEmptyBufferDone(inHeader); in onQueueFilled() 283 if (inHeader->nFilledLen > kMaxNumSamplesPerFrame) { in onQueueFilled() 284 ALOGE("input buffer too large (%d).", inHeader->nFilledLen); in onQueueFilled() 290 if (inHeader->nFilledLen * sizeof(int16_t) > outHeader->nAllocLen) { in onQueueFilled() 299 const uint8_t *inputptr = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 304 inputptr, inHeader->nFilledLen); in onQueueFilled() 308 inputptr, inHeader->nFilledLen); in onQueueFilled() 311 outHeader->nTimeStamp = inHeader->nTimeStamp; in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/ |
D | SoftAMR.cpp | 354 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 359 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && inHeader->nFilledLen == 0) { in onQueueFilled() 362 notifyEmptyBufferDone(inHeader); in onQueueFilled() 373 if (inHeader->nFilledLen == 0) { in onQueueFilled() 376 notifyEmptyBufferDone(inHeader); in onQueueFilled() 380 if (inHeader->nOffset == 0) { in onQueueFilled() 381 mAnchorTimeUs = inHeader->nTimeStamp; in onQueueFilled() 385 const uint8_t *inputPtr = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 402 if (inHeader->nFilledLen < frameSize) { in onQueueFilled() 403 ALOGE("b/27662364: expected %zu bytes vs %u", frameSize, inHeader->nFilledLen); in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/ |
D | SoftMP3.cpp | 292 OMX_BUFFERHEADERTYPE *inHeader = NULL; in onQueueFilled() local 295 inHeader = inInfo->mHeader; in onQueueFilled() 302 if (inHeader) { in onQueueFilled() 303 if (inHeader->nOffset == 0 && inHeader->nFilledLen) { in onQueueFilled() 304 mAnchorTimeUs = inHeader->nTimeStamp; in onQueueFilled() 308 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled() 313 inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 315 mConfig->inputBufferCurrentLength = inHeader->nFilledLen; in onQueueFilled() 380 if (inHeader) { in onQueueFilled() 381 mConfig->inputBufferUsedLength = inHeader->nFilledLen; in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/avcdec/ |
D | SoftAVCDec.cpp | 386 OMX_BUFFERHEADERTYPE *inHeader, in setDecodeArgs() argument 399 if (inHeader) { in setDecodeArgs() 402 inHeader->pBuffer + inHeader->nOffset + mInputOffset; in setDecodeArgs() 403 ps_dec_ip->u4_num_Bytes = inHeader->nFilledLen - mInputOffset; in setDecodeArgs() 474 OMX_BUFFERHEADERTYPE *inHeader = NULL; in onQueueFilled() local 506 if (!mIsInFlush && (NULL == inHeader)) { in onQueueFilled() 509 inHeader = inInfo->mHeader; in onQueueFilled() 510 if (inHeader == NULL) { in onQueueFilled() 526 if (inHeader != NULL) { in onQueueFilled() 527 if (inHeader->nFilledLen == 0) { in onQueueFilled() [all …]
|
D | SoftAVCDec.h | 109 OMX_BUFFERHEADERTYPE *inHeader,
|
/frameworks/av/media/libstagefright/codecs/xaacdec/ |
D | SoftXAAC.cpp | 558 OMX_BUFFERHEADERTYPE* inHeader = inInfo->mHeader; in onQueueFilled() local 561 mEndOfInput = (inHeader->nFlags & OMX_BUFFERFLAG_EOS) != 0; in onQueueFilled() 563 if (mInputBufferCount == 0 && !(inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG)) { in onQueueFilled() 565 inHeader->nFlags |= OMX_BUFFERFLAG_CODECCONFIG; in onQueueFilled() 567 if ((inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) != 0) { in onQueueFilled() 568 inBuffer = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 569 inBufferLength = inHeader->nFilledLen; in onQueueFilled() 587 notifyEmptyBufferDone(inHeader); in onQueueFilled() 588 inHeader = NULL; in onQueueFilled() 601 if (inHeader->nFilledLen == 0) { in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/ |
D | SoftAMRNBEncoder.cpp | 321 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 323 const void *inData = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 326 if (copy > inHeader->nFilledLen) { in onQueueFilled() 327 copy = inHeader->nFilledLen; in onQueueFilled() 331 mInputTimeUs = inHeader->nTimeStamp; in onQueueFilled() 337 inHeader->nOffset += copy; in onQueueFilled() 338 inHeader->nFilledLen -= copy; in onQueueFilled() 342 inHeader->nTimeStamp += in onQueueFilled() 345 if (inHeader->nFilledLen == 0) { in onQueueFilled() 346 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/hevcdec/ |
D | SoftHEVC.cpp | 383 OMX_BUFFERHEADERTYPE *inHeader, in setDecodeArgs() argument 396 if (inHeader) { in setDecodeArgs() 398 ps_dec_ip->pv_stream_buffer = inHeader->pBuffer in setDecodeArgs() 399 + inHeader->nOffset; in setDecodeArgs() 400 ps_dec_ip->u4_num_Bytes = inHeader->nFilledLen; in setDecodeArgs() 499 OMX_BUFFERHEADERTYPE *inHeader; in onQueueFilled() local 506 inHeader = NULL; in onQueueFilled() 511 inHeader = inInfo->mHeader; in onQueueFilled() 523 if (inHeader != NULL && (inHeader->nFlags & OMX_BUFFERFLAG_EOS)) { in onQueueFilled() 525 if (inHeader->nFilledLen == 0) { in onQueueFilled() [all …]
|
D | SoftHEVC.h | 112 OMX_BUFFERHEADERTYPE *inHeader,
|
/frameworks/av/media/libstagefright/codecs/raw/ |
D | SoftRaw.cpp | 243 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 248 CHECK_GE(outHeader->nAllocLen, inHeader->nFilledLen); in onQueueFilled() 250 inHeader->pBuffer + inHeader->nOffset, in onQueueFilled() 251 inHeader->nFilledLen); in onQueueFilled() 253 outHeader->nFlags = inHeader->nFlags; in onQueueFilled() 255 outHeader->nFilledLen = inHeader->nFilledLen; in onQueueFilled() 256 outHeader->nTimeStamp = inHeader->nTimeStamp; in onQueueFilled() 258 bool sawEOS = (inHeader->nFlags & OMX_BUFFERFLAG_EOS) != 0; in onQueueFilled() 262 notifyEmptyBufferDone(inHeader); in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/flac/dec/ |
D | SoftFlacDecoder.cpp | 314 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 315 uint8_t* inBuffer = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 316 uint32_t inBufferLength = inHeader->nFilledLen; in onQueueFilled() 318 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled() 321 if (mInputBufferCount == 0 && inHeader->nFilledLen == 0) { in onQueueFilled() 325 outHeader->nTimeStamp = inHeader->nTimeStamp; in onQueueFilled() 333 notifyEmptyBufferDone(inHeader); in onQueueFilled() 338 if (mInputBufferCount == 0 && !(inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG)) { in onQueueFilled() 340 inHeader->nFlags |= OMX_BUFFERFLAG_CODECCONFIG; in onQueueFilled() 342 if ((inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) != 0) { in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/dec/ |
D | SoftVPX.cpp | 259 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 264 if (inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) { in onQueueFilled() 269 notifyEmptyBufferDone(inHeader); in onQueueFilled() 278 mTimeStamps[mTimeStampIdx] = inHeader->nTimeStamp; in onQueueFilled() 280 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled() 285 if (inHeader->nFilledLen > 0) { in onQueueFilled() 287 (vpx_codec_ctx_t *)mCtx, inHeader->pBuffer + inHeader->nOffset, in onQueueFilled() 288 inHeader->nFilledLen, &mTimeStamps[mTimeStampIdx], 0); in onQueueFilled() 293 notifyEmptyBufferDone(inHeader); in onQueueFilled() 294 inHeader = NULL; in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/mpeg2dec/ |
D | SoftMPEG2.cpp | 519 OMX_BUFFERHEADERTYPE *inHeader, in setDecodeArgs() argument 532 if (inHeader) { in setDecodeArgs() 534 ps_dec_ip->pv_stream_buffer = inHeader->pBuffer in setDecodeArgs() 535 + inHeader->nOffset; in setDecodeArgs() 536 ps_dec_ip->u4_num_Bytes = inHeader->nFilledLen; in setDecodeArgs() 618 OMX_BUFFERHEADERTYPE *inHeader; in onQueueFilled() local 625 inHeader = NULL; in onQueueFilled() 630 inHeader = inInfo->mHeader; in onQueueFilled() 642 if (inHeader != NULL && (inHeader->nFlags & OMX_BUFFERFLAG_EOS)) { in onQueueFilled() 644 if (inHeader->nFilledLen == 0) { in onQueueFilled() [all …]
|
D | SoftMPEG2.h | 126 OMX_BUFFERHEADERTYPE *inHeader,
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/ |
D | SoftAMRWBEncoder.cpp | 368 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 370 const void *inData = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 373 if (copy > inHeader->nFilledLen) { in onQueueFilled() 374 copy = inHeader->nFilledLen; in onQueueFilled() 378 mInputTimeUs = inHeader->nTimeStamp; in onQueueFilled() 384 inHeader->nOffset += copy; in onQueueFilled() 385 inHeader->nFilledLen -= copy; in onQueueFilled() 389 inHeader->nTimeStamp += in onQueueFilled() 392 if (inHeader->nFilledLen == 0) { in onQueueFilled() 393 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/ |
D | SoftMPEG4Encoder.cpp | 395 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 428 info.mTimeUs = inHeader->nTimeStamp; in onQueueFilled() 429 info.mFlags = inHeader->nFlags; in onQueueFilled() 432 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled() 436 if (inHeader->nFilledLen > 0) { in onQueueFilled() 437 OMX_ERRORTYPE error = validateInputBuffer(inHeader); in onQueueFilled() 450 inHeader->pBuffer + inHeader->nOffset, inHeader->nFilledLen, in onQueueFilled() 459 inputData = (const uint8_t *)inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 474 vin.timestamp = (inHeader->nTimeStamp + 500) / 1000; // in ms in onQueueFilled() 502 notifyEmptyBufferDone(inHeader); in onQueueFilled()
|
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
D | SoftFlacEncoder.cpp | 363 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 365 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled() 366 ALOGV("saw EOS on buffer of size %u", inHeader->nFilledLen); in onQueueFilled() 370 if (inHeader->nFilledLen > kMaxInputBufferSize) { in onQueueFilled() 371 ALOGE("input buffer too large (%d).", inHeader->nFilledLen); in onQueueFilled() 381 mCurrentInputTimeStamp = inHeader->nTimeStamp; in onQueueFilled() 383 const unsigned nbInputFrames = inHeader->nFilledLen / (2 * mNumChannels); in onQueueFilled() 384 const unsigned nbInputSamples = inHeader->nFilledLen / 2; in onQueueFilled() 385 const OMX_S16 * const pcm16 = reinterpret_cast<OMX_S16 *>(inHeader->pBuffer); in onQueueFilled() 400 notifyEmptyBufferDone(inHeader); in onQueueFilled() [all …]
|
/frameworks/av/media/libstagefright/codecs/aacenc/ |
D | SoftAACEncoder2.cpp | 555 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local 557 const void *inData = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled() 560 if (copy > inHeader->nFilledLen) { in onQueueFilled() 561 copy = inHeader->nFilledLen; in onQueueFilled() 578 mInputTimeUs = inHeader->nTimeStamp; in onQueueFilled() 584 inHeader->nOffset += copy; in onQueueFilled() 585 inHeader->nFilledLen -= copy; in onQueueFilled() 589 inHeader->nTimeStamp += in onQueueFilled() 593 if (inHeader->nFilledLen == 0) { in onQueueFilled() 594 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled() [all …]
|