Int32 Utils_bufDelete(Utils_BufHndl * pHndl) { Utils_queDelete(&pHndl->emptyQue); Utils_queDelete(&pHndl->fullQue); return FVID2_SOK; }
Int32 Utils_bitbufDelete(Utils_BitBufHndl * pHndl) { Int i; for (i = 0; i < pHndl->numAllocPools; i++) { Utils_queDelete(&(pHndl->emptyQue[i])); } pHndl->numAllocPools = 0; Utils_queDelete(&pHndl->fullQue); return FVID2_SOK; }
Int32 IpcFramesInLink_delete(IpcFramesInLink_Obj * pObj) { Int32 status; IPCFRAMESINLINK_INFO_LOG(pObj->tskId, "RECV:%d\tFREE:%d,DROPPED:%d,AVGLATENCY:%d", pObj->stats.recvCount, pObj->stats.freeCount, pObj->stats.droppedCount, UTILS_DIV(pObj->stats.totalRoundTrip , pObj->stats.freeCount)); #ifdef SYSTEM_DEBUG_IPC Vps_printf(" %d: IPC_FRAMES_IN : Delete in progress !!!\n", Utils_getCurTimeInMsec()); #endif status = System_ipcListMPClose(&pObj->listMPOutHndl, &pObj->listMPInHndl); UTILS_assert(status == FVID2_SOK); Utils_queDelete(&pObj->outFrameBufQue); IpcFramesInLink_deletePrdObj(pObj); #ifdef SYSTEM_DEBUG_IPC Vps_printf(" %d: IPC_FRAMES_IN : Delete Done !!!\n", Utils_getCurTimeInMsec()); #endif return IPC_FRAMES_IN_LINK_S_SUCCESS; }
static Void DisplayLink_drvDeleteRtParams(DisplayLink_Obj * pObj) { Int32 status; status = Utils_queDelete(&pObj->rtParams.freeQ); UTILS_assert(0 == status); }
static Void DisplayLink_drvDeleteFrameInfo(DisplayLink_Obj * pObj) { Int32 status; status = Utils_queDelete(&pObj->frameInfo.infoQ); UTILS_assert(status == 0); }
Int32 AlgLink_scdAlgChDelete(AlgLink_ScdObj * pObj) { AlgLink_ScdChObj *pChObj; UInt32 blockId, chId; Int32 status; for(chId=0; chId<ALG_LINK_SIMCOP_SCD_MAX_CH; chId++) { pChObj = &pObj->chObj[chId]; if(pChObj->enableScd==FALSE) continue; for(blockId=0; blockId<pObj->algPerChMemAllocPrm.numMemBlocks; blockId++) { status = Utils_memFree( pChObj->memBlockAddr[blockId], pObj->algPerChMemAllocPrm.memBlockSize[blockId] ); UTILS_assert(status==FVID2_SOK); } { FVID2_Frame *pFrame; UInt32 frameId; status = Utils_queDelete(&pChObj->freeQ); UTILS_assert(status==FVID2_SOK); /* free channel process buffer memory */ for(frameId=0; frameId<ALG_LINK_MAX_PROCESS_FRAMES; frameId++) { pFrame = &pChObj->processFrames[frameId]; status = Utils_memFree( pFrame->addr[0][0], pChObj->processFrameSize ); UTILS_assert(status==FVID2_SOK); } } } return FVID2_SOK; }
Int32 IpcOutM3Link_delete(IpcOutM3Link_Obj * pObj) { #ifdef SYSTEM_DEBUG_IPC Vps_printf(" %d: IPC_OUT_M3 : Delete in progress !!!\n", Utils_getCurTimeInMsec()); #endif Utils_queDelete(&pObj->listElemQue); IpcOutM3Link_deletePrdObj(pObj); #ifdef SYSTEM_DEBUG_IPC Vps_printf(" %d: IPC_OUT_M3 : Delete Done !!!\n", Utils_getCurTimeInMsec()); #endif return FVID2_SOK; }
Int32 AlgLink_scdAlgDelete(AlgLink_ScdObj * pObj) { Int32 status; AlgLink_scdAlgProcessTskSendCmd(pObj, SYSTEM_CMD_STOP); status = Utils_queDelete(&pObj->processQ); UTILS_assert(status==FVID2_SOK); status = Utils_dmaDeleteCh(&pObj->dmaCh); UTILS_assert(status==FVID2_SOK); status = SCD_close(&pObj->algObj); UTILS_assert(status==FVID2_SOK); AlgLink_scdAlgChDelete(pObj); AlgLink_scdAlgFreeMem(pObj); return FVID2_SOK; }