Lines Matching refs:buffers
338 OMX_BOOL OMXVideoEncoderAVC::ProcessCacheOperation(OMX_BUFFERHEADERTYPE **buffers) { in ProcessCacheOperation() argument
344 uint32_t encodeInfo = (uint32_t) buffers[INPORT_INDEX]->pPlatformPrivate; in ProcessCacheOperation()
353 eInfo.NotStopFrame, buffers[INPORT_INDEX]->nFlags & OMX_BUFFERFLAG_EOS); in ProcessCacheOperation()
356 …if (buffers[INPORT_INDEX]->nFilledLen == 0 && buffers[INPORT_INDEX]->nFlags & OMX_BUFFERFLAG_EOS) { in ProcessCacheOperation()
365 mBFrameList.push_front(buffers[INPORT_INDEX]); in ProcessCacheOperation()
392 if (buffers[INPORT_INDEX]->nFlags & OMX_BUFFERFLAG_EOS && i == 0 ) { in ProcessCacheOperation()
395 buffers[INPORT_INDEX]->nFlags &= ~OMX_BUFFERFLAG_EOS; in ProcessCacheOperation()
414 ports[INPORT_INDEX]->PushThisBuffer(buffers[INPORT_INDEX]); //put it at the tail in ProcessCacheOperation()
430 buffers[INPORT_INDEX]->pPlatformPrivate = (OMX_PTR) encodeInfo; in ProcessCacheOperation()
437 OMX_BUFFERHEADERTYPE **buffers, OMX_BOOL *outBufReturned) { in ProcessDataRetrieve() argument
448 outBuf.data = buffers[OUTPORT_INDEX]->pBuffer; in ProcessDataRetrieve()
449 outBuf.bufferSize = buffers[OUTPORT_INDEX]->nAllocLen; in ProcessDataRetrieve()
548 buffers[OUTPORT_INDEX]->nFilledLen = 0; in ProcessDataRetrieve()
549 buffers[OUTPORT_INDEX]->nTimeStamp = 0; in ProcessDataRetrieve()
550 buffers[OUTPORT_INDEX]->nFlags = outflags; in ProcessDataRetrieve()
552 …LOGV("emit one empty EOS OMX output buf = %p:%d, flag = 0x%08x, ts=%lld", buffers[OUTPORT_INDEX]->… in ProcessDataRetrieve()
558 buffers[OUTPORT_INDEX]->nOffset = outoffset; in ProcessDataRetrieve()
559 buffers[OUTPORT_INDEX]->nFilledLen = outfilledlen; in ProcessDataRetrieve()
560 buffers[OUTPORT_INDEX]->nTimeStamp = outtimestamp; in ProcessDataRetrieve()
561 buffers[OUTPORT_INDEX]->nFlags = outflags; in ProcessDataRetrieve()
563 … buffers[OUTPORT_INDEX]->pPlatformPrivate = (OMX_PTR) 0x00000001; //indicate it is nstop frame in ProcessDataRetrieve()
565 …LOGV("emit one OMX output buf = %p:%d, flag = 0x%08x, ts=%lld", buffers[OUTPORT_INDEX]->pBuffer, o… in ProcessDataRetrieve()
574 OMX_BUFFERHEADERTYPE **buffers, in ProcessorProcess() argument
583 if (buffers[INPORT_INDEX]) { in ProcessorProcess()
588 uint32_t encodeInfo = (uint32_t) buffers[INPORT_INDEX]->pPlatformPrivate; in ProcessorProcess()
595 if (ProcessCacheOperation(buffers)) { in ProcessorProcess()
605 inBuf.data = buffers[INPORT_INDEX]->pBuffer + buffers[INPORT_INDEX]->nOffset; in ProcessorProcess()
606 inBuf.size = buffers[INPORT_INDEX]->nFilledLen; in ProcessorProcess()
608 inBuf.timeStamp = buffers[INPORT_INDEX]->nTimeStamp; in ProcessorProcess()
610 if (inBuf.size == 0 && buffers[INPORT_INDEX]->nFlags & OMX_BUFFERFLAG_EOS) { in ProcessorProcess()
618 if (buffers[INPORT_INDEX]->nFlags & OMX_BUFFERFLAG_EOS) in ProcessorProcess()
655 oret = ProcessDataRetrieve(buffers, &OutBufReturned); in ProcessorProcess()