Tool/software: TI-RTOS
Dear Champs,
My customer is developing DMS (driver monitoring system) on TDA2x. A monochrome sensor will be used for this application. The output format of this sensor is 12-bit raw (luma-only) with discrete sync.
1. My customer did below settings on VIP to capture the output. Could you help check if the setting can work or not?
SDK: PPROCESSOR_SDK_VISION_03_04_00_00.
File: \vision_sdk\apps\src\rtos\usecases\common\chains_common_vision.c
Original: pInstPrm->videoIfMode = SYSTEM_VIFM_SCH_DS_HSYNC_VSYNC; pInstPrm->videoIfWidth = SYSTEM_VIFW_8BIT; pInstPrm->bufCaptMode = SYSTEM_CAPT_BCM_FRM_DROP; pInstPrm->numStream = 1; pInprms->width = captureInWidth; pInprms->height = captureInHeight; pInprms->dataFormat = SYSTEM_DF_YUV422P; pInprms->scanFormat = SYSTEM_SF_PROGRESSIVE; pOutprms->width = captureOutWidth; pOutprms->height = captureOutHeight; pOutprms->dataFormat = SYSTEM_DF_YUV420SP_UV; pOutprms->maxWidth = pOutprms->width; pOutprms->maxHeight = pOutprms->height; pPortCfg->syncType = SYSTEM_VIP_SYNC_TYPE_DIS_SINGLE_YUV; pPortCfg->ancCropEnable = FALSE; pPortCfg->intfCfg.clipActive = FALSE; pPortCfg->intfCfg.clipBlank = FALSE; pPortCfg->intfCfg.intfWidth = SYSTEM_VIFW_16BIT; Modified: pInstPrm->videoIfMode = SYSTEM_VIFM_SCH_DS_HSYNC_VSYNC; pInstPrm->videoIfWidth = SYSTEM_VIFW_12BIT; // modified for 12-bit pInstPrm->bufCaptMode = SYSTEM_CAPT_BCM_FRM_DROP; pInstPrm->numStream = 1; pInprms->width = captureInWidth; pInprms->height = captureInHeight; pInprms->dataFormat = SYSTEM_DF_RAW12; // modified for 12-bit RAW pInprms->scanFormat = SYSTEM_SF_PROGRESSIVE; pOutprms->width = captureOutWidth; pOutprms->height = captureOutHeight; pOutprms->dataFormat = SYSTEM_DF_RAW12; //modified to prevent VIP from processing data pOutprms->maxWidth = pOutprms->width; pOutprms->maxHeight = pOutprms->height; pPortCfg->syncType = SYSTEM_VIP_SYNC_TYPE_DIS_SINGLE_YUV; // should this be changed too? pPortCfg->ancCropEnable = FALSE; pPortCfg->intfCfg.clipActive = FALSE; pPortCfg->intfCfg.clipBlank = FALSE; pPortCfg->intfCfg.intfWidth = SYSTEM_VIFW_16BIT; // should this be changed too?
I attached original and modified files for your convenience to compare.
2. The captured 12-bit raw data will not only be proceed in DSP but also be sent to Display. Unfortunately the display controller supports only RGB or YUV input. Is there any hardware (like VPE) can be used to convert 12-bit raw to YUV/RGB?
Thanks.