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.

DM6437 resizer problem

Hello

I am working on DM6437 and I would like to upscale the video using RESIZER.

I set the Input source to SDRAM.

I set the parameters as

{

240,

320,

320*2,

PSP_INTYPE_PLANAR_8BIT,

0,

0,

0,

PSP_RSZ_PIX_FMT_UYVY,

480,

640,

640*2,

0,

0,

{

      0,                  256,                   0,                     0,

      -6,                 246,                  16,                    0,

      -7,                 219,                   44,                   0,

      -5,                 179,                   83,                  -1,

      -3,                 130,                  130,                 -3,

      -1,                    83,                  179,                -5,

      0,                     44,                   219,                -7,

      0,                      16,                  246,                -6,

},

{

      0,                  256,                   0,                     0,

      -6,                 246,                  16,                    0,

      -7,                 219,                   44,                   0,

      -5,                 179,                   83,                  -1,

      -3,                 130,                  130,                 -3,

      -1,                    83,                  179,                -5,

      0,                     44,                   219,                -7,

      0,                      16,                  246,                -6,

},

PSP_RSZ_YENH_DISABLE,

}

..............................

setting...

              resize.inBuf = (void *)capFrmPtr;

              resize.outBuf = (void *)outBufRsz;

              resize.inBufSize = 240*320*2;

              resize.outBufSize = 480*640*2;

and displaying the result in Video window 1.

The resizer doesn't work properly. Although it is returning status = 0 from GIO_control(hrsz, PSP_RSZ_IOCTL_RESIZE, &resize); but the output buffer is not provided with the resized video.

Kindly provide some suggestions.

Regards

SAIRA

  • Hi Saira,

    Are you working on EVM or your own custom board ?
    Have you referred any software example code provided by TI and changed it as per your requirement or working with your own custom code?
    Please refer VPFE User Guide( SPRU977D particularly section 5) and SPRAAI7B for more information.
  • Hi Arvind Singh,

    Sir thanks for the reply. I am now able to run my Resizer example on EVM successfully for upsampling. The resizer was not configured properly. Now its working and I am getting resized image.

    I am now having a problem in colors of the resized video frame. Some colors are not produced properly for example the Blue appears Gray... Yellow appears Green... Red shades also changed. I have checked by toggling CBILIN bit in RSZ_CNT register to both 0 and 1 but still the same problem persists.Does this occurs because the Cb and Cr data are packed in 8 bits in YUV4:2:2. It is mentioned in the document "Understanding the DaVinci Resizer SPRAAI7B" in section 3.5 The Resizing Algorithm for Chrominance Data that

           "Because the input format is 4:2:2, Cb and Cr data are upsampled (duplicated) before

              the filter is applied."

    Is this programmers responsibility to apply this conversion in code or the RESIZER module performs it by itself. If this is not the problem than what would you suggest the problem will be?

    Kindly provide help regarding this.

    Regards

    SAIRA