Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/codecs/mp3dec/
DSoftMP3.cpp229 if (inHeader->nOffset == 0 && inHeader->nFilledLen) { in onQueueFilled()
241 mConfig->inputBufferCurrentLength = inHeader->nFilledLen; in onQueueFilled()
277 outHeader->nFilledLen = kPVMP3DecoderDelay * mNumChannels * sizeof(int16_t); in onQueueFilled()
279 memset(outHeader->pBuffer, 0, outHeader->nFilledLen); in onQueueFilled()
291 mConfig->inputBufferUsedLength = inHeader->nFilledLen; in onQueueFilled()
312 outHeader->nFilledLen = in onQueueFilled()
316 outHeader->nFilledLen = mConfig->outputFrameSize * sizeof(int16_t); in onQueueFilled()
324 CHECK_GE(inHeader->nFilledLen, mConfig->inputBufferUsedLength); in onQueueFilled()
327 inHeader->nFilledLen -= mConfig->inputBufferUsedLength; in onQueueFilled()
330 if (inHeader->nFilledLen == 0) { in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/gsm/dec/
DSoftGSM.cpp195 outHeader->nFilledLen = 0; in onQueueFilled()
204 if (inHeader->nFilledLen > kMaxNumSamplesPerFrame) { in onQueueFilled()
205 ALOGE("input buffer too large (%d).", inHeader->nFilledLen); in onQueueFilled()
210 if(((inHeader->nFilledLen / 65) * 65) != inHeader->nFilledLen) { in onQueueFilled()
211 ALOGE("input buffer not multiple of 65 (%d).", inHeader->nFilledLen); in onQueueFilled()
219 reinterpret_cast<int16_t *>(outHeader->pBuffer), inputptr, inHeader->nFilledLen); in onQueueFilled()
223 outHeader->nFilledLen = n * sizeof(int16_t); in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.cpp525 inBufferLength[0] = inHeader->nFilledLen; in onQueueFilled()
563 if (inHeader->nFilledLen == 0) { in onQueueFilled()
581 if (inHeader->nFilledLen < 7) { in onQueueFilled()
583 "Got %d bytes.", inHeader->nFilledLen); in onQueueFilled()
584 hexdump(adtsHeader, inHeader->nFilledLen); in onQueueFilled()
594 if (inHeader->nFilledLen < aac_frame_length) { in onQueueFilled()
598 inHeader->nFilledLen, aac_frame_length); in onQueueFilled()
599 hexdump(adtsHeader, inHeader->nFilledLen); in onQueueFilled()
608 inHeader->nFilledLen -= adtsHeaderSize; in onQueueFilled()
631 inBufferLength[0] = inHeader->nFilledLen; in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/g711/dec/
DSoftG711.cpp212 outHeader->nFilledLen = 0; in onQueueFilled()
221 if (inHeader->nFilledLen > kMaxNumSamplesPerFrame) { in onQueueFilled()
222 ALOGE("input buffer too large (%d).", inHeader->nFilledLen); in onQueueFilled()
233 inputptr, inHeader->nFilledLen); in onQueueFilled()
237 inputptr, inHeader->nFilledLen); in onQueueFilled()
242 outHeader->nFilledLen = inHeader->nFilledLen * sizeof(int16_t); in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/flac/enc/
DSoftFlacEncoder.cpp288 outHeader->nFilledLen = 0; in onQueueFilled()
298 if (inHeader->nFilledLen > kMaxInputBufferSize) { in onQueueFilled()
299 ALOGE("input buffer too large (%d).", inHeader->nFilledLen); in onQueueFilled()
311 const unsigned nbInputFrames = inHeader->nFilledLen / (2 * mNumChannels); in onQueueFilled()
312 const unsigned nbInputSamples = inHeader->nFilledLen / 2; in onQueueFilled()
385 memcpy(outHeader->pBuffer + outHeader->nOffset + outHeader->nFilledLen, in onEncodedFlacAvailable()
387 outHeader->nFilledLen += mHeaderOffset; in onEncodedFlacAvailable()
395 if (bytes > outHeader->nAllocLen - outHeader->nOffset - outHeader->nFilledLen) { in onEncodedFlacAvailable()
404 outHeader->nFilledLen += bytes; in onEncodedFlacAvailable()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/
DSoftMPEG4.cpp112 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && inHeader->nFilledLen == 0) { in onQueueFilled()
119 outHeader->nFilledLen = 0; in onQueueFilled()
153 vol_size = inHeader->nFilledLen; in onQueueFilled()
222 int32_t bufferSize = inHeader->nFilledLen; in onQueueFilled()
250 inHeader->nFilledLen = 0; in onQueueFilled()
257 if (inHeader->nFilledLen == 0) { in onQueueFilled()
268 outHeader->nFilledLen = (mWidth * mHeight * 3) / 2; in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/amrwbenc/
DSoftAMRWBEncoder.cpp349 if (copy > inHeader->nFilledLen) { in onQueueFilled()
350 copy = inHeader->nFilledLen; in onQueueFilled()
361 inHeader->nFilledLen -= copy; in onQueueFilled()
368 if (inHeader->nFilledLen == 0) { in onQueueFilled()
424 outHeader->nFilledLen = outputData.Length; in onQueueFilled()
437 outHeader->nFilledLen, mInputTimeUs, outHeader->nFlags); in onQueueFilled()
439 hexdump(outHeader->pBuffer + outHeader->nOffset, outHeader->nFilledLen); in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/amrnb/dec/
DSoftAMR.cpp297 outHeader->nFilledLen = 0; in onQueueFilled()
333 if (static_cast<size_t>(numBytesRead) > inHeader->nFilledLen) { in onQueueFilled()
355 CHECK_GE(inHeader->nFilledLen, frameSize); in onQueueFilled()
390 inHeader->nFilledLen -= numBytesRead; in onQueueFilled()
396 outHeader->nFilledLen = kNumSamplesPerFrameNB * sizeof(int16_t); in onQueueFilled()
404 outHeader->nFilledLen = kNumSamplesPerFrameWB * sizeof(int16_t); in onQueueFilled()
413 if (inHeader->nFilledLen == 0) { in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/avc/enc/
DSoftAVCEncoder.cpp492 outHeader->nFilledLen = 0; in onQueueFilled()
526 outHeader->nFilledLen = 4 + dataLength; in onQueueFilled()
528 dataLength = outHeader->nAllocLen - outHeader->nFilledLen; in onQueueFilled()
533 memcpy((uint8_t *) outHeader->pBuffer + outHeader->nFilledLen, in onQueueFilled()
535 outHeader->nFilledLen += (dataLength + 4); in onQueueFilled()
556 if (inHeader->nFilledLen > 0) { in onQueueFilled()
564 if (inHeader->nFilledLen != 8) { in onQueueFilled()
566 "(got %u bytes, expected 8)", inHeader->nFilledLen); in onQueueFilled()
574 inHeader->pBuffer + inHeader->nOffset, inHeader->nFilledLen, in onQueueFilled()
626 if (inHeader->nFilledLen > 0) { in onQueueFilled()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/
DSoftAMRNBEncoder.cpp302 if (copy > inHeader->nFilledLen) { in onQueueFilled()
303 copy = inHeader->nFilledLen; in onQueueFilled()
314 inHeader->nFilledLen -= copy; in onQueueFilled()
321 if (inHeader->nFilledLen == 0) { in onQueueFilled()
369 outHeader->nFilledLen = res; in onQueueFilled()
384 hexdump(outHeader->pBuffer + outHeader->nOffset, outHeader->nFilledLen); in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
DSoftVorbis.cpp259 size_t size = header->nFilledLen; in onQueueFilled()
313 if (inHeader->nFilledLen || !mSawInputEos) { in onQueueFilled()
314 CHECK_GE(inHeader->nFilledLen, sizeof(numPageSamples)); in onQueueFilled()
317 + inHeader->nOffset + inHeader->nFilledLen - 4, in onQueueFilled()
325 inHeader->nFilledLen -= sizeof(numPageSamples);; in onQueueFilled()
335 buf.size = inHeader ? inHeader->nFilledLen : 0; in onQueueFilled()
388 outHeader->nFilledLen = numFrames * sizeof(int16_t) * mVi->channels; in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/raw/
DSoftRaw.cpp181 CHECK_GE(outHeader->nAllocLen, inHeader->nFilledLen); in onQueueFilled()
184 inHeader->nFilledLen); in onQueueFilled()
188 outHeader->nFilledLen = inHeader->nFilledLen; in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp107 if (inHeader->nFilledLen == 0) { in onQueueFilled()
112 outHeader->nFilledLen = 0; in onQueueFilled()
126 inHeader->nFilledLen, in onQueueFilled()
150 outHeader->nFilledLen = (width * height * 3) / 2; in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/aacenc/
DSoftAACEncoder.cpp398 outHeader->nFilledLen = sizeof(mAudioSpecificConfigData); in onQueueFilled()
438 if (copy > inHeader->nFilledLen) { in onQueueFilled()
439 copy = inHeader->nFilledLen; in onQueueFilled()
454 inHeader->nFilledLen -= copy; in onQueueFilled()
462 if (inHeader->nFilledLen == 0) { in onQueueFilled()
524 outHeader->nFilledLen = nOutputBytes; in onQueueFilled()
540 hexdump(outHeader->pBuffer + outHeader->nOffset, outHeader->nFilledLen); in onQueueFilled()
DSoftAACEncoder2.cpp453 outHeader->nFilledLen = encInfo.confSize; in onQueueFilled()
493 if (copy > inHeader->nFilledLen) { in onQueueFilled()
494 copy = inHeader->nFilledLen; in onQueueFilled()
509 inHeader->nFilledLen -= copy; in onQueueFilled()
517 if (inHeader->nFilledLen == 0) { in onQueueFilled()
615 outHeader->nFilledLen = nOutputBytes; in onQueueFilled()
631 hexdump(outHeader->pBuffer + outHeader->nOffset, outHeader->nFilledLen); in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/
DSoftMPEG4Encoder.cpp379 outHeader->nFilledLen = 0; in onQueueFilled()
395 outHeader->nFilledLen = dataLength; in onQueueFilled()
413 if (inHeader->nFilledLen > 0) { in onQueueFilled()
416 if (inHeader->nFilledLen != 8) { in onQueueFilled()
418 "(got %u bytes, expected 8)", inHeader->nFilledLen); in onQueueFilled()
426 inHeader->pBuffer + inHeader->nOffset, inHeader->nFilledLen, in onQueueFilled()
485 outHeader->nFilledLen = dataLength; in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/opus/dec/
DSoftOpus.cpp335 size_t size = header->nFilledLen; in onQueueFilled()
408 outHeader->nFilledLen = 0; in onQueueFilled()
430 const uint32_t size = inHeader->nFilledLen; in onQueueFilled()
457 outHeader->nFilledLen = numFrames * sizeof(int16_t) * mHeader->channels; in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/
DSoftAVC.cpp148 inPicture.dataLen = inHeader->nFilledLen; in onQueueFilled()
253 outHeader->nFilledLen = mWidth * mHeight * 3 / 2; in drainOneOutputBuffer()
294 outHeader->nFilledLen = 0; in drainAllOutputBuffers()
/frameworks/av/media/libstagefright/codecs/hevcdec/
DSoftHEVC.cpp501 ps_dec_ip->u4_num_Bytes = inHeader->nFilledLen; in setDecodeArgs()
597 if (inHeader->nFilledLen == 0) { in onQueueFilled()
722 outHeader->nFilledLen = (mWidth * mHeight * 3) / 2; in onQueueFilled()
740 outHeader->nFilledLen = 0; in onQueueFilled()
/frameworks/av/media/libstagefright/codecs/on2/enc/
DSoftVPXEncoder.cpp669 outputBufferHeader->nFilledLen = 0; in onQueueFilled()
684 source, inputBufferHeader->nFilledLen, in onQueueFilled()
759 outputBufferHeader->nFilledLen = encoded_packet->data.frame.sz; in onQueueFilled()
/frameworks/av/media/libstagefright/omx/
DOMXNodeInstance.cpp82 (header)->nOffset, (header)->nFilledLen, (header)->nFlags, (header)->nTimeStamp
125 header->nFilledLen); in CopyFromOMX()
135 header->nFilledLen); in CopyToOMX()
957 header->nFilledLen = 0; in fillBuffer()
983 header->nFilledLen = rangeLength; in emptyBuffer()
1056 header->nFilledLen = rangeLength; in emptyDirectBuffer()
DSimpleSoftOMXComponent.cpp202 (*header)->nFilledLen = 0; in useBuffer()
517 buffer->mHeader->nFilledLen = 0; in onPortFlush()
DOMX.cpp479 msg.u.extended_buffer_data.range_length = pBuffer->nFilledLen; in OnFillBufferDone()
DGraphicBufferSource.cpp235 header, header->nAllocLen, header->nFilledLen, in codecBufferEmptied()
/frameworks/native/include/media/openmax/
DOMX_Core.h422 OMX_U32 nFilledLen; /**< number of bytes currently in the member