Home
last modified time | relevance | path

Searched refs:inHeader (Results 1 – 23 of 23) sorted by relevance

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
DSoftMPEG4.cpp96 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local
97 if (inHeader == NULL) { in onQueueFilled()
108 if (inHeader->nFilledLen == 0) { in onQueueFilled()
111 notifyEmptyBufferDone(inHeader); in onQueueFilled()
115 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled()
140 uint8_t *bitstream = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled()
154 if ((inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) || volHeader) { in onQueueFilled()
156 vol_size = inHeader->nFilledLen; in onQueueFilled()
184 if (inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) { in onQueueFilled()
188 notifyEmptyBufferDone(inHeader); in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
DSoftVorbis.cpp331 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()
363 (mState == NULL || (inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG))) { in onQueueFilled()
364 const uint8_t *data = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled()
365 size_t size = inHeader->nFilledLen; in onQueueFilled()
367 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && size == 0) { in onQueueFilled()
442 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/gsm/dec/
DSoftGSM.cpp247 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/
DSoftAAC2.cpp625 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/
DSoftOpus.cpp404 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()
490 *(reinterpret_cast<int64_t*>(inHeader->pBuffer + in onQueueFilled()
491 inHeader->nOffset)), in onQueueFilled()
496 *(reinterpret_cast<int64_t*>(inHeader->pBuffer + in onQueueFilled()
497 inHeader->nOffset)), in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/g711/dec/
DSoftG711.cpp266 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local
271 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && inHeader->nFilledLen == 0) { in onQueueFilled()
274 notifyEmptyBufferDone(inHeader); 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()
301 const uint8_t *inputptr = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled()
306 inputptr, inHeader->nFilledLen); in onQueueFilled()
310 inputptr, inHeader->nFilledLen); in onQueueFilled()
313 outHeader->nTimeStamp = inHeader->nTimeStamp; in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/
DSoftAMR.cpp354 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/
DSoftMP3.cpp292 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/
DSoftAVCDec.cpp386 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 …]
DSoftAVCDec.h109 OMX_BUFFERHEADERTYPE *inHeader,
/frameworks/av/media/libstagefright/codecs/xaacdec/
DSoftXAAC.cpp542 OMX_BUFFERHEADERTYPE* inHeader = inInfo->mHeader; in onQueueFilled() local
545 mEndOfInput = (inHeader->nFlags & OMX_BUFFERFLAG_EOS) != 0; in onQueueFilled()
547 if (mInputBufferCount == 0 && !(inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG)) { in onQueueFilled()
549 inHeader->nFlags |= OMX_BUFFERFLAG_CODECCONFIG; in onQueueFilled()
551 if ((inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) != 0) { in onQueueFilled()
552 inBuffer = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled()
553 inBufferLength = inHeader->nFilledLen; in onQueueFilled()
571 notifyEmptyBufferDone(inHeader); in onQueueFilled()
572 inHeader = NULL; in onQueueFilled()
585 if (inHeader->nFilledLen == 0) { in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/
DSoftAMRNBEncoder.cpp321 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/
DSoftHEVC.cpp383 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 …]
DSoftHEVC.h112 OMX_BUFFERHEADERTYPE *inHeader,
/frameworks/av/media/libstagefright/codecs/raw/
DSoftRaw.cpp243 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/
DSoftFlacDecoder.cpp329 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local
330 uint8_t* inBuffer = inHeader->pBuffer + inHeader->nOffset; in onQueueFilled()
331 uint32_t inBufferLength = inHeader->nFilledLen; in onQueueFilled()
333 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled()
336 if (mInputBufferCount == 0 && inHeader->nFilledLen == 0) { in onQueueFilled()
340 outHeader->nTimeStamp = inHeader->nTimeStamp; in onQueueFilled()
348 notifyEmptyBufferDone(inHeader); in onQueueFilled()
353 if (mInputBufferCount == 0 && !(inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG)) { in onQueueFilled()
355 inHeader->nFlags |= OMX_BUFFERFLAG_CODECCONFIG; in onQueueFilled()
357 if ((inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) != 0) { in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/mpeg2dec/
DSoftMPEG2.cpp519 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 …]
DSoftMPEG2.h126 OMX_BUFFERHEADERTYPE *inHeader,
/frameworks/av/media/libstagefright/codecs/amrwbenc/
DSoftAMRWBEncoder.cpp368 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/on2/dec/
DSoftVPX.cpp269 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local
274 if (inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) { in onQueueFilled()
279 notifyEmptyBufferDone(inHeader); in onQueueFilled()
288 mPrivInfo[mTimeStampIdx].mTimeStamp = inHeader->nTimeStamp; in onQueueFilled()
296 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled()
301 if (inHeader->nFilledLen > 0) { in onQueueFilled()
303 (vpx_codec_ctx_t *)mCtx, inHeader->pBuffer + inHeader->nOffset, in onQueueFilled()
304 inHeader->nFilledLen, &mPrivInfo[mTimeStampIdx], 0); in onQueueFilled()
309 notifyEmptyBufferDone(inHeader); in onQueueFilled()
310 inHeader = NULL; in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/
DSoftMPEG4Encoder.cpp395 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/
DSoftFlacEncoder.cpp384 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; in onQueueFilled() local
386 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { in onQueueFilled()
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 mCurrentInputTimeStamp = inHeader->nTimeStamp; in onQueueFilled()
404 const unsigned nbInputFrames = inHeader->nFilledLen / frameSize; in onQueueFilled()
405 const unsigned nbInputSamples = inHeader->nFilledLen / sampleSize; in onQueueFilled()
409 const float * const pcmFloat = reinterpret_cast<float *>(inHeader->pBuffer); in onQueueFilled()
415 const int16_t * const pcm16 = reinterpret_cast<int16_t *>(inHeader->pBuffer); in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/aacenc/
DSoftAACEncoder2.cpp555 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 …]