Searched refs:inHeader (Results 1 - 16 of 16) sorted by relevance

/frameworks/av/media/libstagefright/codecs/aacdec/
H A DSoftAAC2.cpp351 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local
356 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) {
359 notifyEmptyBufferDone(inHeader);
402 if (inHeader->nOffset == 0) {
403 mAnchorTimeUs = inHeader->nTimeStamp;
412 const uint8_t *adtsHeader = inHeader->pBuffer + inHeader->nOffset;
415 if (inHeader->nFilledLen < 7) {
417 "Got %ld bytes.", inHeader->nFilledLen);
418 hexdump(adtsHeader, inHeader
[all...]
/frameworks/av/media/libstagefright/codecs/g711/dec/
H A DSoftG711.cpp195 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 DSoftMP3.cpp184 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local
189 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) {
192 notifyEmptyBufferDone(inHeader);
215 if (inHeader->nOffset == 0) {
216 mAnchorTimeUs = inHeader->nTimeStamp;
221 inHeader->pBuffer + inHeader->nOffset;
223 mConfig->inputBufferCurrentLength = inHeader->nFilledLen;
256 mConfig->inputBufferUsedLength = inHeader->nFilledLen;
288 CHECK_GE(inHeader
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/
H A DSoftAMR.cpp287 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/raw/
H A DSoftRaw.cpp176 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 DSoftAMRNBEncoder.cpp297 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 DSoftVorbis.cpp295 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 DSoftAACEncoder.cpp433 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 DSoftAACEncoder2.cpp411 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local
413 const void *inData = inHeader->pBuffer + inHeader->nOffset;
416 if (copy > inHeader->nFilledLen) {
417 copy = inHeader->nFilledLen;
425 mInputTimeUs = inHeader->nTimeStamp;
431 inHeader->nOffset += copy;
432 inHeader->nFilledLen -= copy;
436 inHeader->nTimeStamp +=
440 if (inHeader
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/
H A DSoftAMRWBEncoder.cpp344 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/m4v_h263/dec/
H A DSoftMPEG4.cpp322 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local
329 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) {
332 notifyEmptyBufferDone(inHeader);
354 uint8_t *bitstream = inHeader->pBuffer + inHeader->nOffset;
362 if (inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) {
364 vol_size = inHeader->nFilledLen;
390 if (inHeader->nFlags & OMX_BUFFERFLAG_CODECCONFIG) {
394 notifyEmptyBufferDone(inHeader);
395 inHeader
[all...]
/frameworks/av/media/libstagefright/codecs/flac/enc/
H A DSoftFlacEncoder.cpp256 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local
261 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) {
264 notifyEmptyBufferDone(inHeader);
276 if (inHeader->nFilledLen > kMaxNumSamplesPerFrame * sizeof(FLAC__int32) * 2) {
277 ALOGE("input buffer too large (%ld).", inHeader->nFilledLen);
287 mCurrentInputTimeStamp = inHeader->nTimeStamp;
289 const unsigned nbInputFrames = inHeader->nFilledLen / (2 * mNumChannels);
290 const unsigned nbInputSamples = inHeader->nFilledLen / 2;
291 const OMX_S16 * const pcm16 = reinterpret_cast<OMX_S16 *>(inHeader->pBuffer);
324 notifyEmptyBufferDone(inHeader);
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/
H A DSoftMPEG4Encoder.cpp639 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/on2/dec/
H A DSoftVPX.cpp232 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local
237 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) {
240 notifyEmptyBufferDone(inHeader);
253 inHeader->pBuffer + inHeader->nOffset,
254 inHeader->nFilledLen,
286 outHeader->nTimeStamp = inHeader->nTimeStamp;
323 notifyEmptyBufferDone(inHeader);
324 inHeader = NULL;
/frameworks/av/media/libstagefright/codecs/avc/enc/
H A DSoftAVCEncoder.cpp730 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...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/
H A DSoftAVC.cpp312 OMX_BUFFERHEADERTYPE *inHeader = inInfo->mHeader; local
314 if (inHeader->nFlags & OMX_BUFFERFLAG_EOS) {
317 notifyEmptyBufferDone(inHeader);
324 header->nTimeStamp = inHeader->nTimeStamp;
325 header->nFlags = inHeader->nFlags;
332 inPicture.dataLen = inHeader->nFilledLen;
333 inPicture.pStream = inHeader->pBuffer + inHeader->nOffset;
385 notifyEmptyBufferDone(inHeader);

Completed in 282 milliseconds