Home
last modified time | relevance | path

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

/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.cpp105 OMX_BUFFERHEADERTYPE *outHeader = in onQueueFilled() local
116 outHeader->nFilledLen = 0; in onQueueFilled()
117 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
120 while (it != outQueue.end() && (*it)->mHeader != outHeader) { in onQueueFilled()
134 notifyFillBufferDone(outHeader); in onQueueFilled()
135 outHeader = NULL; in onQueueFilled()
207 OMX_BUFFERHEADERTYPE *outHeader = port->mBuffers.editItemAt(1).mHeader; in onQueueFilled() local
210 if ((outHeader->nAllocLen < yFrameSize) || in onQueueFilled()
211 (outHeader->nAllocLen - yFrameSize < yFrameSize / 2)) { in onQueueFilled()
213 (unsigned long)outHeader->nAllocLen); in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp126 OMX_BUFFERHEADERTYPE *outHeader = NULL; in outputBuffers() local
159 outHeader = outInfo->mHeader; in outputBuffers()
172 outHeader->nOffset = 0; in outputBuffers()
173 outHeader->nFlags = 0; in outputBuffers()
174 outHeader->nFilledLen = (outputBufferWidth() * outputBufferHeight() * bpp * 3) / 2; in outputBuffers()
176 outHeader->nTimeStamp = privInfo->mTimeStamp; in outputBuffers()
181 if (outputBufferSafe(outHeader)) { in outputBuffers()
182 uint8_t *dst = outHeader->pBuffer; in outputBuffers()
191 outHeader->nFilledLen = 0; in outputBuffers()
198 notifyFillBufferDone(outHeader); in outputBuffers()
[all …]
DSoftVPX.h77 bool outputBufferSafe(OMX_BUFFERHEADERTYPE *outHeader);
/frameworks/av/media/libstagefright/codecs/flac/enc/
DSoftFlacEncoder.cpp434 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
442 notifyFillBufferDone(outHeader); in onQueueFilled()
443 outHeader = NULL; in onQueueFilled()
456 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
457 notifyFillBufferDone(outHeader); in onQueueFilled()
458 outHeader = NULL; in onQueueFilled()
507 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onEncodedFlacAvailable() local
511 memcpy(outHeader->pBuffer + outHeader->nOffset + outHeader->nFilledLen, in onEncodedFlacAvailable()
513 outHeader->nFilledLen += mHeaderOffset; in onEncodedFlacAvailable()
517 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/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/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/g711/dec/
DSoftG711.cpp269 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
276 outHeader->nFilledLen = 0; in onQueueFilled()
277 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
281 notifyFillBufferDone(outHeader); in onQueueFilled()
292 if (inHeader->nFilledLen * sizeof(int16_t) > outHeader->nAllocLen) { in onQueueFilled()
293 ALOGE("output buffer too small (%d).", outHeader->nAllocLen); in onQueueFilled()
305 reinterpret_cast<int16_t *>(outHeader->pBuffer), in onQueueFilled()
309 reinterpret_cast<int16_t *>(outHeader->pBuffer), in onQueueFilled()
313 outHeader->nTimeStamp = inHeader->nTimeStamp; in onQueueFilled()
314 outHeader->nOffset = 0; 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/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/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/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/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/flac/dec/
DSoftFlacDecoder.cpp322 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
323 void *outBuffer = reinterpret_cast<void *>(outHeader->pBuffer + outHeader->nOffset); in onQueueFilled()
324 size_t outBufferSize = outHeader->nAllocLen - outHeader->nOffset; in onQueueFilled()
339 outHeader->nFilledLen = 0; in onQueueFilled()
340 outHeader->nTimeStamp = inHeader->nTimeStamp; in onQueueFilled()
341 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
344 notifyFillBufferDone(outHeader); in onQueueFilled()
421 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
427 outHeader->nFilledLen = outBufferSize; in onQueueFilled()
428 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()
530 OMX_BUFFERHEADERTYPE *outHeader = outInfo->mHeader; in onQueueFilled() local
552 if (frameSize > outHeader->nAllocLen / sizeof(int16_t) / mHeader->channels) { in onQueueFilled()
553 frameSize = outHeader->nAllocLen / sizeof(int16_t) / mHeader->channels; in onQueueFilled()
560 (int16_t *)outHeader->pBuffer, in onQueueFilled()
569 outHeader->nOffset = 0; in onQueueFilled()
576 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
506 outHeader->nFlags = 0; in onQueueFilled()
525 if (numSamplesPerBuffer > outHeader->nAllocLen / sizeof(int16_t)) { in onQueueFilled()
526 numSamplesPerBuffer = outHeader->nAllocLen / sizeof(int16_t); in onQueueFilled()
530 mState, (int16_t *)outHeader->pBuffer, in onQueueFilled()
545 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.cpp748 OMX_BUFFERHEADERTYPE* outHeader = outInfo->mHeader; in onQueueFilled() local
750 if (outHeader->nOffset != 0) { in onQueueFilled()
758 reinterpret_cast<signed short*>(outHeader->pBuffer + outHeader->nOffset); in onQueueFilled()
760 if (outHeader->nOffset + mOutputFrameLength * samplesize > outHeader->nAllocLen) { in onQueueFilled()
767 outHeader->nFilledLen = numOutBytes; in onQueueFilled()
770 outHeader->nFlags = OMX_BUFFERFLAG_EOS; in onQueueFilled()
773 outHeader->nFlags = 0; in onQueueFilled()
775 outHeader->nTimeStamp = mCurrentTimestamp; in onQueueFilled()
782 notifyFillBufferDone(outHeader); in onQueueFilled()
783 outHeader = NULL; in onQueueFilled()
[all …]