Hi,
I have modified the vip_single_cam_object_detection2 usecase to capture from iss sensor.While running the use case I'm facing error as follows.
[IPU1-0] 6.977215 s: Assertion @ Line: 111 in system_linkApi_local.c: linkId < SYSTEM_LINK_ID_MAX : failed !!!
[IPU1-0] 6.977703 s: Assertion @ Line: 111 in system_linkApi_local.c: linkId < SYSTEM_LINK_ID_MAX : failed !!!
I could able to see related post with same error but error still exists.
Attached are the associated file for my use case.Please help me to resolve this issue.
/****************************************************************************** Copyright (c) [2012 - 2017] Texas Instruments Incorporated All rights reserved not granted herein. Limited License. Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive license under copyrights and patents it now or hereafter owns or controls to make, have made, use, import, offer to sell and sell ("Utilize") this software subject to the terms herein. With respect to the foregoing patent license, such license is granted solely to the extent that any such patent is necessary to Utilize the software alone. The patent license shall not apply to any combinations which include this software, other than combinations with devices manufactured by or for TI ("TI Devices"). No hardware patent is licensed hereunder. Redistributions must preserve existing copyright notices and reproduce this license (including the above copyright notice and the disclaimer and (if applicable) source code license limitations below) in the documentation and/or other materials provided with the distribution Redistribution and use in binary form, without modification, are permitted provided that the following conditions are met: * No reverse engineering, decompilation, or disassembly of this software is permitted with respect to any software provided in binary form. * Any redistribution and use are licensed by TI for use only with TI Devices. * Nothing shall obligate TI to provide you with source code for the software licensed and provided to you in object code. If software source code is provided to you, modification and redistribution of the source code are permitted provided that the following conditions are met: * Any redistribution and use of the source code, including any resulting derivative works, are licensed by TI for use only with TI Devices. * Any redistribution and use of any object code compiled from the source code and any resulting derivative works, are licensed by TI for use only with TI Devices. Neither the name of Texas Instruments Incorporated nor the names of its suppliers may be used to endorse or promote products derived from this software without specific prior written permission. DISCLAIMER. THIS SOFTWARE IS PROVIDED BY TI AND TI�S LICENSORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TI AND TI�S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ /******************************************************************************* * INCLUDE FILES ******************************************************************************* */ #include "chains_issObjectDetect_priv.h" #include <src/include/chains_common.h> #include <src/rtos/iss/include/iss_sensors.h> #include <src/rtos/iss/include/iss_utils.h> #include <src/rtos/iss/include/app_util_iss.h> #define ALG_AEWB_MEM_SIZE (896*1024) /* Uncomment below to enable 1MP processing mode on object detect */ #define ENABLE_1MP_MODE #define CAPTURE_SENSOR_WIDTH (1280) #define CAPTURE_SENSOR_HEIGHT (720) #define FEATUREPLANE_ALG_WIDTH (1280) #define FEATUREPLANE_ALG_HEIGHT ( 720) #define ENABLE_ROI_PERCENTAGE (32) #define NUM_SCALES (14) #define NUM_STEPS (4) #define FRAMES_DUMP_TO_MEMORY_ENABLE (0) #define FRAMES_DUMP_TO_MEMORY_ADDR (0xA1000000) #define FRAMES_DUMP_TO_MEMORY_SIZE (496*MB) static char usecase_menu[] = { "\r\n " "\r\n Select use-case options," "\r\n ------------------------" "\r\n 1: Enable Pedestrain Detect (PD)" "\r\n 2: Enable Traffic Sign Regonition (TSR)" "\r\n 3: Enable Vehicle Detect (VD)" "\r\n 4: Enable PD+TSR+VD" "\r\n " "\r\n Enter Choice: " "\r\n " }; /** ******************************************************************************* * * \brief SingleCameraObjectDetectObject * * This structure contains all the LinksId's and create Params. * The same is passed to all create, start, stop functions. * ******************************************************************************* */ typedef struct { chains_issObjectDetectObj ucObj; IssM2mSimcopLink_ConfigParams simcopConfig; vpsissldcConfig_t ldcCfg; vpsissvtnfConfig_t vtnfCfg; UInt32 captureOutWidth; UInt32 captureOutHeight; UInt32 displayWidth; UInt32 displayHeight; UInt32 startX; UInt32 startY; Bool enablePD; Bool enableTSR; Bool enableVD; Bool bypassVtnf; Bool bypassLdc; IssM2mSimcopLink_OperatingMode simcopMode; AppUtils_Obj appSensInfo; Chains_Ctrl *chainsCfg; } Chains_issObjectDetectAppObj; /** ******************************************************************************* * * \brief Set PD draw parameters * * \param pPrm [IN] algorithm parameters * ******************************************************************************* */ Void chains_issObjectDetect_SetObjectDrawPrms( Chains_issObjectDetectAppObj *pObj, AlgorithmLink_ObjectDrawCreateParams *pPrm, UInt32 width, UInt32 height) { pPrm->imgFrameStartX = 0; pPrm->imgFrameStartY = 0; pPrm->imgFrameWidth = width; pPrm->imgFrameHeight = height; pPrm->numOutBuffers = 3; pPrm->objectRectThickness = 1; pPrm->objectTsrDrawTrafficSigns = TRUE; } /** ******************************************************************************* * * \brief Set Feature Plane Compute Alg parameters * * \param pPrm [IN] algorithm parameters * ******************************************************************************* */ Void chains_issObjectDetect_SetImgPyramidAlgPrms( Chains_issObjectDetectAppObj *pObj, AlgorithmLink_ImgPyramidCreateParams *pPrm, UInt32 width, UInt32 height) { pPrm->numOutBuffers = 3; #ifdef ENABLE_1MP_MODE pPrm->enableRoi = TRUE; #else pPrm->enableRoi = FALSE; #endif pPrm->roiWidth = width; pPrm->roiHeight = SystemUtils_align( (height*ENABLE_ROI_PERCENTAGE)/100, 2); pPrm->roiStartX = 0; pPrm->roiStartY = SystemUtils_align( (height - pPrm->roiHeight)/2, 2); pPrm->numScales = NUM_SCALES; pPrm->scaleSteps = NUM_STEPS; #ifdef TDA3XX_BUILD pPrm->rszModule = ALGORITHM_LINK_IMG_PYRAMID_RSZ_MODULE_ISS; #else pPrm->rszModule = ALGORITHM_LINK_IMG_PYRAMID_RSZ_MODULE_VPE; #endif } /** ******************************************************************************* * * \brief Set Feature Plane Compute Alg parameters * * \param pPrm [IN] algorithm parameters * ******************************************************************************* */ Void chains_issObjectDetect_SetFPComputeAlgPrms( Chains_issObjectDetectAppObj *pObj, AlgorithmLink_FPComputeCreateParams *pPrm, UInt32 width, UInt32 height) { pPrm->imgFrameHeight = height; pPrm->imgFrameWidth = width; pPrm->numOutBuffers = 3; } /** ******************************************************************************* * * \brief Set Feature Plane Classify Alg parameters * * \param pPrm [IN] algorithm parameters * ******************************************************************************* */ Void chains_issObjectDetect_SetObjectDetectPrm( Chains_issObjectDetectAppObj *pObj, AlgorithmLink_ObjectDetectionCreateParams *pPrm, UInt32 width, UInt32 height ) { pPrm->numOutBuffers = 3; pPrm->enablePD = pObj->enablePD; pPrm->enableTSR = pObj->enableTSR; pPrm->enableVD = pObj->enableVD; pPrm->imgFrameWidth = width; pPrm->imgFrameHeight = height; } /** ******************************************************************************* * * \brief Set Feature Plane Classify Alg parameters * * \param pPrm [IN] algorithm parameters * ******************************************************************************* */ Void chains_issObjectDetect_SetObjectClassificationPrm( Chains_issObjectDetectAppObj *pObj, AlgorithmLink_ObjectClassificationCreateParams *pPrm, UInt32 width, UInt32 height ) { pPrm->numOutBuffers = 3; pPrm->imgFrameWidth = width; pPrm->imgFrameHeight = height; pPrm->numScales = NUM_SCALES; } /** ******************************************************************************* * * \brief Set Sync Link Create Parameters * * This function is used to set the sync params. * It is called in Create function. It is advisable to have * Chains_VipObjectDetection_ResetLinkPrm prior to set params * so all the default params get set. * * \param pPrm [OUT] SyncLink_CreateParams * ******************************************************************************* */ Void chains_issObjectDetect_SetSyncPrm(SyncLink_CreateParams *pPrm) { pPrm->syncDelta = 1; pPrm->syncThreshold = 0xFFFF; } /** ******************************************************************************* * * \brief Set frame-rate to a fixed value instead of capture frame-rate * ******************************************************************************* */ Void chains_issObjectDetect_SetFrameRatePrms( Chains_issObjectDetectAppObj *pObj) { IpcLink_FrameRateParams frameRatePrms; frameRatePrms.chNum = 0; frameRatePrms.inputFrameRate = 30; frameRatePrms.outputFrameRate = 30; System_linkControl( pObj->ucObj.IPCOut_IPU1_0_EVE1_0LinkID, IPC_OUT_LINK_CMD_SET_FRAME_RATE, &frameRatePrms, sizeof(frameRatePrms), TRUE ); } Void chains_issObjectDetect_SetMemAllocInfo( Chains_issObjectDetectAppObj *pObj) { UInt32 align = SYSTEM_BUFFER_ALIGNMENT; /* 32 byte alignment*/ IssCaptureLink_CreateParams *pIssCapturePrm; IssM2mIspLink_CreateParams *pIssM2mIspPrm; IssRszLink_CreateParams *pIssRszPrm; IssM2mSimcopLink_CreateParams *pIssM2mSimcopPrm; AlgorithmLink_IssAewbCreateParams *pAlg_IssAewbPrm; pIssCapturePrm = &pObj->ucObj.IssCapturePrm; pIssM2mIspPrm = &pObj->ucObj.IssM2mIspPrm; pIssRszPrm = &pObj->ucObj.IssM2mResizerPrm; pIssM2mSimcopPrm = &pObj->ucObj.IssM2mSimcopPrm; pAlg_IssAewbPrm = &pObj->ucObj.Alg_IssAewbPrm; pIssCapturePrm->memAllocInfo.memSize = SystemUtils_align(pObj->captureOutWidth, align) * pObj->captureOutHeight * 2 /* 16-bit per pixel */ * (pIssCapturePrm->outParams[0].numOutBuf+1) /* +1 for RAW data dump */ ; pAlg_IssAewbPrm->memAllocInfo.memSize = ALG_AEWB_MEM_SIZE; pIssM2mIspPrm->memAllocInfo.memSize = 0; if(pIssM2mIspPrm->channelParams[0].enableOut[ISSM2MISP_LINK_OUTPUTQUE_IMAGE_RSZ_A]) { #ifdef ISS_ENABLE_DEBUG_TAPS /* RSZ A output */ pIssM2mIspPrm->memAllocInfo.memSize += SystemUtils_align(pIssM2mIspPrm->channelParams[0].outParams.widthRszA, align) * pIssM2mIspPrm->channelParams[0].outParams.heightRszA * 2 /* YUV420/422/RAW */ * pIssM2mIspPrm->channelParams[0].numBuffersPerCh ; #else /* RSZ A output */ pIssM2mIspPrm->memAllocInfo.memSize += SystemUtils_align(pIssM2mIspPrm->channelParams[0].outParams.widthRszA, align) * pIssM2mIspPrm->channelParams[0].outParams.heightRszA * 1.5 /* YUV420SP */ * pIssM2mIspPrm->channelParams[0].numBuffersPerCh ; #endif } if( pIssM2mIspPrm->channelParams[0].operatingMode == ISSM2MISP_LINK_OPMODE_2PASS_WDR ) { /* Intermediate buffer in 2 pass WDR mode */ pIssM2mIspPrm->memAllocInfo.memSize += SystemUtils_align(pObj->captureOutWidth, align) * pObj->captureOutHeight * 2 /* 16-bit per pixel */ ; } if( pIssM2mIspPrm->channelParams[0].operatingMode == ISSM2MISP_LINK_OPMODE_2PASS_WDR_LINE_INTERLEAVED ) { /* Intermediate buffer in 2 pass WDR mode */ pIssM2mIspPrm->memAllocInfo.memSize += SystemUtils_align(pIssM2mIspPrm->channelParams[0].wdrOffsetPrms.width, align) * pIssM2mIspPrm->channelParams[0].wdrOffsetPrms.height * 2 /* 16-bit per pixel */ ; } if (pIssM2mIspPrm->allocBufferForDump) { /* For Dumping Output frame */ pIssM2mIspPrm->memAllocInfo.memSize += SystemUtils_align(pObj->captureOutWidth, align) * pObj->captureOutHeight * 2 /* 16-bit per pixel */ ; } if(pIssM2mIspPrm->channelParams[0].enableOut[ISSM2MISP_LINK_OUTPUTQUE_IMAGE_RSZ_B]) { /* RSZ B output */ pIssM2mIspPrm->memAllocInfo.memSize += SystemUtils_align(pIssM2mIspPrm->channelParams[0].outParams.widthRszB, align) * pIssM2mIspPrm->channelParams[0].outParams.heightRszB * 1.5 /* YUV420SP */ * pIssM2mIspPrm->channelParams[0].numBuffersPerCh ; } if(pIssM2mIspPrm->channelParams[0].enableOut[ISSM2MISP_LINK_OUTPUTQUE_H3A]) { /* H3A output */ pIssM2mIspPrm->memAllocInfo.memSize += ((pIssM2mIspPrm->channelParams[0].outParams.widthRszA/ pIssM2mIspPrm->channelParams[0].outParams.winWidthH3a)+1) * ((pIssM2mIspPrm->channelParams[0].outParams.heightRszA/ pIssM2mIspPrm->channelParams[0].outParams.winHeightH3a)+1) * ( sizeof(IssAwebH3aOutSumModeOverlay) + sizeof(IssAwebH3aOutUnsatBlkCntOverlay) ) * pIssM2mIspPrm->channelParams[0].numBuffersPerCh ; } /* To support WDR, two sets of statistics must be produced, one for short exposure and the other one for long exposure that's why there is a factor 2 */ if(pIssM2mIspPrm->channelParams[0].enableOut[ISSM2MISP_LINK_OUTPUTQUE_H3A_AF]) { pIssM2mIspPrm->memAllocInfo.memSize += SystemUtils_align(2*pIssM2mIspPrm->channelParams[0].outParams.paxelNumHaf *pIssM2mIspPrm->channelParams[0].outParams.paxelNumVaf*sizeof(IssAfH3aOutOverlay), 128U) /* DSP cache requires 128 bytes alignment */ *pIssM2mIspPrm->channelParams[0].numBuffersPerCh; } pIssRszPrm->memAllocInfo.memSize = SystemUtils_align(pIssRszPrm->channelParams[0].outParams.widthRszA, align) * pIssRszPrm->channelParams[0].outParams.heightRszA * 1.5 * pIssRszPrm->channelParams[0].numBuffersPerCh ; pIssM2mSimcopPrm->memAllocInfo.memSize = SystemUtils_align(pIssM2mIspPrm->channelParams[0].outParams.widthRszA, align) * pIssM2mIspPrm->channelParams[0].outParams.heightRszA * 1.5 * (pIssM2mSimcopPrm->channelParams[0].numBuffersPerCh+1) /* +1 for YUV data dump */ ; pIssCapturePrm->memAllocInfo.memAddr = (UInt32)Utils_memAlloc( UTILS_HEAPID_DDR_CACHED_SR, pIssCapturePrm->memAllocInfo.memSize, align ); UTILS_assert(pIssCapturePrm->memAllocInfo.memAddr!=NULL); pAlg_IssAewbPrm->memAllocInfo.memAddr = (UInt32)Utils_memAlloc( UTILS_HEAPID_DDR_CACHED_SR, pAlg_IssAewbPrm->memAllocInfo.memSize, align ); UTILS_assert(pAlg_IssAewbPrm->memAllocInfo.memAddr!=NULL); pIssM2mIspPrm->memAllocInfo.memAddr = (UInt32)Utils_memAlloc( UTILS_HEAPID_DDR_CACHED_SR, pIssM2mIspPrm->memAllocInfo.memSize, align ); UTILS_assert(pIssM2mIspPrm->memAllocInfo.memAddr!=NULL); pIssRszPrm->memAllocInfo.memAddr = (UInt32)Utils_memAlloc( UTILS_HEAPID_DDR_CACHED_SR, pIssRszPrm->memAllocInfo.memSize, align ); UTILS_assert(pIssRszPrm->memAllocInfo.memAddr!=NULL); pIssM2mSimcopPrm->memAllocInfo.memAddr = (UInt32)Utils_memAlloc( UTILS_HEAPID_DDR_CACHED_SR, pIssM2mSimcopPrm->memAllocInfo.memSize, align ); UTILS_assert(pIssM2mSimcopPrm->memAllocInfo.memAddr!=NULL); } /* * This function free's memory allocated by the use-case, if any */ Void chains_issObjectDetect_FreeMemory( Chains_issObjectDetectAppObj *pObj) { Int32 status; IssCaptureLink_CreateParams *pIssCapturePrm; IssM2mIspLink_CreateParams *pIssM2mIspPrm; IssRszLink_CreateParams *pIssRszPrm; IssM2mSimcopLink_CreateParams *pIssM2mSimcopPrm; AlgorithmLink_IssAewbCreateParams *pAlg_IssAewbPrm; pIssCapturePrm = &pObj->ucObj.IssCapturePrm; pIssM2mIspPrm = &pObj->ucObj.IssM2mIspPrm; pIssRszPrm = &pObj->ucObj.IssM2mResizerPrm; pIssM2mSimcopPrm = &pObj->ucObj.IssM2mSimcopPrm; pAlg_IssAewbPrm = &pObj->ucObj.Alg_IssAewbPrm; if(pIssCapturePrm->memAllocInfo.memAddr) { status = Utils_memFree( UTILS_HEAPID_DDR_CACHED_SR, (Ptr)pIssCapturePrm->memAllocInfo.memAddr, pIssCapturePrm->memAllocInfo.memSize ); UTILS_assert(status==0); } if(pAlg_IssAewbPrm->memAllocInfo.memAddr) { status = Utils_memFree( UTILS_HEAPID_DDR_CACHED_SR, (Ptr)pAlg_IssAewbPrm->memAllocInfo.memAddr, pAlg_IssAewbPrm->memAllocInfo.memSize ); UTILS_assert(status==0); } if(pIssM2mIspPrm->memAllocInfo.memAddr) { status = Utils_memFree( UTILS_HEAPID_DDR_CACHED_SR, (Ptr)pIssM2mIspPrm->memAllocInfo.memAddr, pIssM2mIspPrm->memAllocInfo.memSize ); UTILS_assert(status==0); } if(pIssRszPrm->memAllocInfo.memAddr) { status = Utils_memFree( UTILS_HEAPID_DDR_CACHED_SR, (Ptr)pIssRszPrm->memAllocInfo.memAddr, pIssRszPrm->memAllocInfo.memSize ); UTILS_assert(status==0); } if(pIssM2mSimcopPrm->memAllocInfo.memAddr) { status = Utils_memFree( UTILS_HEAPID_DDR_CACHED_SR, (Ptr)pIssM2mSimcopPrm->memAllocInfo.memAddr, pIssM2mSimcopPrm->memAllocInfo.memSize ); UTILS_assert(status==0); } } Void chains_issObjectDetect_SetIssRszPrms( IssRszLink_CreateParams *issRszPrms, UInt32 outWidth, UInt32 outHeight) { IssRszLink_ChannelParams *chPrms; chPrms = issRszPrms->channelParams; chPrms->enableOut[0U] = TRUE; chPrms->outParams.heightRszA = outHeight; chPrms->outParams.widthRszA = outWidth; chPrms->outParams.dataFormat = SYSTEM_DF_YUV420SP_UV; } Void chains_issObjectDetect_SetDisplayPrms( DisplayLink_CreateParams *pPrm_Video, DisplayLink_CreateParams *pPrm_Grpx, DisplayLink_CreateParams *pPrm_VideoRszB, Chains_DisplayType displayType, UInt32 displayWidth, UInt32 displayHeight, UInt32 captureWidth, UInt32 captureHeight) { if(pPrm_Video) { if((displayType == CHAINS_DISPLAY_TYPE_SDTV_NTSC) || (displayType == CHAINS_DISPLAY_TYPE_SDTV_PAL)) { pPrm_Video->displayScanFormat = SYSTEM_SF_INTERLACED; } pPrm_Video->rtParams.tarWidth = displayWidth; pPrm_Video->rtParams.tarHeight = displayHeight; pPrm_Video->rtParams.posX = 0; pPrm_Video->rtParams.posY = 0; pPrm_Video->displayId = DISPLAY_LINK_INST_DSS_VID1; } if(pPrm_VideoRszB) { if((displayType == CHAINS_DISPLAY_TYPE_SDTV_NTSC) || (displayType == CHAINS_DISPLAY_TYPE_SDTV_PAL)) { pPrm_VideoRszB->displayScanFormat = SYSTEM_SF_INTERLACED; } pPrm_VideoRszB->rtParams.tarWidth = displayWidth; pPrm_VideoRszB->rtParams.tarHeight = displayHeight; pPrm_VideoRszB->rtParams.posX = 0; pPrm_VideoRszB->rtParams.posY = 0; pPrm_VideoRszB->displayId = DISPLAY_LINK_INST_DSS_VID2; } if(pPrm_Grpx) { if((displayType == CHAINS_DISPLAY_TYPE_SDTV_NTSC) || (displayType == CHAINS_DISPLAY_TYPE_SDTV_PAL)) { pPrm_Grpx->displayScanFormat = SYSTEM_SF_INTERLACED; } pPrm_Grpx->displayId = DISPLAY_LINK_INST_DSS_GFX1; } } /** ******************************************************************************* * * \brief Set link Parameters * * It is called in Create function of the auto generated use-case file. * * \param pUcObj [IN] Auto-generated usecase object * \param appObj [IN] Application specific object * ******************************************************************************* */ Void chains_issObjectDetect_SetAppPrms(chains_issObjectDetectObj *pUcObj, Void *appObj) { Chains_issObjectDetectAppObj *pObj = (Chains_issObjectDetectAppObj*)appObj; ChainsCommon_GetDisplayWidthHeight( pObj->chainsCfg->displayType, &pObj->displayWidth, &pObj->displayHeight ); pObj->simcopMode = ISSM2MSIMCOP_LINK_OPMODE_LDC_VTNF; pObj->bypassVtnf = FALSE; /* bypassLdc should be set to FALSE if you have fish eye lens */ pObj->bypassLdc = TRUE; /* Initialize Simcop Pointers */ pObj->simcopConfig.ldcConfig = &pObj->ldcCfg; pObj->simcopConfig.vtnfConfig = &pObj->vtnfCfg; strncpy(pObj->appSensInfo.sensorName, SENSOR_OMNIVISION_OV10640_CSI2, ISS_SENSORS_MAX_NAME); pObj->appSensInfo.numCh = 1; pObj->appSensInfo.ispOpMode = pObj->chainsCfg->ispOpMode; pObj->appSensInfo.simcopOpMode = pObj->simcopMode; pObj->appSensInfo.numCSI2Inst = 1; appCreateISSSensor(&pObj->appSensInfo); appInitIssCaptParams(&pObj->appSensInfo, pUcObj->IssCaptureLinkID, &pUcObj->IssCapturePrm); appInitIssIspParams(&pObj->appSensInfo, pUcObj->IssM2mIspLinkID, &pUcObj->IssM2mIspPrm); appInitIssSimcopParams(&pObj->appSensInfo, pUcObj->IssM2mSimcopLinkID, &pUcObj->IssM2mSimcopPrm); appInitIssAewbParams(&pObj->appSensInfo, pUcObj->Alg_IssAewbLinkID, &pUcObj->Alg_IssAewbPrm); pUcObj->IssM2mIspPrm.allocBufferForDump = TRUE; pUcObj->IssCapturePrm.allocBufferForRawDump = TRUE; /* Disable Resizer B */ pUcObj->IssM2mIspPrm.channelParams[0].enableOut[ ISSM2MISP_LINK_OUTPUTQUE_IMAGE_RSZ_B] = 0; ChainsCommon_SetGrpxSrcPrms(&pUcObj->GrpxSrcPrm, pObj->displayWidth, pObj->displayHeight ); chains_issObjectDetect_SetIssRszPrms( &pUcObj->IssM2mResizerPrm, ((pObj->displayWidth/3) & ~0x1), /* Even value needed */ (pObj->displayHeight/3)); /* Resizer B output will be shown as 1/3rd of display size */ pUcObj->IssM2mIspPrm.channelParams[0u].outParams.widthRszB = (pObj->displayWidth / 3) & (~0x1U); pUcObj->IssM2mIspPrm.channelParams[0u].outParams.heightRszB = (pObj->displayHeight / 3) & (~0x1U); /* Display requires around 4 buffers for 60fps chain, so increasing simcop output buffers to 4 */ pUcObj->IssM2mSimcopPrm.channelParams[0u].numBuffersPerCh = 4; pUcObj->IssM2mResizerPrm.channelParams[0u].numBuffersPerCh = 4U; chains_issObjectDetect_SetImgPyramidAlgPrms( pObj, &pUcObj->Alg_ImgPyramidPrm, FEATUREPLANE_ALG_WIDTH, FEATUREPLANE_ALG_HEIGHT ); chains_issObjectDetect_SetFPComputeAlgPrms( pObj, &pUcObj->Alg_FPComputePrm, FEATUREPLANE_ALG_WIDTH, FEATUREPLANE_ALG_HEIGHT ); chains_issObjectDetect_SetObjectDetectPrm( pObj, &pUcObj->Alg_ObjectDetectionPrm, FEATUREPLANE_ALG_WIDTH, FEATUREPLANE_ALG_HEIGHT ); chains_issObjectDetect_SetObjectClassificationPrm( pObj, &pUcObj->Alg_ObjectClassificationPrm, FEATUREPLANE_ALG_WIDTH, FEATUREPLANE_ALG_HEIGHT ); chains_issObjectDetect_SetSyncPrm( &pUcObj->Sync_objectDetectPrm ); chains_issObjectDetect_SetSyncPrm( &pUcObj->Sync_algPrm ); chains_issObjectDetect_SetObjectDrawPrms( pObj, &pUcObj->Alg_ObjectDrawPrm, FEATUREPLANE_ALG_WIDTH, FEATUREPLANE_ALG_HEIGHT ); chains_issObjectDetect_SetMemAllocInfo(pObj); chains_issObjectDetect_SetDisplayPrms( &pUcObj->Display_algPrm, &pUcObj->Display_GrpxPrm, NULL, pObj->chainsCfg->displayType, pObj->displayWidth, pObj->displayHeight, pUcObj->IssM2mIspPrm.channelParams[0U].outParams.widthRszA, pUcObj->IssM2mIspPrm.channelParams[0U].outParams.heightRszA); ChainsCommon_StartDisplayCtrl( pObj->chainsCfg->displayType, pObj->displayWidth, pObj->displayHeight ); } Void chains_issObjectDetect_SetIspConfig( Chains_issObjectDetectAppObj *pObj) { appSetDefaultIspParams(&pObj->appSensInfo); appSetIspParamsFromDCC(&pObj->appSensInfo); } Void chains_issObjectDetect_SetSimcopConfig( Chains_issObjectDetectAppObj *pObj) { IssM2mSimcopLink_ConfigParams_Init(&pObj->simcopConfig); pObj->simcopConfig.ldcConfig = &pObj->ldcCfg; pObj->simcopConfig.vtnfConfig = &pObj->vtnfCfg; IssUtils_InitSimcopConfig( &pObj->simcopConfig, pObj->bypassLdc, pObj->bypassVtnf); IssUtils_SetimcopLdcVtnfRtConfig( &pObj->ldcCfg, &pObj->vtnfCfg, pObj->bypassLdc, pObj->bypassVtnf); /* MUST be called after link create and before link start */ System_linkControl( pObj->ucObj.IssM2mSimcopLinkID, ISSM2MSIMCOP_LINK_CMD_SET_SIMCOPCONFIG, &pObj->simcopConfig, sizeof(pObj->simcopConfig), TRUE); } /** ******************************************************************************* * * \brief Start the capture display Links * * Function sends a control command to capture and display link to * to Start all the required links . Links are started in reverce * order as information of next link is required to connect. * System_linkStart is called with LinkId to start the links. * * \param pObj [IN] Chains_issObjectDetectAppObj * * \return SYSTEM_LINK_STATUS_SOK on success * ******************************************************************************* */ Void chains_issObjectDetect_StartApp(Chains_issObjectDetectAppObj *pObj) { Chains_memPrintHeapStatus(); /* Sets the Simcop Config also */ chains_issObjectDetect_SetIspConfig(pObj); chains_issObjectDetect_SetSimcopConfig(pObj); appStartISSSensor(&pObj->appSensInfo,0); ChainsCommon_StartDisplayDevice(pObj->chainsCfg->displayType); chains_issObjectDetect_Start(&pObj->ucObj); Chains_prfLoadCalcEnable(TRUE, FALSE, FALSE); } /** ******************************************************************************* * * \brief Delete the capture display Links * * Function sends a control command to capture and display link to * to delete all the prior created links * System_linkDelete is called with LinkId to delete the links. * * \param pObj [IN] Chains_issObjectDetectAppObj * ******************************************************************************* */ Void chains_issObjectDetect_StopAndDeleteApp(Chains_issObjectDetectAppObj *pObj) { chains_issObjectDetect_Stop(&pObj->ucObj); chains_issObjectDetect_Delete(&pObj->ucObj); chains_issObjectDetect_FreeMemory(pObj); ChainsCommon_StopDisplayCtrl(); appStopISSSensor(&pObj->appSensInfo); appDeleteISSSensor(&pObj->appSensInfo); ChainsCommon_StopDisplayCtrl(); ChainsCommon_StopCaptureDevice(pObj->chainsCfg->captureSrc); ChainsCommon_StopDisplayDevice(pObj->chainsCfg->displayType); /* Print the HWI, SWI and all tasks load */ /* Reset the accumulated timer ticks */ Chains_prfLoadCalcEnable(FALSE, TRUE, TRUE); } Void chains_issObjectDetect_SelectOption(Chains_issObjectDetectAppObj *pObj) { Bool done = FALSE; char ch; while(!done) { Vps_printf(usecase_menu); ch = Chains_readChar(); switch(ch) { case '1': pObj->enablePD = TRUE; pObj->enableTSR = FALSE; pObj->enableVD = FALSE; done = TRUE; break; case '2': pObj->enablePD = FALSE; pObj->enableTSR = TRUE; pObj->enableVD = FALSE; done = TRUE; break; case '3': pObj->enablePD = FALSE; pObj->enableTSR = FALSE; pObj->enableVD = TRUE; done = TRUE; break; case '4': pObj->enablePD = TRUE; pObj->enableTSR = TRUE; pObj->enableVD = TRUE; done = TRUE; break; default: Vps_printf("\nUnsupported option '%c'. Please try again\n", ch); break; } } } /** ******************************************************************************* * * \brief Single Channel Capture Display usecase function * * This functions executes the create, start functions * * Further in a while loop displays run time menu and waits * for user inputs to print the statistics or to end the demo. * * Once the user inputs end of demo stop and delete * functions are executed. * * \param chainsCfg [IN] Chains_Ctrl * ******************************************************************************* */ Void chains_issObjectDetect(Chains_Ctrl *chainsCfg) { char ch; UInt32 done = FALSE; Int32 status = SYSTEM_LINK_STATUS_SOK; Chains_issObjectDetectAppObj chainsObj; chains_issObjectDetectObj *pObj; pObj = &chainsObj.ucObj; AlgorithmLink_ImgPyramidImgPyramidInfoControlParams imgPyramidCtrlPrms; chainsObj.enablePD = TRUE; chainsObj.enableTSR = TRUE; chainsObj.enableVD = TRUE; chainsObj.bypassVtnf = 0; /* KW error fix */ chainsObj.bypassLdc = 0; /* KW error fix */ chainsObj.chainsCfg = chainsCfg; chains_issObjectDetect_SelectOption(&chainsObj); imgPyramidCtrlPrms.baseClassControl.controlCmd = ALGORITHM_LINK_IMAGE_PYRAMID_CMD_GET_PYRAMID_INFO; imgPyramidCtrlPrms.baseClassControl.size = sizeof(AlgorithmLink_ImgPyramidImgPyramidInfoControlParams); status = System_linkControl( pObj->Alg_ImgPyramidLinkID, ALGORITHM_LINK_CMD_CONFIG, &imgPyramidCtrlPrms, sizeof(AlgorithmLink_ImgPyramidImgPyramidInfoControlParams), TRUE); imgPyramidCtrlPrms.baseClassControl.controlCmd = ALGORITHM_LINK_FPCOMPUTE_CMD_CREATE_ALG; imgPyramidCtrlPrms.baseClassControl.size = sizeof(AlgorithmLink_ImgPyramidImgPyramidInfoControlParams); status = System_linkControl( pObj->Alg_FPComputeLinkID, ALGORITHM_LINK_CMD_CONFIG, &imgPyramidCtrlPrms, sizeof(AlgorithmLink_ImgPyramidImgPyramidInfoControlParams), TRUE); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); imgPyramidCtrlPrms.baseClassControl.controlCmd = ALGORITHM_LINK_OBJECTCLASSIFICATION_CMD_CREATE_ALG; imgPyramidCtrlPrms.baseClassControl.size = sizeof(AlgorithmLink_ImgPyramidImgPyramidInfoControlParams); status = System_linkControl( pObj->Alg_ObjectClassificationLinkID, ALGORITHM_LINK_CMD_CONFIG, &imgPyramidCtrlPrms, sizeof(AlgorithmLink_ImgPyramidImgPyramidInfoControlParams), TRUE); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); chains_issObjectDetect_Create(&chainsObj.ucObj, &chainsObj); chains_issObjectDetect_StartApp(&chainsObj); while(!done) { ch = Chains_menuRunTime(); switch(ch) { case '0': done = TRUE; break; case 'p': case 'P': ChainsCommon_PrintStatistics(); chains_issObjectDetect_printStatistics(&chainsObj.ucObj); break; default: Vps_printf("\nUnsupported option '%c'. Please try again\n", ch); break; } } chains_issObjectDetect_StopAndDeleteApp(&chainsObj); }
/**************************************************************************** Copyright (c) [2012 - 2017] Texas Instruments Incorporated All rights reserved not granted herein. Limited License. Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive license under copyrights and patents it now or hereafter owns or controls to make, have made, use, import, offer to sell and sell ('Utilize') this software subject to the terms herein. With respect to the foregoing patent license, such license is granted solely to the extent that any such patent is necessary to Utilize the software alone. The patent license shall not apply to any combinations which include this software, other than combinations with devices manufactured by or for TI ('TI Devices'). No hardware patent is licensed hereunder. Redistributions must preserve existing copyright notices and reproduce this license (including the above copyright notice and the disclaimer and (if applicable) source code license limitations below) in the documentation and/or other materials provided with the distribution Redistribution and use in binary form, without modification, are permitted provided that the following conditions are met: * No reverse engineering, decompilation, or disassembly of this software is permitted with respect to any software provided in binary form. * Any redistribution and use are licensed by TI for use only with TI Devices. * Nothing shall obligate TI to provide you with source code for the software licensed and provided to you in object code. If software source code is provided to you, modification and redistribution of the source code are permitted provided that the following conditions are met: * Any redistribution and use of the source code, including any resulting derivative works, are licensed by TI for use only with TI Devices. * Any redistribution and use of any object code compiled from the source code and any resulting derivative works, are licensed by TI for use only with TI Devices. Neither the name of Texas Instruments Incorporated nor the names of its suppliers may be used to endorse or promote products derived from this software without specific prior written permission. DISCLAIMER. THIS SOFTWARE IS PROVIDED BY TI AND TI�S LICENSORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TI AND TI�S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ****************************************************************************** */ /* ******************************************************************************* * * IMPORTANT NOTE: * This file is AUTO-GENERATED by Vision SDK use case generation tool * ******************************************************************************* */ #include "chains_issObjectDetect_priv.h" Void chains_issObjectDetect_SetLinkId(chains_issObjectDetectObj *pObj){ pObj->IssCaptureLinkID = SYSTEM_LINK_ID_ISSCAPTURE_0; pObj->IssM2mIspLinkID = SYSTEM_LINK_ID_ISSM2MISP_0; pObj->Alg_IssAewbLinkID = IPU1_0_LINK (SYSTEM_LINK_ID_ALG_0); pObj->IssM2mSimcopLinkID = SYSTEM_LINK_ID_ISSM2MSIMCOP_0; pObj->IssM2mResizerLinkID = SYSTEM_LINK_ID_ISS_RESIZER_0; pObj->Dup_captureLinkID = IPU1_0_LINK (SYSTEM_LINK_ID_DUP_0); pObj->Alg_ImgPyramidLinkID = IPU1_0_LINK (SYSTEM_LINK_ID_ALG_1); pObj->Dup_imgPyramidLinkID = IPU1_0_LINK (SYSTEM_LINK_ID_DUP_1); pObj->IPCOut_IPU1_0_DSP1_1LinkID = IPU1_0_LINK (SYSTEM_LINK_ID_IPC_OUT_1); pObj->IPCIn_DSP1_IPU1_0_1LinkID = DSP1_LINK (SYSTEM_LINK_ID_IPC_IN_1); pObj->IPCOut_IPU1_0_EVE1_0LinkID = IPU1_0_LINK (SYSTEM_LINK_ID_IPC_OUT_0); pObj->IPCIn_EVE1_IPU1_0_0LinkID = EVE1_LINK (SYSTEM_LINK_ID_IPC_IN_0); pObj->Alg_FPComputeLinkID = EVE1_LINK (SYSTEM_LINK_ID_ALG_0); pObj->IPCOut_EVE1_DSP1_0LinkID = EVE1_LINK (SYSTEM_LINK_ID_IPC_OUT_0); pObj->IPCIn_DSP1_EVE1_0LinkID = DSP1_LINK (SYSTEM_LINK_ID_IPC_IN_0); pObj->Alg_ObjectDetectionLinkID = DSP1_LINK (SYSTEM_LINK_ID_ALG_0); pObj->Merge_objectDetectLinkID = DSP1_LINK (SYSTEM_LINK_ID_MERGE_0); pObj->Sync_objectDetectLinkID = DSP1_LINK (SYSTEM_LINK_ID_SYNC_0); pObj->Alg_ObjectClassificationLinkID = DSP1_LINK (SYSTEM_LINK_ID_ALG_1); pObj->IPCOut_DSP1_IPU1_0_0LinkID = DSP1_LINK (SYSTEM_LINK_ID_IPC_OUT_0); pObj->IPCIn_IPU1_0_DSP1_0LinkID = IPU1_0_LINK (SYSTEM_LINK_ID_IPC_IN_0); pObj->Merge_algLinkID = IPU1_0_LINK (SYSTEM_LINK_ID_MERGE_0); pObj->Sync_algLinkID = IPU1_0_LINK (SYSTEM_LINK_ID_SYNC_0); pObj->Alg_ObjectDrawLinkID = IPU1_0_LINK (SYSTEM_LINK_ID_ALG_2); pObj->Display_algLinkID = SYSTEM_LINK_ID_DISPLAY_0; pObj->GrpxSrcLinkID = IPU1_0_LINK (SYSTEM_LINK_ID_GRPX_SRC_0); pObj->Display_GrpxLinkID = SYSTEM_LINK_ID_DISPLAY_1; } Void chains_issObjectDetect_ResetLinkPrms(chains_issObjectDetectObj *pObj){ IssCaptureLink_CreateParams_Init(&pObj->IssCapturePrm); IssM2mIspLink_CreateParams_Init(&pObj->IssM2mIspPrm); AlgorithmLink_IssAewb_Init(&pObj->Alg_IssAewbPrm); IssM2mSimcopLink_CreateParams_Init(&pObj->IssM2mSimcopPrm); IssRszLink_CreateParams_Init(&pObj->IssM2mResizerPrm); DupLink_CreateParams_Init(&pObj->Dup_capturePrm); AlgorithmLink_ImgPyramid_Init(&pObj->Alg_ImgPyramidPrm); DupLink_CreateParams_Init(&pObj->Dup_imgPyramidPrm); IpcLink_CreateParams_Init(&pObj->IPCOut_IPU1_0_DSP1_1Prm); IpcLink_CreateParams_Init(&pObj->IPCIn_DSP1_IPU1_0_1Prm); IpcLink_CreateParams_Init(&pObj->IPCOut_IPU1_0_EVE1_0Prm); IpcLink_CreateParams_Init(&pObj->IPCIn_EVE1_IPU1_0_0Prm); AlgorithmLink_FPCompute_Init(&pObj->Alg_FPComputePrm); IpcLink_CreateParams_Init(&pObj->IPCOut_EVE1_DSP1_0Prm); IpcLink_CreateParams_Init(&pObj->IPCIn_DSP1_EVE1_0Prm); AlgorithmLink_ObjectDetection_Init(&pObj->Alg_ObjectDetectionPrm); MergeLink_CreateParams_Init(&pObj->Merge_objectDetectPrm); SyncLink_CreateParams_Init(&pObj->Sync_objectDetectPrm); AlgorithmLink_ObjectClassification_Init(&pObj->Alg_ObjectClassificationPrm); IpcLink_CreateParams_Init(&pObj->IPCOut_DSP1_IPU1_0_0Prm); IpcLink_CreateParams_Init(&pObj->IPCIn_IPU1_0_DSP1_0Prm); MergeLink_CreateParams_Init(&pObj->Merge_algPrm); SyncLink_CreateParams_Init(&pObj->Sync_algPrm); AlgorithmLink_ObjectDraw_Init(&pObj->Alg_ObjectDrawPrm); DisplayLink_CreateParams_Init(&pObj->Display_algPrm); GrpxSrcLink_CreateParams_Init(&pObj->GrpxSrcPrm); DisplayLink_CreateParams_Init(&pObj->Display_GrpxPrm); } Void chains_issObjectDetect_SetPrms(chains_issObjectDetectObj *pObj){ (pObj->Alg_IssAewbPrm).baseClassCreate.size = sizeof(AlgorithmLink_IssAewbCreateParams); (pObj->Alg_IssAewbPrm).baseClassCreate.algId = ALGORITHM_LINK_IPU_ALG_ISS_AEWB1; (pObj->IssM2mSimcopPrm).numInQue = 1; (pObj->Dup_capturePrm).numOutQue = 2; (pObj->Alg_ImgPyramidPrm).baseClassCreate.size = sizeof(AlgorithmLink_ImgPyramidCreateParams); (pObj->Alg_ImgPyramidPrm).baseClassCreate.algId = ALGORITHM_LINK_IPU_ALG_IMG_PYRAMID; (pObj->Dup_imgPyramidPrm).numOutQue = 2; (pObj->Alg_FPComputePrm).baseClassCreate.size = sizeof(AlgorithmLink_FPComputeCreateParams); (pObj->Alg_FPComputePrm).baseClassCreate.algId = ALGORITHM_LINK_EVE_ALG_FPCOMPUTE; (pObj->Alg_ObjectDetectionPrm).baseClassCreate.size = sizeof(AlgorithmLink_ObjectDetectionCreateParams); (pObj->Alg_ObjectDetectionPrm).baseClassCreate.algId = ALGORITHM_LINK_DSP_ALG_OBJECTDETECTION; (pObj->Merge_objectDetectPrm).numInQue = 2; (pObj->Alg_ObjectClassificationPrm).baseClassCreate.size = sizeof(AlgorithmLink_ObjectClassificationCreateParams); (pObj->Alg_ObjectClassificationPrm).baseClassCreate.algId = ALGORITHM_LINK_DSP_ALG_OBJECTCLASSIFICATION; (pObj->Merge_algPrm).numInQue = 2; (pObj->Alg_ObjectDrawPrm).baseClassCreate.size = sizeof(AlgorithmLink_ObjectDrawCreateParams); (pObj->Alg_ObjectDrawPrm).baseClassCreate.algId = ALGORITHM_LINK_IPU_ALG_OBJECT_DRAW; } Void chains_issObjectDetect_ConnectLinks(chains_issObjectDetectObj *pObj){ //IssCapture -> IssM2mIsp pObj->IssCapturePrm.outQueParams.nextLink = pObj->IssM2mIspLinkID; pObj->IssM2mIspPrm.inQueParams[0].prevLinkId = pObj->IssCaptureLinkID; pObj->IssM2mIspPrm.inQueParams[0].prevLinkQueId = 0; //IssM2mIsp -> IssM2mSimcop pObj->IssM2mIspPrm.outQueParams[0].nextLink = pObj->IssM2mSimcopLinkID; pObj->IssM2mSimcopPrm.inQueParams[0].prevLinkId = pObj->IssM2mIspLinkID; pObj->IssM2mSimcopPrm.inQueParams[0].prevLinkQueId = 0; //IssM2mIsp -> Alg_IssAewb pObj->IssM2mIspPrm.outQueParams[1].nextLink = pObj->Alg_IssAewbLinkID; pObj->Alg_IssAewbPrm.inQueParams.prevLinkId = pObj->IssM2mIspLinkID; pObj->Alg_IssAewbPrm.inQueParams.prevLinkQueId = 1; //IssM2mSimcop -> IssM2mResizer pObj->IssM2mSimcopPrm.outQueParams.nextLink = pObj->IssM2mResizerLinkID; pObj->IssM2mResizerPrm.inQueParams.prevLinkId = pObj->IssM2mSimcopLinkID; pObj->IssM2mResizerPrm.inQueParams.prevLinkQueId = 0; //IssM2mResizer -> Dup_capture pObj->IssM2mResizerPrm.outQueParams[0].nextLink = pObj->Dup_captureLinkID; pObj->Dup_capturePrm.inQueParams.prevLinkId = pObj->IssM2mResizerLinkID; pObj->Dup_capturePrm.inQueParams.prevLinkQueId = 0; //Dup_capture -> Merge_alg pObj->Dup_capturePrm.outQueParams[0].nextLink = pObj->Merge_algLinkID; pObj->Merge_algPrm.inQueParams[0].prevLinkId = pObj->Dup_captureLinkID; pObj->Merge_algPrm.inQueParams[0].prevLinkQueId = 0; //Dup_capture -> Alg_ImgPyramid pObj->Dup_capturePrm.outQueParams[1].nextLink = pObj->Alg_ImgPyramidLinkID; pObj->Alg_ImgPyramidPrm.inQueParams.prevLinkId = pObj->Dup_captureLinkID; pObj->Alg_ImgPyramidPrm.inQueParams.prevLinkQueId = 1; //Alg_ImgPyramid -> Dup_imgPyramid pObj->Alg_ImgPyramidPrm.outQueParams.nextLink = pObj->Dup_imgPyramidLinkID; pObj->Dup_imgPyramidPrm.inQueParams.prevLinkId = pObj->Alg_ImgPyramidLinkID; pObj->Dup_imgPyramidPrm.inQueParams.prevLinkQueId = 0; //Dup_imgPyramid -> IPCOut_IPU1_0_EVE1_0 pObj->Dup_imgPyramidPrm.outQueParams[0].nextLink = pObj->IPCOut_IPU1_0_EVE1_0LinkID; pObj->IPCOut_IPU1_0_EVE1_0Prm.inQueParams.prevLinkId = pObj->Dup_imgPyramidLinkID; pObj->IPCOut_IPU1_0_EVE1_0Prm.inQueParams.prevLinkQueId = 0; //Dup_imgPyramid -> IPCOut_IPU1_0_DSP1_1 pObj->Dup_imgPyramidPrm.outQueParams[1].nextLink = pObj->IPCOut_IPU1_0_DSP1_1LinkID; pObj->IPCOut_IPU1_0_DSP1_1Prm.inQueParams.prevLinkId = pObj->Dup_imgPyramidLinkID; pObj->IPCOut_IPU1_0_DSP1_1Prm.inQueParams.prevLinkQueId = 1; //IPCOut_IPU1_0_DSP1_1 -> IPCIn_DSP1_IPU1_0_1 pObj->IPCOut_IPU1_0_DSP1_1Prm.outQueParams.nextLink = pObj->IPCIn_DSP1_IPU1_0_1LinkID; pObj->IPCIn_DSP1_IPU1_0_1Prm.inQueParams.prevLinkId = pObj->IPCOut_IPU1_0_DSP1_1LinkID; pObj->IPCIn_DSP1_IPU1_0_1Prm.inQueParams.prevLinkQueId = 0; //IPCIn_DSP1_IPU1_0_1 -> Merge_objectDetect pObj->IPCIn_DSP1_IPU1_0_1Prm.outQueParams.nextLink = pObj->Merge_objectDetectLinkID; pObj->Merge_objectDetectPrm.inQueParams[1].prevLinkId = pObj->IPCIn_DSP1_IPU1_0_1LinkID; pObj->Merge_objectDetectPrm.inQueParams[1].prevLinkQueId = 0; //IPCOut_IPU1_0_EVE1_0 -> IPCIn_EVE1_IPU1_0_0 pObj->IPCOut_IPU1_0_EVE1_0Prm.outQueParams.nextLink = pObj->IPCIn_EVE1_IPU1_0_0LinkID; pObj->IPCIn_EVE1_IPU1_0_0Prm.inQueParams.prevLinkId = pObj->IPCOut_IPU1_0_EVE1_0LinkID; pObj->IPCIn_EVE1_IPU1_0_0Prm.inQueParams.prevLinkQueId = 0; //IPCIn_EVE1_IPU1_0_0 -> Alg_FPCompute pObj->IPCIn_EVE1_IPU1_0_0Prm.outQueParams.nextLink = pObj->Alg_FPComputeLinkID; pObj->Alg_FPComputePrm.inQueParams.prevLinkId = pObj->IPCIn_EVE1_IPU1_0_0LinkID; pObj->Alg_FPComputePrm.inQueParams.prevLinkQueId = 0; //Alg_FPCompute -> IPCOut_EVE1_DSP1_0 pObj->Alg_FPComputePrm.outQueParams.nextLink = pObj->IPCOut_EVE1_DSP1_0LinkID; pObj->IPCOut_EVE1_DSP1_0Prm.inQueParams.prevLinkId = pObj->Alg_FPComputeLinkID; pObj->IPCOut_EVE1_DSP1_0Prm.inQueParams.prevLinkQueId = 0; //IPCOut_EVE1_DSP1_0 -> IPCIn_DSP1_EVE1_0 pObj->IPCOut_EVE1_DSP1_0Prm.outQueParams.nextLink = pObj->IPCIn_DSP1_EVE1_0LinkID; pObj->IPCIn_DSP1_EVE1_0Prm.inQueParams.prevLinkId = pObj->IPCOut_EVE1_DSP1_0LinkID; pObj->IPCIn_DSP1_EVE1_0Prm.inQueParams.prevLinkQueId = 0; //IPCIn_DSP1_EVE1_0 -> Alg_ObjectDetection pObj->IPCIn_DSP1_EVE1_0Prm.outQueParams.nextLink = pObj->Alg_ObjectDetectionLinkID; pObj->Alg_ObjectDetectionPrm.inQueParams.prevLinkId = pObj->IPCIn_DSP1_EVE1_0LinkID; pObj->Alg_ObjectDetectionPrm.inQueParams.prevLinkQueId = 0; //Alg_ObjectDetection -> Merge_objectDetect pObj->Alg_ObjectDetectionPrm.outQueParams.nextLink = pObj->Merge_objectDetectLinkID; pObj->Merge_objectDetectPrm.inQueParams[0].prevLinkId = pObj->Alg_ObjectDetectionLinkID; pObj->Merge_objectDetectPrm.inQueParams[0].prevLinkQueId = 0; //Merge_objectDetect -> Sync_objectDetect pObj->Merge_objectDetectPrm.outQueParams.nextLink = pObj->Sync_objectDetectLinkID; pObj->Sync_objectDetectPrm.inQueParams.prevLinkId = pObj->Merge_objectDetectLinkID; pObj->Sync_objectDetectPrm.inQueParams.prevLinkQueId = 0; //Sync_objectDetect -> Alg_ObjectClassification pObj->Sync_objectDetectPrm.outQueParams.nextLink = pObj->Alg_ObjectClassificationLinkID; pObj->Alg_ObjectClassificationPrm.inQueParams.prevLinkId = pObj->Sync_objectDetectLinkID; pObj->Alg_ObjectClassificationPrm.inQueParams.prevLinkQueId = 0; //Alg_ObjectClassification -> IPCOut_DSP1_IPU1_0_0 pObj->Alg_ObjectClassificationPrm.outQueParams.nextLink = pObj->IPCOut_DSP1_IPU1_0_0LinkID; pObj->IPCOut_DSP1_IPU1_0_0Prm.inQueParams.prevLinkId = pObj->Alg_ObjectClassificationLinkID; pObj->IPCOut_DSP1_IPU1_0_0Prm.inQueParams.prevLinkQueId = 0; //IPCOut_DSP1_IPU1_0_0 -> IPCIn_IPU1_0_DSP1_0 pObj->IPCOut_DSP1_IPU1_0_0Prm.outQueParams.nextLink = pObj->IPCIn_IPU1_0_DSP1_0LinkID; pObj->IPCIn_IPU1_0_DSP1_0Prm.inQueParams.prevLinkId = pObj->IPCOut_DSP1_IPU1_0_0LinkID; pObj->IPCIn_IPU1_0_DSP1_0Prm.inQueParams.prevLinkQueId = 0; //IPCIn_IPU1_0_DSP1_0 -> Merge_alg pObj->IPCIn_IPU1_0_DSP1_0Prm.outQueParams.nextLink = pObj->Merge_algLinkID; pObj->Merge_algPrm.inQueParams[1].prevLinkId = pObj->IPCIn_IPU1_0_DSP1_0LinkID; pObj->Merge_algPrm.inQueParams[1].prevLinkQueId = 0; //Merge_alg -> Sync_alg pObj->Merge_algPrm.outQueParams.nextLink = pObj->Sync_algLinkID; pObj->Sync_algPrm.inQueParams.prevLinkId = pObj->Merge_algLinkID; pObj->Sync_algPrm.inQueParams.prevLinkQueId = 0; //Sync_alg -> Alg_ObjectDraw pObj->Sync_algPrm.outQueParams.nextLink = pObj->Alg_ObjectDrawLinkID; pObj->Alg_ObjectDrawPrm.inQueParams.prevLinkId = pObj->Sync_algLinkID; pObj->Alg_ObjectDrawPrm.inQueParams.prevLinkQueId = 0; //Alg_ObjectDraw -> Display_alg pObj->Alg_ObjectDrawPrm.outQueParams.nextLink = pObj->Display_algLinkID; pObj->Display_algPrm.inQueParams.prevLinkId = pObj->Alg_ObjectDrawLinkID; pObj->Display_algPrm.inQueParams.prevLinkQueId = 0; //GrpxSrc -> Display_Grpx pObj->GrpxSrcPrm.outQueParams.nextLink = pObj->Display_GrpxLinkID; pObj->Display_GrpxPrm.inQueParams.prevLinkId = pObj->GrpxSrcLinkID; pObj->Display_GrpxPrm.inQueParams.prevLinkQueId = 0; } Int32 chains_issObjectDetect_Create(chains_issObjectDetectObj *pObj, Void *appObj){ Int32 status; chains_issObjectDetect_SetLinkId(pObj); chains_issObjectDetect_ResetLinkPrms(pObj); chains_issObjectDetect_SetPrms(pObj); chains_issObjectDetect_SetAppPrms(pObj, appObj); chains_issObjectDetect_ConnectLinks(pObj); status = System_linkCreate(pObj->IssCaptureLinkID, &pObj->IssCapturePrm, sizeof(pObj->IssCapturePrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->IssM2mIspLinkID, &pObj->IssM2mIspPrm, sizeof(pObj->IssM2mIspPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Alg_IssAewbLinkID, &pObj->Alg_IssAewbPrm, sizeof(pObj->Alg_IssAewbPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->IssM2mSimcopLinkID, &pObj->IssM2mSimcopPrm, sizeof(pObj->IssM2mSimcopPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->IssM2mResizerLinkID, &pObj->IssM2mResizerPrm, sizeof(pObj->IssM2mResizerPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Dup_captureLinkID, &pObj->Dup_capturePrm, sizeof(pObj->Dup_capturePrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Alg_ImgPyramidLinkID, &pObj->Alg_ImgPyramidPrm, sizeof(pObj->Alg_ImgPyramidPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Dup_imgPyramidLinkID, &pObj->Dup_imgPyramidPrm, sizeof(pObj->Dup_imgPyramidPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->IPCOut_IPU1_0_DSP1_1LinkID, &pObj->IPCOut_IPU1_0_DSP1_1Prm, sizeof(pObj->IPCOut_IPU1_0_DSP1_1Prm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->IPCIn_DSP1_IPU1_0_1LinkID, &pObj->IPCIn_DSP1_IPU1_0_1Prm, sizeof(pObj->IPCIn_DSP1_IPU1_0_1Prm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->IPCOut_IPU1_0_EVE1_0LinkID, &pObj->IPCOut_IPU1_0_EVE1_0Prm, sizeof(pObj->IPCOut_IPU1_0_EVE1_0Prm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->IPCIn_EVE1_IPU1_0_0LinkID, &pObj->IPCIn_EVE1_IPU1_0_0Prm, sizeof(pObj->IPCIn_EVE1_IPU1_0_0Prm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Alg_FPComputeLinkID, &pObj->Alg_FPComputePrm, sizeof(pObj->Alg_FPComputePrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->IPCOut_EVE1_DSP1_0LinkID, &pObj->IPCOut_EVE1_DSP1_0Prm, sizeof(pObj->IPCOut_EVE1_DSP1_0Prm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->IPCIn_DSP1_EVE1_0LinkID, &pObj->IPCIn_DSP1_EVE1_0Prm, sizeof(pObj->IPCIn_DSP1_EVE1_0Prm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Alg_ObjectDetectionLinkID, &pObj->Alg_ObjectDetectionPrm, sizeof(pObj->Alg_ObjectDetectionPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Merge_objectDetectLinkID, &pObj->Merge_objectDetectPrm, sizeof(pObj->Merge_objectDetectPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Sync_objectDetectLinkID, &pObj->Sync_objectDetectPrm, sizeof(pObj->Sync_objectDetectPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Alg_ObjectClassificationLinkID, &pObj->Alg_ObjectClassificationPrm, sizeof(pObj->Alg_ObjectClassificationPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->IPCOut_DSP1_IPU1_0_0LinkID, &pObj->IPCOut_DSP1_IPU1_0_0Prm, sizeof(pObj->IPCOut_DSP1_IPU1_0_0Prm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->IPCIn_IPU1_0_DSP1_0LinkID, &pObj->IPCIn_IPU1_0_DSP1_0Prm, sizeof(pObj->IPCIn_IPU1_0_DSP1_0Prm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Merge_algLinkID, &pObj->Merge_algPrm, sizeof(pObj->Merge_algPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Sync_algLinkID, &pObj->Sync_algPrm, sizeof(pObj->Sync_algPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Alg_ObjectDrawLinkID, &pObj->Alg_ObjectDrawPrm, sizeof(pObj->Alg_ObjectDrawPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Display_algLinkID, &pObj->Display_algPrm, sizeof(pObj->Display_algPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->GrpxSrcLinkID, &pObj->GrpxSrcPrm, sizeof(pObj->GrpxSrcPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkCreate(pObj->Display_GrpxLinkID, &pObj->Display_GrpxPrm, sizeof(pObj->Display_GrpxPrm)); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); return status; } Int32 chains_issObjectDetect_Start(chains_issObjectDetectObj *pObj){ Int32 status; status = System_linkStart(pObj->Display_GrpxLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->GrpxSrcLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Display_algLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Alg_ObjectDrawLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Sync_algLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Merge_algLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->IPCIn_IPU1_0_DSP1_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->IPCOut_DSP1_IPU1_0_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Alg_ObjectClassificationLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Sync_objectDetectLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Merge_objectDetectLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Alg_ObjectDetectionLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->IPCIn_DSP1_EVE1_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->IPCOut_EVE1_DSP1_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Alg_FPComputeLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->IPCIn_EVE1_IPU1_0_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->IPCOut_IPU1_0_EVE1_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->IPCIn_DSP1_IPU1_0_1LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->IPCOut_IPU1_0_DSP1_1LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Dup_imgPyramidLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Alg_ImgPyramidLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Dup_captureLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->IssM2mResizerLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->IssM2mSimcopLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->Alg_IssAewbLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->IssM2mIspLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStart(pObj->IssCaptureLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); return status; } Int32 chains_issObjectDetect_Stop(chains_issObjectDetectObj *pObj){ Int32 status; status = System_linkStop(pObj->Display_GrpxLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->GrpxSrcLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Display_algLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Alg_ObjectDrawLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Sync_algLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Merge_algLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->IPCIn_IPU1_0_DSP1_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->IPCOut_DSP1_IPU1_0_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Alg_ObjectClassificationLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Sync_objectDetectLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Merge_objectDetectLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Alg_ObjectDetectionLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->IPCIn_DSP1_EVE1_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->IPCOut_EVE1_DSP1_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Alg_FPComputeLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->IPCIn_EVE1_IPU1_0_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->IPCOut_IPU1_0_EVE1_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->IPCIn_DSP1_IPU1_0_1LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->IPCOut_IPU1_0_DSP1_1LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Dup_imgPyramidLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Alg_ImgPyramidLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Dup_captureLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->IssM2mResizerLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->IssM2mSimcopLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->Alg_IssAewbLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->IssM2mIspLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkStop(pObj->IssCaptureLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); return status; } Int32 chains_issObjectDetect_Delete(chains_issObjectDetectObj *pObj){ Int32 status; status = System_linkDelete(pObj->Display_GrpxLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->GrpxSrcLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Display_algLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Alg_ObjectDrawLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Sync_algLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Merge_algLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->IPCIn_IPU1_0_DSP1_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->IPCOut_DSP1_IPU1_0_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Alg_ObjectClassificationLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Sync_objectDetectLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Merge_objectDetectLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Alg_ObjectDetectionLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->IPCIn_DSP1_EVE1_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->IPCOut_EVE1_DSP1_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Alg_FPComputeLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->IPCIn_EVE1_IPU1_0_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->IPCOut_IPU1_0_EVE1_0LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->IPCIn_DSP1_IPU1_0_1LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->IPCOut_IPU1_0_DSP1_1LinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Dup_imgPyramidLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Alg_ImgPyramidLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Dup_captureLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->IssM2mResizerLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->IssM2mSimcopLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->Alg_IssAewbLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->IssM2mIspLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); status = System_linkDelete(pObj->IssCaptureLinkID); UTILS_assert(status == SYSTEM_LINK_STATUS_SOK); return status; } Void chains_issObjectDetect_printBufferStatistics(chains_issObjectDetectObj *pObj){ System_linkPrintBufferStatistics(pObj->IssCaptureLinkID); System_linkPrintBufferStatistics(pObj->IssM2mIspLinkID); System_linkPrintBufferStatistics(pObj->Alg_IssAewbLinkID); System_linkPrintBufferStatistics(pObj->IssM2mSimcopLinkID); System_linkPrintBufferStatistics(pObj->IssM2mResizerLinkID); System_linkPrintBufferStatistics(pObj->Dup_captureLinkID); System_linkPrintBufferStatistics(pObj->Alg_ImgPyramidLinkID); System_linkPrintBufferStatistics(pObj->Dup_imgPyramidLinkID); System_linkPrintBufferStatistics(pObj->IPCOut_IPU1_0_DSP1_1LinkID); Task_sleep(500); System_linkPrintBufferStatistics(pObj->IPCIn_DSP1_IPU1_0_1LinkID); Task_sleep(500); System_linkPrintBufferStatistics(pObj->IPCOut_IPU1_0_EVE1_0LinkID); Task_sleep(500); System_linkPrintBufferStatistics(pObj->IPCIn_EVE1_IPU1_0_0LinkID); System_linkPrintBufferStatistics(pObj->Alg_FPComputeLinkID); System_linkPrintBufferStatistics(pObj->IPCOut_EVE1_DSP1_0LinkID); Task_sleep(500); System_linkPrintBufferStatistics(pObj->IPCIn_DSP1_EVE1_0LinkID); System_linkPrintBufferStatistics(pObj->Alg_ObjectDetectionLinkID); System_linkPrintBufferStatistics(pObj->Merge_objectDetectLinkID); System_linkPrintBufferStatistics(pObj->Sync_objectDetectLinkID); System_linkPrintBufferStatistics(pObj->Alg_ObjectClassificationLinkID); System_linkPrintBufferStatistics(pObj->IPCOut_DSP1_IPU1_0_0LinkID); Task_sleep(500); System_linkPrintBufferStatistics(pObj->IPCIn_IPU1_0_DSP1_0LinkID); System_linkPrintBufferStatistics(pObj->Merge_algLinkID); System_linkPrintBufferStatistics(pObj->Sync_algLinkID); System_linkPrintBufferStatistics(pObj->Alg_ObjectDrawLinkID); System_linkPrintBufferStatistics(pObj->Display_algLinkID); System_linkPrintBufferStatistics(pObj->GrpxSrcLinkID); System_linkPrintBufferStatistics(pObj->Display_GrpxLinkID); Task_sleep(500); } Void chains_issObjectDetect_printStatistics(chains_issObjectDetectObj *pObj){ System_linkPrintStatistics(pObj->IssCaptureLinkID); System_linkPrintStatistics(pObj->IssM2mIspLinkID); System_linkPrintStatistics(pObj->Alg_IssAewbLinkID); System_linkPrintStatistics(pObj->IssM2mSimcopLinkID); System_linkPrintStatistics(pObj->IssM2mResizerLinkID); System_linkPrintStatistics(pObj->Dup_captureLinkID); System_linkPrintStatistics(pObj->Alg_ImgPyramidLinkID); System_linkPrintStatistics(pObj->Dup_imgPyramidLinkID); System_linkPrintStatistics(pObj->IPCOut_IPU1_0_DSP1_1LinkID); Task_sleep(500); System_linkPrintStatistics(pObj->IPCIn_DSP1_IPU1_0_1LinkID); Task_sleep(500); System_linkPrintStatistics(pObj->IPCOut_IPU1_0_EVE1_0LinkID); Task_sleep(500); System_linkPrintStatistics(pObj->IPCIn_EVE1_IPU1_0_0LinkID); System_linkPrintStatistics(pObj->Alg_FPComputeLinkID); System_linkPrintStatistics(pObj->IPCOut_EVE1_DSP1_0LinkID); Task_sleep(500); System_linkPrintStatistics(pObj->IPCIn_DSP1_EVE1_0LinkID); System_linkPrintStatistics(pObj->Alg_ObjectDetectionLinkID); System_linkPrintStatistics(pObj->Merge_objectDetectLinkID); System_linkPrintStatistics(pObj->Sync_objectDetectLinkID); System_linkPrintStatistics(pObj->Alg_ObjectClassificationLinkID); System_linkPrintStatistics(pObj->IPCOut_DSP1_IPU1_0_0LinkID); Task_sleep(500); System_linkPrintStatistics(pObj->IPCIn_IPU1_0_DSP1_0LinkID); System_linkPrintStatistics(pObj->Merge_algLinkID); System_linkPrintStatistics(pObj->Sync_algLinkID); System_linkPrintStatistics(pObj->Alg_ObjectDrawLinkID); System_linkPrintStatistics(pObj->Display_algLinkID); System_linkPrintStatistics(pObj->GrpxSrcLinkID); System_linkPrintStatistics(pObj->Display_GrpxLinkID); Task_sleep(500); }
Regards,
Anil