Esempio n. 1
0
MBOOL
Pass2NodeImpl::
pushBuf(MUINT32 const data, IImageBuffer* const buf, MUINT32 const ext)
{
    Mutex::Autolock lock(mLock);

    PostBufInfo postBufData = {data, buf, ext};
    mlPostBufData.push_back(postBufData);

    MY_LOGD("size %d, data %d, buf 0x%x",
            mlPostBufData.size(),
            postBufData.data,
            postBufData.buf);

    NG_TRACE_INT("P2BufCnt", mlPostBufData.size());

    muPostFrameCnt++;
    
    if( isReadyToEnque() )
    {
        triggerLoop();
    }

    return MTRUE;
}
Esempio n. 2
0
MBOOL
StereoNodeImpl::
pushBuf(MUINT32 const data, IImageBuffer* const buf, MUINT32 const ext)
{
    Mutex::Autolock lock(mLock);
    PostBufInfo postBufData = {data, buf, ext};
    mlPostBufData.push_back(postBufData);

    muPostFrameCnt++;

    if( isReadyToEnque() )
    {
        triggerLoop();
    }

    return MTRUE;
}