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.

Horizontal Noise lines with Analog Video Output, Continuous Mode only at 2M capture mode

Hi,

we are using Dm368 based camera and using resizer 2 for analog video output.

In 2M capture mode ( 1920x1080) , Analog Video output ( 720x480) which has been taken from Resizer 2.

This problem happens only at continuous mode, 2Mega captrue but in Single Shot  2 Mega capture Analog video output is ok.

Resizer 2 has been configured for 32 bit Linear Interpolation for down scaling.

in the attched Image i have marked few portions of the image with rectangle boxes to highlight the error pattern.

 

 

  • Attached the normal out put in 2Mega resolution 1920x1080 , just to have a compare between the normal video out put vs Analog video output in my prvius image.

  • Hi Sujit,

    You mean for continuous mode Resizer B (RSZB)  you are able to take out put of 720*480 ?

    But what i see in the code is that Resizer B supports maximum of  640 * 480 only.

    Thx,

    --Prabhakar Lad

  • Prabhakar,

    can you point out which code in kernel u are pointing out.

    i am able to get 720x480 in continuous mode in 3Mega (2048x1536) capture mode with out any problem.

    this problem happens only in 2M resolution continuous mode.

    So please let me know which code in kernel you are pointing to where resizer B configured for 640x480.

  • Sujit,

    I am referring to montavista kernel I hope you are also using the same.

    Please look into drivers/char/dm365_ipipe.c and search for IPIPE_MAX_OUTPUT_HEIGHT_B

    and IPIPE_MAX_OUTPUT_WIDTH_B.

    Thx,

    --Prabhakar Lad

  • Prabhakar,

    we have added the buffer size in davinci_vpfe.c

    static u32 channel0_bufsize = (2048 * 1536 * 2) + (720 * 480 * 2);

    .channel_bufsize[0] = ((2048 * 1536 * 2) + (720 * 480 * 2)),

    and the IPIPE_MAX_OUTPUT_WIDTH_B = 640 is no where used inside kernel, only IPIPE_MAX_OUTPUT_WIDTH_A has been used

    inside davinci_vpfe.c for chain mode

    if (common->imp_chained) {
      /* check with imp hw for the limits */
      max_width  = imp_hw_if->get_max_output_width(0);
      max_height = imp_hw_if->get_max_output_height(0);
     }

    Now i am not sure wether some ResizerB HW limitation is there for width 640.

    Same works fine in 3Mega capture resolution. If resizer HW limitation then how come my analog video output works fine for 3 Mega resolution?

     

  • Hi Sujit,

    Had a closer look at the dm368 doc, it says the following,

    RSZ[1] - Max output width < 2176 pixels
    RSZ[2] - Max output width < 1088 pixels

    So yes whatever you are doing is rite. Does this work for DM365?

    Thx,

    --Prabhakar

  • Prabhakar,

    DM365 alos it works fine, and on DM368 with 3 Mega Resolution Capture ( 2048x1536 ) too it works fine.

    This problem only happens on DM368 while sensor is 2 Mega Resolution i.e Capture resolution is ( 1920x1080 ) .

     

  • Hi Sujit,

    I meant, does on DM365 with 2 Mega Resolution on RSZ[2] (720*480) comes out as expected for you ?

    Can you try and see, weather you are getting the proper output on RSZ_A (720*480) for 2 mega resolution.

    on DM368.

    Thx,

    --Prabhakar Lad

  • Prabhakar,

    our DM365 based design is not menat for 2/3 Mega, its meant for 1.3 Mega (1280x1024 ) and in this case analog video display output ( 720x480) works fine as like on DM368 , 3Mega design.

  • Can you try and see, weather you are getting the proper output on RSZ_A (720*480) for 2 mega resolution.

    on DM368.

    >> Resizer A output (720x480 ) in 2Mega resolution input, Continous mode(chain mode) , if i use for analog video display output then ther is no problem with the output.

    Hope you noticed my point Continious mode, as i had mentioned earlier also this problem with resizer B output happens only in Continuous mode, where as Single Shot mode it has no problem.