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.

trouble using the image analyzer in CCS5.0.1

I have captured a 1920x1080 YUV 4:2:0 into memory.  When I try to view the image, the viewer indicates "no data available", even though the data in the memory address appears to hold a valid YUV image.  I've attached the properties of my image.  What am I doing wrong?

5808.CCS_5_0_1_imageDisplayIssue.zip

  • Neil,

    I am not sure if the address parameters are able to perform calculations on the image. Can you try to input the calculated addresses in the U and V fields and see if the image is displayed?

    If that still does not work, can you send the raw image so I can try to play with the parameters as well?

    Regards,

    Rafael

  • Rafael:

    Sorry it took so long to respond but I was distracted by other topics.

            I am using the captureVip test program for the 816x.  When the program's call back function is notified of a frame from the Netra's video capture port, I still can't view the raw video using the image viewer.  The VIP is generating packed 422.  I am still getting "No Data Available" from the image viewer.  Attached are the viewer properties, with a screen shot of where I am in the captureVip program.

    Neil3757.noImage.zip

  • Hi Neil,

    Could your provide the raw data in memory that you are trying to display? You can use the Memory Save feature in the memory window. See the video below for an example:

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/CCSv4/Demos/MemorySave_Load.htm

    I recommend saving as a raw binary format instead of the *.dat file in the video. And I would need the data for all three components.

    Thanks

    ki

     

  • 2335.testImage.bin.gz

     

    Ki:

         Sorry for not responding sooner.  I have been on vacation.

         Attached is the memory dump of a 1920x1080i, 4:2:0, semi-planar image that was captured using CCS5.0.2 for Linux.  I cannot figure out how to view the image using the image viewer in CCS.

     

    Neil

  • Neil

    I think I know what is the problem, you need a file that explains what kind of data you have in your file. What you need to do is create a .txt file that has the info and it refers to the image file.  The below directory has a bunch of sample files that you can use for the configuration of the image viewer.

     

    C:\Program Files\Texas Instruments\ccsv5\ccs_base_5.0.1.00036\dvt\ImageAnalyzer\examples

     

    Mohsen

  • <?xml version="1.0" encoding="UTF-8"?> 
    <java version="1.6.0_13" class="java.beans.XMLDecoder"> 
     <object class="com.ti.dvt.ui.views.core.ImageProp"> 
      <void property="delegateProp"> 
       <object class="com.ti.dvt.ui.views.core.YUVProp"> 
        <void property="ULineStride"> 
         <int>1920</int> 
        </void> 
        <void property="UMask"> 
         <long>65280</long> 
        </void> 
        <void property="UPixelStride"> 
         <int>2</int> 
        </void> 
        <void property="UStartAddress"> 
         <string>0x80400000+0x1FA400</string> 
        </void> 
        <void property="UVvs"> 
         <int>2</int> 
        </void> 
        <void property="VLineStride"> 
         <int>1920</int> 
        </void> 
        <void property="VMask"> 
         <long>255</long> 
        </void> 
        <void property="VPixelStride"> 
         <int>2</int> 
        </void> 
        <void property="VStartAddress"> 
         <string>0x80400000+0x1FA400</string> 
        </void> 
        <void property="YLineStride"> 
         <int>1920</int> 
        </void> 
        <void property="YMask"> 
         <long>255</long> 
        </void> 
        <void property="YPixelStride"> 
         <int>1</int> 
        </void> 
        <void property="YStartAddress"> 
         <string>0x80400000</string> 
        </void> 
        <void property="component2Offset"> 
         <int>2073600</int> 
        </void> 
        <void property="component3Offset"> 
         <int>2073600</int> 
        </void> 
        <void property="dataFormat"> 
         <string>Planar</string> 
        </void> 
        <void property="filename1"> 
         <string>/home/vbrick/swng/temp/testImage.bin</string> 
        </void> 
        <void property="imageSource"> 
         <string>File</string> 
        </void> 
        <void property="lineCount"> 
         <int>540</int> 
        </void> 
        <void property="multipleFiles"> 
         <string>Single File with Custom Offsets</string> 
        </void> 
        <void property="pixelCountPerLine"> 
         <int>1920</int> 
        </void> 
        <void property="resolution"> 
         <string>4:2:0</string> 
        </void> 
       </object> 
      </void> 
      <void property="scrollLock"> 
       <boolean>true</boolean> 
      </void> 
     </object> 
    </java> 
    

    Here is the correct properties file for the above image.