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.

Camera on dm368

Hi ,

Am using customised board based on dm368 which has ovsensor 2715 which gives only RAW 10bit data as output . Capturing is happening successfully which i could trace in some Tuning player.What should i do , if i want to put those data to LCD ?

Is it supported in dm368? is der any way to do this ?

Regards

Rohit Y Shanbhag

  • Hi Rohit,

    There are numerous examples for loopback demos - you can check dvsdk-demos or gstreamer (depending on your dvsdk version).

    If you are currently verifying upto Bayer data, then you'll need to get the IPIPE working so that the YUV data is available.

    Regards,

    Akshay Panday

    www.pathpartnertech.com

  • HI Akshay ,

    Am using ti-dvsdk_dm368-evm_4_02_00_06

    Can you give me a gstreamer pipeline command which will take yuv file as input and put on LCD on dm368. am not getting link for gstreamer .

    Regards

    Rohit

  • Hi Rohit,

    Have you referred to this http://processors.wiki.ti.com/index.php/Example_GStreamer_Pipelines ?

    It covers almost all the use-cases.

    Regards,

    Akshay

  • HI Ti

    I just ran teh given example to capture , resize and display on LCD

    But it gives me this log with some pattern on LCD .

    root@dm368-evm:~/rohit# ./video_capture_rsz 2
    vpfe-capture vpfe-capture: width = 1920, height = 1080, bpp = 1
    vpfe-capture vpfe-capture: adjusted width = 1920, height = 1080, bpp = 1,
    bytesperline = 1920, sizeimage = 2073600
    Input video standard is 1080P-30.Buffer:0 phy:0 mmap:0x40164000 length:2073600
    Buffer:1 phy:1fb000 mmap:0x4035f000 length:2073600
    Buffer:2 phy:3f6000 mmap:0x4055a000 length:2073600
    output1_size = 2davinci_resizer davinci_resizer.2: Operation mode doesn't match with
    current hw mode
    61120
    output2_size = 261120
    Configuring resizer in the chain mode
    Opening resizer device, /dev/davinci_resizer
    Can't get operation mode
    : Invalid argument
     vpbe_encoder_enumoutput LCD
    davinci_enc_set_mode_platform called
    
    
    *******************davinci_enc_priv_setmode calling mode 6
    case VID_ENC_IF_PRGB: called in davinci_enc_priv_setmode
    *******************davinci_enc_priv_setmode calling name 640x480
    ******************* davinci_enc_set_prgbcalling *****
    
    
     davinci_enc_set_prgbcalling
    enableDigitalOutput called
    
    
    enableDigitalOutput called cpu_is_davinci_dm368
    
    
    davinci_enc_set_prgb called cpu_is_davinci_dm365
    davinci_enc_set_prgb : pinmux1  calling
    
    
    ************* pinmux 4 val before = 0x55737cff
    ****** setting display_timing davinci_enc_set_display_timing called
    
    davinci_enc_set_prgb cpu_is_davinci_dm368 Turn on LCD display
    
    
     Video Interface I/O Control (VIOCTL) val  = 0x00002000
     Clock Control (CLKCTL) val  = 0x00000011
     LCD Output Signal Control (LCDOUT) val  = 0x00000000
     Video Data Processing (VDPRO) val  = 0x00000803
     Sync Control (SYNCCTL) val  = 0x0000000f
     DCLK Control (DCLKCTL) val  = 0x00000800
     DCLK Pattern 0 (DCLKPTN0) val  = 0x00000001
     DCLK Pattern 1 (DCLKPTN1) val  = 0x00000000
     DCLK Pattern 2 (DCLKPTN2) val  = 0x00000000
     DCLK Pattern 3 (DCLKPTN3) val  = 0x00000000
     OSD Clock Control 0 (OSDCLK0) val  = 0x00000000
     OSD Clock Control 1 (OSDCLK1) val  = 0x00000001
     YCbCr Control (YCCCTL) val  = 0x00000000
     Video Mode (VMOD) val  = 0x00000411
     Composite Mode (CVBS) val  = 0x00000000
     pinmux 1 val after = 0x00285555
     pinmux 4 val  = 0x55737cff
     VPSS_CLK_CTRL val after = 0x00000018
     PLLCTL  val  = 0x00000051
     PLLM  val  = 0x00000051
     PREDIV   val  = 0x00008007
     OCSEL  val  = 0x00000010
     OSCDIV1  valu  = 0x00000000
     POSTDIV  val  = 0x00008000
     PLLSTAT  val  = 0x00000006
     ALNCTL   val  = 0x00000040
     SYSTAT    val  = 0x000001ff
     CKEN     val  = 0x00000003
     PLLSECCTL      val  = 0x00410000
     CKEN     val  = 0x00000003
     PLLDIV6      val  = 0x00008011
     CKSTAT       val  = 0x0000000b
     DCHANGE        val  = 0x00000000
     BPDIV         val  = 0x00008000
     PLLCMD          val  = 0x00000001
    davinci_enc_set_mode_platform called
    
    
    *******************davinci_enc_priv_setmode calling mode 6
    case VID_ENC_IF_PRGB: called in davinci_enc_priv_setmode
    *******************davinci_enc_priv_setmode calling name 480x272
    ******************* davinci_enc_set_prgbcalling *****
    
    
     davinci_enc_set_prgbcalling
    enableDigitalOutput called
    
    
    enableDigitalOutput called cpu_is_davinci_dm368
    
    
    davinci_enc_set_prgb called cpu_is_davinci_dm365
    davinci_enc_set_prgb : pinmux1  calling
    
    
    ************* pinmux 4 val before = 0x55737cff
    ****** setting display_timing davinci_enc_set_display_timing called
    
    davinci_enc_set_prgb cpu_is_davinci_dm368 Turn on LCD display
    
    
     Video Interface I/O Control (VIOCTL) val  = 0x00002000
     Clock Control (CLKCTL) val  = 0x00000011
     LCD Output Signal Control (LCDOUT) val  = 0x00000000
     Video Data Processing (VDPRO) val  = 0x00000803
     Sync Control (SYNCCTL) val  = 0x0000000f
     DCLK Control (DCLKCTL) val  = 0x00000800
     DCLK Pattern 0 (DCLKPTN0) val  = 0x00000001
     DCLK Pattern 1 (DCLKPTN1) val  = 0x00000000
     DCLK Pattern 2 (DCLKPTN2) val  = 0x00000000
     DCLK Pattern 3 (DCLKPTN3) val  = 0x00000000
     OSD Clock Control 0 (OSDCLK0) val  = 0x00000000
     OSD Clock Control 1 (OSDCLK1) val  = 0x00000001
     YCbCr Control (YCCCTL) val  = 0x00000000
     Video Mode (VMOD) val  = 0x00000411
     Composite Mode (CVBS) val  = 0x00000000
     pinmux 1 val after = 0x00285555
     pinmux 4 val  = 0x55737cff
     VPSS_CLK_CTRL val after = 0x00000018
     PLLCTL  val  = 0x00000051
     PLLM  val  = 0x00000051
     PREDIV   val  = 0x00008007
     OCSEL  val  = 0x00000010
     OSCDIV1  valu  = 0x00000000
     POSTDIV  val  = 0x00008000
     PLLSTAT  val  = 0x00000006
     ALNCTL   val  = 0x00000040
     SYSTAT    val  = 0x000001ff
     CKEN     val  = 0x00000003
     PLLSECCTL      val  = 0x00410000
     CKEN     val  = 0x00000003
     PLLDIV6      val  = 0x00008011
     CKSTAT       val  = 0x0000000b
     DCHANGE        val  = 0x00000000
     BPDIV         val  = 0x00008000
     PLLCMD          val  = 0x00000001
    davinci_v4l2 davinci_v4l2.1: Before finishing with S_FMT:
    layer.pix_fmt.bytesperline = 960,
     layer.pix_fmt.width = 480,
     layer.pix_fmt.height = 272,
     layer.pix_fmt.sizeimage =261120
    davinci_v4l2 davinci_v4l2.1: pixfmt->width = 480,
     layer->layer_info.config.line_length= 960
    Enabled streaming on display device
    Segmentation fault

    Regards
    Rohit Y shanbhag