Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp121 OMX_BUFFERHEADERTYPE *outHeader = NULL; in outputBuffers() local
154 outHeader = outInfo->mHeader; in outputBuffers()
167 outHeader->nOffset = 0; in outputBuffers()
168 outHeader->nFlags = 0; in outputBuffers()
169 outHeader->nFilledLen = (outputBufferWidth() * outputBufferHeight() * bpp * 3) / 2; in outputBuffers()
170 outHeader->nTimeStamp = *(OMX_TICKS *)mImg->user_priv; in outputBuffers()
171 if (outputBufferSafe(outHeader)) { in outputBuffers()
172 uint8_t *dst = outHeader->pBuffer; in outputBuffers()
181 outHeader->nFilledLen = 0; in outputBuffers()
188 notifyFillBufferDone(outHeader); in outputBuffers()
[all …]
DSoftVPX.h70 bool outputBufferSafe(OMX_BUFFERHEADERTYPE *outHeader);
/frameworks/av/media/libstagefright/codecs/mp3dec/
DSoftMP3.cpp123 void *SoftMP3::memsetSafe(OMX_BUFFERHEADERTYPE *outHeader, int c, size_t len) { in memsetSafe() argument
124 if (len > outHeader->nAllocLen) { in memsetSafe()
125 ALOGE("memset buffer too small: got %u, expected %zu", outHeader->nAllocLen, len); in memsetSafe()
131 return memset(outHeader->pBuffer, c, len); in memsetSafe()
299 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
300 outHeader->nFlags = 0; in onQueueFilled()
324 if ((int32_t)outHeader->nAllocLen < mConfig->outputFrameSize) { in onQueueFilled()
326 outHeader->nAllocLen, mConfig->outputFrameSize); in onQueueFilled()
334 reinterpret_cast<int16_t *>(outHeader->pBuffer); in onQueueFilled()
358 outHeader->nOffset = 0; in onQueueFilled()
[all …]
DSoftMP3.h75 void *memsetSafe(OMX_BUFFERHEADERTYPE *outHeader, int c, size_t len);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
DSoftMPEG4.cpp106 OMX_BUFFERHEADERTYPE *outHeader = in onQueueFilled() local
117 outHeader->nFilledLen = 0; in onQueueFilled()
118 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
121 while ((*it)->mHeader != outHeader) { in onQueueFilled()
130 notifyFillBufferDone(outHeader); in onQueueFilled()
131 outHeader = NULL; in onQueueFilled()
203 OMX_BUFFERHEADERTYPE *outHeader = port->mBuffers.editItemAt(1).mHeader; in onQueueFilled() local
206 if ((outHeader->nAllocLen < yFrameSize) || in onQueueFilled()
207 (outHeader->nAllocLen - yFrameSize < yFrameSize / 2)) { in onQueueFilled()
209 (unsigned long)outHeader->nAllocLen); in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/flac/enc/
DSoftFlacEncoder.cpp405 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
413 notifyFillBufferDone(outHeader); in onQueueFilled()
414 outHeader = NULL; in onQueueFilled()
427 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
428 notifyFillBufferDone(outHeader); in onQueueFilled()
429 outHeader = NULL; in onQueueFilled()
478 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onEncodedFlacAvailable() local
482 memcpy(outHeader->pBuffer + outHeader->nOffset + outHeader->nFilledLen, in onEncodedFlacAvailable()
484 outHeader->nFilledLen += mHeaderOffset; in onEncodedFlacAvailable()
488 outHeader->nFlags = OMX_BUFFERFLAG_CODECCONFIG; in onEncodedFlacAvailable()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/
DSoftAMRNBEncoder.cpp377 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
379 uint8_t *outPtr = outHeader->pBuffer + outHeader->nOffset; in onQueueFilled()
380 size_t outAvailable = outHeader->nAllocLen - outHeader->nOffset; in onQueueFilled()
393 outHeader->nFilledLen = res; in onQueueFilled()
394 outHeader->nFlags = OMX_BUFFERFLAG_ENDOFFRAME; in onQueueFilled()
399 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
402 outHeader->nTimeStamp = mInputTimeUs; in onQueueFilled()
406 nOutputBytes, mInputTimeUs, outHeader->nFlags); in onQueueFilled()
408 hexdump(outHeader->pBuffer + outHeader->nOffset, outHeader->nFilledLen); in onQueueFilled()
413 notifyFillBufferDone(outHeader); in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/
DSoftAMR.cpp357 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
364 outHeader->nFilledLen = 0; in onQueueFilled()
365 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
369 notifyFillBufferDone(outHeader); in onQueueFilled()
389 if (outHeader->nAllocLen < kNumSamplesPerFrameNB * sizeof(int16_t)) { in onQueueFilled()
391 kNumSamplesPerFrameNB * sizeof(int16_t), outHeader->nAllocLen); in onQueueFilled()
413 reinterpret_cast<int16_t *>(outHeader->pBuffer), in onQueueFilled()
436 if (outHeader->nAllocLen < kNumSamplesPerFrameWB * sizeof(int16_t)) { in onQueueFilled()
438 kNumSamplesPerFrameWB * sizeof(int16_t), outHeader->nAllocLen); in onQueueFilled()
465 int16_t *outPtr = (int16_t *)outHeader->pBuffer; in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/aacenc/
DSoftAACEncoder2.cpp510 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
512 if (outHeader->nOffset + encInfo.confSize > outHeader->nAllocLen) { in onQueueFilled()
520 outHeader->nFilledLen = encInfo.confSize; in onQueueFilled()
521 outHeader->nFlags = OMX_BUFFERFLAG_CODECCONFIG; in onQueueFilled()
523 uint8_t *out = outHeader->pBuffer + outHeader->nOffset; in onQueueFilled()
528 notifyFillBufferDone(outHeader); in onQueueFilled()
624 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
626 uint8_t *outPtr = (uint8_t *)outHeader->pBuffer + outHeader->nOffset; in onQueueFilled()
627 size_t outAvailable = outHeader->nAllocLen - outHeader->nOffset; in onQueueFilled()
691 outHeader->nFilledLen = nOutputBytes; in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/g711/dec/
DSoftG711.cpp267 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
274 outHeader->nFilledLen = 0; in onQueueFilled()
275 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
279 notifyFillBufferDone(outHeader); in onQueueFilled()
290 if (inHeader->nFilledLen * sizeof(int16_t) > outHeader->nAllocLen) { in onQueueFilled()
291 ALOGE("output buffer too small (%d).", outHeader->nAllocLen); in onQueueFilled()
303 reinterpret_cast<int16_t *>(outHeader->pBuffer), in onQueueFilled()
307 reinterpret_cast<int16_t *>(outHeader->pBuffer), in onQueueFilled()
311 outHeader->nTimeStamp = inHeader->nTimeStamp; in onQueueFilled()
312 outHeader->nOffset = 0; in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/gsm/dec/
DSoftGSM.cpp250 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
257 outHeader->nFilledLen = 0; in onQueueFilled()
258 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
262 notifyFillBufferDone(outHeader); in onQueueFilled()
278 if (outHeader->nAllocLen < (inHeader->nFilledLen / kMSGSMFrameSize) * 320) { in onQueueFilled()
279 ALOGE("output buffer is not large enough (%d).", outHeader->nAllocLen); in onQueueFilled()
289 reinterpret_cast<int16_t *>(outHeader->pBuffer), inputptr, inHeader->nFilledLen); in onQueueFilled()
291 outHeader->nTimeStamp = inHeader->nTimeStamp; in onQueueFilled()
292 outHeader->nOffset = 0; in onQueueFilled()
293 outHeader->nFilledLen = n * sizeof(int16_t); in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/
DSoftAMRWBEncoder.cpp424 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
426 uint8_t *outPtr = outHeader->pBuffer + outHeader->nOffset; in onQueueFilled()
427 size_t outAvailable = outHeader->nAllocLen - outHeader->nOffset; in onQueueFilled()
448 outHeader->nFilledLen = outputData.Length; in onQueueFilled()
449 outHeader->nFlags = OMX_BUFFERFLAG_ENDOFFRAME; in onQueueFilled()
454 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
457 outHeader->nTimeStamp = mInputTimeUs; in onQueueFilled()
461 outHeader->nFilledLen, mInputTimeUs, outHeader->nFlags); in onQueueFilled()
463 hexdump(outHeader->pBuffer + outHeader->nOffset, outHeader->nFilledLen); in onQueueFilled()
468 notifyFillBufferDone(outHeader); in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/
DSoftMPEG4Encoder.cpp397 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
399 outHeader->nTimeStamp = 0; in onQueueFilled()
400 outHeader->nFlags = 0; in onQueueFilled()
401 outHeader->nOffset = 0; in onQueueFilled()
402 outHeader->nFilledLen = 0; in onQueueFilled()
403 outHeader->nOffset = 0; in onQueueFilled()
405 uint8_t *outPtr = (uint8_t *) outHeader->pBuffer; in onQueueFilled()
406 int32_t dataLength = outHeader->nAllocLen; in onQueueFilled()
417 outHeader->nFlags |= OMX_BUFFERFLAG_CODECCONFIG; in onQueueFilled()
418 outHeader->nFilledLen = dataLength; in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/mpeg2dec/
DSoftMPEG2.cpp520 OMX_BUFFERHEADERTYPE *outHeader, in setDecodeArgs() argument
549 if (outHeader) { in setDecodeArgs()
550 if (outHeader->nAllocLen < sizeY + (sizeUV * 2)) { in setDecodeArgs()
554 pBuf = outHeader->pBuffer; in setDecodeArgs()
621 OMX_BUFFERHEADERTYPE *outHeader; in onQueueFilled() local
637 outHeader = outInfo->mHeader; in onQueueFilled()
638 outHeader->nFlags = 0; in onQueueFilled()
639 outHeader->nTimeStamp = 0; in onQueueFilled()
640 outHeader->nOffset = 0; in onQueueFilled()
687 if (!setDecodeArgs(&s_dec_ip, &s_dec_op, inHeader, outHeader, timeStampIx)) { in onQueueFilled()
[all …]
DSoftMPEG2.h127 OMX_BUFFERHEADERTYPE *outHeader,
/frameworks/av/media/libstagefright/codecs/hevcdec/
DSoftHEVC.cpp384 OMX_BUFFERHEADERTYPE *outHeader, in setDecodeArgs() argument
413 if (outHeader) { in setDecodeArgs()
414 if (outHeader->nAllocLen < sizeY + (sizeUV * 2)) { in setDecodeArgs()
418 pBuf = outHeader->pBuffer; in setDecodeArgs()
502 OMX_BUFFERHEADERTYPE *outHeader; in onQueueFilled() local
518 outHeader = outInfo->mHeader; in onQueueFilled()
519 outHeader->nFlags = 0; in onQueueFilled()
520 outHeader->nTimeStamp = 0; in onQueueFilled()
521 outHeader->nOffset = 0; in onQueueFilled()
556 if (!setDecodeArgs(&s_dec_ip, &s_dec_op, inHeader, outHeader, timeStampIx)) { in onQueueFilled()
[all …]
DSoftHEVC.h113 OMX_BUFFERHEADERTYPE *outHeader,
/frameworks/av/media/libstagefright/codecs/avcdec/
DSoftAVCDec.cpp387 OMX_BUFFERHEADERTYPE *outHeader, in setDecodeArgs() argument
416 if (outHeader) { in setDecodeArgs()
417 if (outHeader->nAllocLen < sizeY + (sizeUV * 2)) { in setDecodeArgs()
421 pBuf = outHeader->pBuffer; in setDecodeArgs()
503 OMX_BUFFERHEADERTYPE *outHeader; in onQueueFilled() local
521 outHeader = outInfo->mHeader; in onQueueFilled()
522 outHeader->nFlags = 0; in onQueueFilled()
523 outHeader->nTimeStamp = 0; in onQueueFilled()
524 outHeader->nOffset = 0; in onQueueFilled()
565 if (!setDecodeArgs(&s_dec_ip, &s_dec_op, inHeader, outHeader, timeStampIx)) { in onQueueFilled()
[all …]
DSoftAVCDec.h110 OMX_BUFFERHEADERTYPE *outHeader,
/frameworks/av/media/libstagefright/codecs/flac/dec/
DSoftFlacDecoder.cpp307 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
308 short *outBuffer = reinterpret_cast<short *>(outHeader->pBuffer + outHeader->nOffset); in onQueueFilled()
309 size_t outBufferSize = outHeader->nAllocLen - outHeader->nOffset; in onQueueFilled()
324 outHeader->nFilledLen = 0; in onQueueFilled()
325 outHeader->nTimeStamp = inHeader->nTimeStamp; in onQueueFilled()
326 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
329 notifyFillBufferDone(outHeader); in onQueueFilled()
404 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
410 outHeader->nFilledLen = outBufferSize; in onQueueFilled()
411 outHeader->nTimeStamp = timeStamp; in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/opus/dec/
DSoftOpus.cpp394 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in handleEOS() local
395 outHeader->nFilledLen = 0; in handleEOS()
396 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in handleEOS()
401 notifyFillBufferDone(outHeader); in handleEOS()
518 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
540 if (frameSize > outHeader->nAllocLen / sizeof(int16_t) / mHeader->channels) { in onQueueFilled()
541 frameSize = outHeader->nAllocLen / sizeof(int16_t) / mHeader->channels; in onQueueFilled()
548 (int16_t *)outHeader->pBuffer, in onQueueFilled()
557 outHeader->nOffset = 0; in onQueueFilled()
564 outHeader->nOffset = mSamplesToDiscard * sizeof(int16_t) * in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/raw/
DSoftRaw.cpp246 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
248 CHECK_GE(outHeader->nAllocLen, inHeader->nFilledLen); in onQueueFilled()
249 memcpy(outHeader->pBuffer, in onQueueFilled()
253 outHeader->nFlags = inHeader->nFlags; in onQueueFilled()
254 outHeader->nOffset = 0; in onQueueFilled()
255 outHeader->nFilledLen = inHeader->nFilledLen; in onQueueFilled()
256 outHeader->nTimeStamp = inHeader->nTimeStamp; in onQueueFilled()
266 notifyFillBufferDone(outHeader); in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
DSoftVorbis.cpp321 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in handleEOS() local
322 outHeader->nFilledLen = 0; in handleEOS()
323 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in handleEOS()
327 notifyFillBufferDone(outHeader); in handleEOS()
355 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
478 outHeader->nFlags = 0; in onQueueFilled()
497 if (numSamplesPerBuffer > outHeader->nAllocLen / sizeof(int16_t)) { in onQueueFilled()
498 numSamplesPerBuffer = outHeader->nAllocLen / sizeof(int16_t); in onQueueFilled()
502 mState, (int16_t *)outHeader->pBuffer, in onQueueFilled()
517 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.cpp946 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
948 if (outHeader->nOffset != 0) { in onQueueFilled()
956 reinterpret_cast<INT_PCM *>(outHeader->pBuffer + outHeader->nOffset); in onQueueFilled()
958 if (outHeader->nOffset in onQueueFilled()
960 > outHeader->nAllocLen) { in onQueueFilled()
969 int numSamples = outHeader->nAllocLen / sizeof(int16_t); in onQueueFilled()
1026 outHeader->nFilledLen = numSamples * sizeof(int16_t); in onQueueFilled()
1029 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
1032 outHeader->nFlags = 0; in onQueueFilled()
1035 outHeader->nTimeStamp = currentTime; in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/xaacdec/
DSoftXAAC.cpp761 OMX_BUFFERHEADERTYPE* outHeader = outInfo->mHeader; in onQueueFilled() local
763 if (outHeader->nOffset != 0) { in onQueueFilled()
771 reinterpret_cast<signed short*>(outHeader->pBuffer + outHeader->nOffset); in onQueueFilled()
773 if (outHeader->nOffset + mOutputFrameLength * samplesize > outHeader->nAllocLen) { in onQueueFilled()
780 outHeader->nFilledLen = numOutBytes; in onQueueFilled()
783 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
786 outHeader->nFlags = 0; in onQueueFilled()
788 outHeader->nTimeStamp = mCurrentTimestamp; in onQueueFilled()
795 notifyFillBufferDone(outHeader); in onQueueFilled()
796 outHeader = NULL; in onQueueFilled()
[all …]