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.

DM365 & IPNC Appro : Capture test problem when YUV422 in HD size in Input

Hello TI staff,

I had adapted the IPNC application to a VGA YUV422 output camera. Ans aldo the test modules used in moduletest.out. And everything is OK. Including the H264 encoding.

The problem arises now when I try to replace my VGA by an HD720p camera. It output data with the same format YUV422 in 8 bit format.

The camera configuration is OK. The ISIF test (./moduletest.out drv_isif) output YUV422 images which are OK. Now the problem is that I try to pass the image through the resizer A with no resizing (meaning a 1:1 ratio). And there the problem begins.

It looks like that the storage is not proper in the SDRAM. When debugging with messages I have found that the Y end line in memory was 736.

Why having padded the output buffer ? I do not find an explanation in the specifications.

My image is not good, while it seems few data are visible at the beginning of the buffer, quickly it turns out to be noised with bad data, such as noise, of pink color.

It seems also that the bug I had with alg_vidEnc is probably due to this supplementary lines.

Any clue concerning this "bug" ?

Regards

 

  • Hello as a follow up of this issue, I have tried to remove the padding code set by default with the OSA_Align functions. nd it looks like yuv data are proper.

    Still need to get a good viewer to confirm.

     

  • Hi,

    You might want to share your YUV data to see what is going wrong.

    Regards,

    Anshuman

  •  Hello Anshuman, Can I upload a big file on this site ?

    I have checked the converted to YUV420SP format. Transformed in a software the SP to planar format and in the viewer the image is not proper.

    It is a color bar scheme in HD720P. It is well captured in the moduletest drv_isif test.

    It looks like that for HD and VGA the settings do not behave the same.

    Maybe a moduletest drv_resz should be done before

    Best Regards

  • Hi Anushman,

     

    I also suffered by the same problem - pink issue -image captured by the av_server

    First I captureed the yuv file(640x480) and i convered into bmp format ,in that i m observing some pink color noise .

    I attached the fie for ur reference

    yuv file - DATA0000.yuv

    bmp   - img.bmp

     

     

    regards,

    Nandha

     

  • Hello nandha, It looks like you got the same problem than me. The first thing to do is to configure your sensor to send a regular test pattern. For me it was a classical color bars. As you can read my comment I have:

    1-removed some osa_align function for Hsize capture (number of horizontal pixel) in the av_server software of IPNC. With that there was no more band of blue data on top (i had different color but i guess it is a good start). There there was no more "header" zone. There were colors bars but with bad colors. This is typical of YUV components swapping.

    2-If Iooked at the YUV data, they were badly ordered. using the moduletest software it looked like it came from the resizer as the isif output image in ram was good. Anyway I had to invert my data in ISIF to get back on my feet.

    Hope this can help.

     

  • Hi reda38,anushman

    Thanks for ur help,

    anyway i removed the strips and pink noises from the image,but i m not getting any color on the image ,getting only black and white image

    plz find the attached  image

     

     

    regards,

    Nandha

  • There can be muliple reasons for this kind of image.

    1. If you are using raw data input, the your RGB2YUV matrix etc. are not correct.

    2. You are not getting the UV data captured somehow.

    What exactly is this image? Is this encoded output? Can you please ensure that you dump the output after capture and then share the YUV data so that we can look at it.

    Are you using raw input capture or YUV input capture?

    Regards,

    Anshuman

  • Hi,

    I m using yuv input capture

    Straming through vlc is perfect , colors also perfect(checked with color bars it is also perfect)

    PFA attached the yuv file

    regards

    Nandha

    file.tar.gz
  • Hi,

    1.Firstly how can we configure the sensor to send a regular test pattern as you have said that a classical color bar.Anyway it will only capture what the camera is capturing live.I am working on Appro DM368.Is there any isif setting by which we can configure it to send some color pattern instead of what is captured by the camera.

    Also how can we invert the image output. from the sensor.

    a.design.Also when i am trying to do ./moduletest.out drv_isif i am getting the following output.

    # ./moduletest.out drv_isif                                                     
                                                                                    
     CLK Hz,                                                                        
     ARM   Hz =  432000000                                                          
     DDR   Hz =  340000000                                                          
     VPSS  Hz =  340000000                                                          
     IMCOP Hz =  340000000                                                          
                                                                                    
     DRV LDC: GetConfig 0003 0x0                                                    
     [OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] ... Done. [1683076 bytes
     ISIF: Opening imager.                                                          
    ############OPEN###########                                                     
    ==========>>>> Start X,Y = 52,18                                                
     Sensor Mode Info,                                                              
     Width      =  744                                                              
     Height     =  516                                                              
     fps        =   30                                                              
     Bin Enable =    0                                                              
                                                                                    
     Sensor Frame Timing Info,                                                      
     fps                  = 30                                                      
     t_frame (ns)         = 33333334.000000                                         
     t_row   (ns)         = 25687.500000                                            
     t_pclk  (ns)         = 15.625000                                               
     W                    = 744                                                     
     H                    = 516                                                     
     SW                   = 1125                                                    
     SD                   = 0                                                       
     HB                   = 450                                                     
     VB                   = 781                                                     
     HBmin                = 450                                                     
     VBmin                = 9                                                       
     f_pclk               = 64000000                                                
     shutterOverhead (ns) = 6656.250000                                             
     col_size             = 744                                                     
     row_size             = 516                                                     
     col_bin              = 0                                                       
     row_bin              = 0                                                       
     col_start            = 728                                                     
     row_start            = 652                                                     
     pll_M                = 16                                                      
     pll_N                = 1                                                       
     pll_DIV              = 1                                                       
                                                                                    
    ############reset###########                                                    
    ############SPI OPEN###########                                                 
    spi mode: 16                                                                    
    bits per word: 8                                                                
    max speed: 12000000 Hz (12000 KHz)                                              
    ############SET REG###########                                                  
    ############OPEN END###########                                                 
     ISIF: Opening ISIF.                                                            
    ================> 786432, 0, 1735                                               
    Floating point exception

    Any opinions for getting this floating point exeception.

    Thanks and Regards,

    Mayank