示例#1
0
MBOOL
Pass2NodeImpl::
dequePass2()
{
    NG_TRACE_CALL();
    MBOOL ret = MFALSE;
    QParams dequeParams;
    Vector<Input>::const_iterator iterIn;
    Vector<Output>::const_iterator iterOut;
    //
    MY_LOGV("type(%d) cnt %d: deque", mPass2Type, muDeqFrameCnt);
    if( !mpPostProcPipe->deque(dequeParams, PASS2_TIMEOUT) )
    {
        MY_LOGE("type(%d) pass2 cnt %d: deque fail", mPass2Type, muDeqFrameCnt);
        AEE_ASSERT("ISP pass2 deque fail");
        goto lbExit;
    }

    if( !handleP2Done(dequeParams) )
    {
        MY_LOGE("handle p2 callback failed");
        goto lbExit;
    }

    ret = MTRUE;
lbExit:
    NG_TRACE_FMT_END();
    return ret;
}
MBOOL
Pass2NodeImpl::
dequePass2()
{
    CAM_TRACE_CALL();
    MBOOL ret = MFALSE;
    QParams dequeParams;
    Vector<Input>::const_iterator iterIn;
    Vector<Output>::const_iterator iterOut;
    //
    MY_LOGV("type(%d) cnt %d: deque", mPass2Type, muDeqFrameCnt);
    if( !mpPostProcPipe->deque(dequeParams, PASS2_TIMEOUT) )
    {
        MY_LOGE("type(%d) pass2 cnt %d: deque fail", mPass2Type, muDeqFrameCnt);
        aee_system_exception(
            LOG_TAG,
            NULL,
            DB_OPT_DEFAULT,
            "\nCRDISPATCH_KEY:MtkCam/P1Node:ISP pass2 deque fail");
        goto lbExit;
    }

    if( !handleP2Done(dequeParams) )
    {
        MY_LOGE("handle p2 callback failed");
        goto lbExit;
    }

    ret = MTRUE;
lbExit:
    CAM_TRACE_FMT_END();
    return ret;
}