This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Resizer on-the-fly problem

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:

  • Hi Zorg,

    Looking at the resizer driver documentation (DM6437 VPSS Drivers – Resizer Driver Design Document in pspdrivers_1_10_03.tar\pspdrivers_1_10_03\packages\ti\sdo\pspdrivers\drivers\resizer\docs\):

    The DSP BIOS resizer driver does not support on-the-fly resizing. Only SDRAM to SDRAM resizing is supported.

    Even if the VPFE resizer might be capable of doing on-the-fly resizer we do not support it as part of the drivers.
    We unfortunately can not provide technical help to modify the driver to support on-the-fly resizing.

    DM6437 PSP 1.10.03 can be found at:
    http://software-dl.ti.com/targetcontent/legacy_files/targetcontent/index.html

    Anthony