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.

How to set resizer modlue register

Current we  are using the resizer module to convert yuv422 to yuv420,  but we do not known  the difference between resizer's pass by mode and pass thought mode? We have read the manual about resizer module.the  RSZ_GCK_SDR register record the folowing words:

RSZ Core Clock Enable. RW 0
This bit enables or disables the resizer core functional
clock. When this bit is off, the resizer core (interpolator) is
automatically bypassed (resizer-bypass mode of
pass-through mode is selected depending on
RSZ_SRC_FMT0 value). In resizer-bypass mode or
pass-through mode, no up-scaling or downscaling
process is operated.
0x0: Resizer core clock disabled.
Resizer in bypass mode if RSZ_SRC_FMT0.BYPASS = 0
Resizer in pass-through if RSZ_SRC_FMT0.BYPASS = 1
0x1: Resizer core clock enabled.
Resizer in rescaling mode if RSZ_SRC_FMT0.BYPASS =
0
Resizer in pass-through if RSZ_SRC_FMT0.BYPASS = 1

We  can not understand  . How to set the resizer which don't recale size  and  only  convert  yuv422 to yuv420?

Can you help me ?

 

  • Hello,

    In general the difference between bypass & pass-through mode is the following:

     The RSZ (resizer) module can rescale only YUV4:2:2 data. So

     - For VP1(video port interface 1):

        If RAW RGB data is received on the port, RSZ must be configured in pass-through mode.
        If you receive YUV4:2:2 data on the port AND you don't need to rescale it => you must configure the RSZ in bypass mode.

     - For VP2 (video port interface 2):

        If RAW data is received on the port, RSZ must be configured in pass-through mode.

        If you receive YUV4:2:2 data on the port AND you don't need to rescale it => you must configure the RSZ in bypass mode.

    In addition you can receive YUV420 data on VP1, but the data must be sent on two passes. 

    In your case you have YUV422 input, and you need to convert it to YUV420 => you must use bypass mode.

    Regarding the settings for the conversion of YUV422 to YUV420 you need to follow the settings described in (bellow tables are located in Section 8.3.3.5.5 ISS ISP RSZ Functional Description of OMAP4460 TRM):

      Table 8-325. ISS ISP RSZ Module Input Control: Register Settings for setting the RSZ input.

      Table 8-326. ISS ISP RSZ-A/RSZ-B Output Format Selection for selecting the RSZ output.

    Additionally you need to follow the sequence described in Figure 8-240. ISS ISP RSZ Global Image Processing Settings – Subsequence 2, located in Subsection  8.3.4.5.2.2 ISS ISP RSZ Global Image Processing Settings – Subsequence 2 of Section 8.3.4.5 ISS ISP RSZ Programming Model in OMAP4460 TRM.

    Best Regards,
    Yordan