/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/ |
H A D | SoftMPEG4.cpp | 104 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 111 if ((inHeader->nFlags & OMX_BUFFERFLAG_EOS) && inHeader->nFilledLen == 0) { 114 notifyEmptyBufferDone(inHeader); 136 uint8_t *bitstream = inHeader->pBuffer + inHeader->nOffset; 144 if (inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) { 146 vol_size = inHeader->nFilledLen; 172 if (inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) { 176 notifyEmptyBufferDone(inHeader); [all...] |
/frameworks/av/media/libstagefright/codecs/gsm/dec/ |
H A D | SoftGSM.cpp | 185 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 190 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { 193 notifyEmptyBufferDone(inHeader); 204 if (inHeader->nFilledLen > kMaxNumSamplesPerFrame) { 205 ALOGE("input buffer too large (%ld).", inHeader->nFilledLen); 210 if(((inHeader->nFilledLen / 65) * 65) != inHeader->nFilledLen) { 211 ALOGE("input buffer not multiple of 65 (%ld).", inHeader->nFilledLen); 216 uint8_t *inputptr = inHeader->pBuffer + inHeader [all...] |
/frameworks/av/media/libstagefright/codecs/aacdec/ |
H A D | SoftAAC2.cpp | 355 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 360 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { 363 notifyEmptyBufferDone(inHeader); 405 if (inHeader->nOffset == 0) { 406 mAnchorTimeUs = inHeader->nTimeStamp; 415 const uint8_t *adtsHeader = inHeader->pBuffer + inHeader->nOffset; 418 if (inHeader->nFilledLen < 7) { 420 "Got %ld bytes.", inHeader->nFilledLen); 421 hexdump(adtsHeader, inHeader [all...] |
/frameworks/av/media/libstagefright/codecs/g711/dec/ |
H A D | SoftG711.cpp | 195 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 200 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { 203 notifyEmptyBufferDone(inHeader); 214 if (inHeader->nFilledLen > kMaxNumSamplesPerFrame) { 215 ALOGE("input buffer too large (%ld).", inHeader->nFilledLen); 221 const uint8_t *inputptr = inHeader->pBuffer + inHeader->nOffset; 226 inputptr, inHeader->nFilledLen); 230 inputptr, inHeader->nFilledLen); 233 outHeader->nTimeStamp = inHeader [all...] |
/frameworks/av/media/libstagefright/codecs/mp3dec/ |
H A D | SoftMP3.cpp | 199 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 204 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { 207 notifyEmptyBufferDone(inHeader); 230 if (inHeader->nOffset == 0) { 231 mAnchorTimeUs = inHeader->nTimeStamp; 236 inHeader->pBuffer + inHeader->nOffset; 238 mConfig->inputBufferCurrentLength = inHeader->nFilledLen; 271 mConfig->inputBufferUsedLength = inHeader->nFilledLen; 303 CHECK_GE(inHeader [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/dec/ |
H A D | SoftAMR.cpp | 287 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 292 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { 295 notifyEmptyBufferDone(inHeader); 306 if (inHeader->nOffset == 0) { 307 mAnchorTimeUs = inHeader->nTimeStamp; 311 const uint8_t *inputPtr = inHeader->pBuffer + inHeader->nOffset; 333 if (static_cast<size_t>(numBytesRead) > inHeader->nFilledLen) { 355 CHECK_GE(inHeader->nFilledLen, frameSize); 389 inHeader [all...] |
/frameworks/av/media/libstagefright/codecs/on2/dec/ |
H A D | SoftVPX.cpp | 99 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 104 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { 106 if (inHeader->nFilledLen == 0) { 109 notifyEmptyBufferDone(inHeader); 123 inHeader->pBuffer + inHeader->nOffset, 124 inHeader->nFilledLen, 156 outHeader->nTimeStamp = inHeader->nTimeStamp; 193 notifyEmptyBufferDone(inHeader); 194 inHeader [all...] |
/frameworks/av/media/libstagefright/codecs/raw/ |
H A D | SoftRaw.cpp | 176 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 181 CHECK_GE(outHeader->nAllocLen, inHeader->nFilledLen); 183 inHeader->pBuffer + inHeader->nOffset, 184 inHeader->nFilledLen); 186 outHeader->nFlags = inHeader->nFlags; 188 outHeader->nFilledLen = inHeader->nFilledLen; 189 outHeader->nTimeStamp = inHeader->nTimeStamp; 191 bool sawEOS = (inHeader->nFlags & OMX_BUFFERFLAG_EOS) != 0; 195 notifyEmptyBufferDone(inHeader); [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/ |
H A D | SoftAMRNBEncoder.cpp | 297 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 299 const void *inData = inHeader->pBuffer + inHeader->nOffset; 302 if (copy > inHeader->nFilledLen) { 303 copy = inHeader->nFilledLen; 307 mInputTimeUs = inHeader->nTimeStamp; 313 inHeader->nOffset += copy; 314 inHeader->nFilledLen -= copy; 318 inHeader->nTimeStamp += 321 if (inHeader [all...] |
/frameworks/av/media/libstagefright/codecs/vorbis/dec/ |
H A D | SoftVorbis.cpp | 295 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 300 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { 303 notifyEmptyBufferDone(inHeader); 315 CHECK_GE(inHeader->nFilledLen, sizeof(numPageSamples)); 317 inHeader->pBuffer 318 + inHeader->nOffset + inHeader->nFilledLen - 4, 325 if (inHeader->nOffset == 0) { 326 mAnchorTimeUs = inHeader->nTimeStamp; 330 inHeader [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/ |
H A D | SoftAACEncoder.cpp | 433 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 435 const void *inData = inHeader->pBuffer + inHeader->nOffset; 438 if (copy > inHeader->nFilledLen) { 439 copy = inHeader->nFilledLen; 447 mInputTimeUs = inHeader->nTimeStamp; 453 inHeader->nOffset += copy; 454 inHeader->nFilledLen -= copy; 458 inHeader->nTimeStamp += 462 if (inHeader [all...] |
H A D | SoftAACEncoder2.cpp | 415 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 417 const void *inData = inHeader->pBuffer + inHeader->nOffset; 420 if (copy > inHeader->nFilledLen) { 421 copy = inHeader->nFilledLen; 429 mInputTimeUs = inHeader->nTimeStamp; 435 inHeader->nOffset += copy; 436 inHeader->nFilledLen -= copy; 440 inHeader->nTimeStamp += 444 if (inHeader [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/ |
H A D | SoftAMRWBEncoder.cpp | 344 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 346 const void *inData = inHeader->pBuffer + inHeader->nOffset; 349 if (copy > inHeader->nFilledLen) { 350 copy = inHeader->nFilledLen; 354 mInputTimeUs = inHeader->nTimeStamp; 360 inHeader->nOffset += copy; 361 inHeader->nFilledLen -= copy; 365 inHeader->nTimeStamp += 368 if (inHeader [all...] |
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
H A D | SoftFlacEncoder.cpp | 272 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 277 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { 280 notifyEmptyBufferDone(inHeader); 292 if (inHeader->nFilledLen > kMaxInputBufferSize) { 293 ALOGE("input buffer too large (%ld).", inHeader->nFilledLen); 303 mCurrentInputTimeStamp = inHeader->nTimeStamp; 305 const unsigned nbInputFrames = inHeader->nFilledLen / (2 * mNumChannels); 306 const unsigned nbInputSamples = inHeader->nFilledLen / 2; 307 const OMX_S16 * const pcm16 = reinterpret_cast<OMX_S16 *>(inHeader->pBuffer); 341 notifyEmptyBufferDone(inHeader); [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/ |
H A D | SoftAVC.cpp | 131 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 136 header->nTimeStamp = inHeader->nTimeStamp; 137 header->nFlags = inHeader->nFlags; 147 inPicture.dataLen = inHeader->nFilledLen; 148 inPicture.pStream = inHeader->pBuffer + inHeader->nOffset; 200 notifyEmptyBufferDone(inHeader);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/ |
H A D | SoftMPEG4Encoder.cpp | 639 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 672 info.mTimeUs = inHeader->nTimeStamp; 673 info.mFlags = inHeader->nFlags; 676 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { 681 if (inHeader->nFilledLen > 0) { 684 if (inHeader->nFilledLen != 8) { 686 "(got %lu bytes, expected 8)", inHeader->nFilledLen); 692 extractGrallocData(inHeader->pBuffer + inHeader->nOffset, 702 inputData = (uint8_t *)inHeader [all...] |
/frameworks/av/media/libstagefright/codecs/avc/enc/ |
H A D | SoftAVCEncoder.cpp | 730 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local 794 info.mTimeUs = inHeader->nTimeStamp; 795 info.mFlags = inHeader->nFlags; 797 mPrevTimestampUs = inHeader->nTimeStamp; 799 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) { 803 if (inHeader->nFilledLen > 0) { 808 videoInput.coding_timestamp = (inHeader->nTimeStamp + 500) / 1000; // in ms 811 if (inHeader->nFilledLen != 8) { 813 "(got %lu bytes, expected 8)", inHeader->nFilledLen); 819 extractGrallocData(inHeader [all...] |