Hi,
please help me. There is a need to use the direct path from the Previewer to resizer without SDRAM (DDR),
we set the path according to the figure, the output resizer but see the garbage.
Register settings:
while ((ccdcModuleReg -> PCR & CSL_CCDC_PCR_BUSY_MASK) == 1);
ccdcModuleReg -> FMTCFG |= CSL_CCDC_FMTCFG_VPEN_MASK; // VPEN = 1
ccdcModuleReg -> SYN_MODE &= ~CSL_CCDC_SYN_MODE_SDR2RSZ_MASK; // SDR2RSZ = 0
ccdcModuleReg -> SYN_MODE &= ~CSL_CCDC_SYN_MODE_WEN_MASK; // WNE = 0
while ((prevModuleReg -> PCR & CSL_PREV_PCR_BUSY_NOTBUSY) == 1);
prevModuleReg -> PCR &= ~CSL_PREV_PCR_SOURCE_MASK; // source CCDC
prevModuleReg -> PCR &= ~CSL_PREV_PCR_SDRPORT_MASK; // SDRPORT = 0
prevModuleReg -> PCR |= CSL_PREV_PCR_RSZPORT_MASK; // RSZPORT = 0
while ((reszModuleReg -> PCR & CSL_RESZ_PCR_BUSY_MASK) == 1);
reszModuleReg -> RSZ_CNT &= ~CSL_RESZ_RSZ_CNT_INPSRC_MASK; // RSZPORT = 0
code resizer init:
...
resize.inBuf = 0;
resize.inBufSize = 0;
resize.outBuf = FBRsz->frame.frameBufferPtr;
resize.outBufSize = ( MASK_SIZE * 2 );
if(IOM_COMPLETED != FVID_control(rszHandle, PSP_RSZ_IOCTL_RESIZE, &resize))
{
DEBUG_TEXT("\nCan't to resize frame!");
return FALSE;
}
log output:
Can't to resize frame
Can't to resize frame
Can't to resize frame
FVID_control(...) return value = -10
resizer output image: