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.

C6748 LCDK vpif_lcd_loopback Starterware example

Other Parts Discussed in Thread: SYSBIOS

Hello TI E2E Community,

I am trying to understand the vpif_lcd_loopback example in the Starterware package.  Correct me if I am wrong.  This example captures composite video input D1 size and stores the image in a YCbCr422/YUV422 interlaced or planar format?  I need to have the captured frames in planar format since our existing video analytics only operates on the Y part of the image and needs the data in planar format.  Can some please tell me which, interlaced or planar, format the example saves the image?

Thanks,
JumpStart

  • Hello TI E2E Community,

    I am trying to run the vpif_lcd_loopback demo from Starterware in a sys/bios environment.  The original demo does not run in sys/bios and has a main function that initializes the vpif and goes into a while loop that captures and displays each frame on the lcd output.  I added sys/bios to the demo and created a task. The original code in main function is moved into the task the the only code in the main function now is to start bios.  This is a simple change to the original demo but now the video capture and lcd display does not run at all.  Is there something that I am doing wrong and that I cannot simply move the code from main function to a task?  Need some help here.

    Thanks,
    JumpStart

  • Hi JumpStart,

    I have merged both your forum threads as they appear to be referring to the same topic. The VPIF code in LCDK configures the port in Interlaced mode and the format in which the frame data is received is in form of Top YUV 422 field and Bottom YUV422 which is explained in the Technical reference manual in section 36.2.3. The input can be configured to semi planar format which should make it easy for you to process the luma portion as only the chrominance values will be interleaved.

    The starterware example on the EVM capture data in D1 format but then windows the output buffer to fit the data on the LCD screen, however on the LCDK the output goes to the VGA out so the complete data is sent to the output port. I strongly recommend that you take a look at the source code of the face detect demo provided BIOS C6SDK as the implementation is almost identical to your use case. It is a sysbios example that uses starterware code vpif to lcd loop back example and inserts a OpenCV Object detection code to detect frontal face in the input data stream.

    Face detection example: http://processors.wiki.ti.com/index.php/BIOS_C6SDK_2.0_User_Guide#Face_Detect_Demo

    Regards,

    Rahul

  • Hi Rahul,

    Please correct me if I am wrong. As I understand, OpenCV based code will not run in pure starterware environment. It will need some kind of UNIX environment or in this case the sys/bios environment right?

    The reason for asking this is that I wanted to integrate a simple OpenCV based code in the starterware in CCS v5.1.0. The target is a Beaglebone. Any help would be highly appreciated.

    Regards,

    Pranjal