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.

DM3730 ISP JPEG capture

Hi.

I have camera module OV5640 and Beagleboard-xM, linux-2.6.37 from DVSDK-4.6.

I can capture Image in YUV422 format (parallel connection). Now I want capture image in JPEG.

How must I configure ISP for capture JPEG image?

In ISP driver I don't see anything to configure ISP_CTRL.JPEG_FLUSH bit. And in media-ctl source to.

Does current ISP driver support capture jpeg image?

And I have question about camera module, may be some body help me.

My camera module is e-CAM52_5640_MOD. http://www.e-consystems.com/5MP-HDCameraBoard-omap-am-dm37x.asp#CamFeatures

I write simple driver for this module and can capture image. But how can I use auto focus in this module? All example in internet doesn't work.

BR,

Michael

  • Hi Michael,

    You can find useful information about camera ISP and capturing in JPEG format in the Technical Reference Manual at the link:

    http://www.ti.com/lit/ug/spruf98x/spruf98x.pdf

    but I note the important settings:

    ISP_CTRL [30] JPEG_FLUSH bit must be set as you made yet.

    In addition for JPEG data coming from the camera parallel interface (CPI), the following settings apply for proper CCDC configuration:
    • ISP_CTRL[29] CCDC_WEN_POL = Depending on the JPEG sensor
    • CCDC_SYN_MODE[5] EXWEN = 1
    • CCDC_SYN_MODE[13:12] INPMOD = 0
    • CCDC_SYN_MODE[11] PACK8 = 1
    • CCDC_SYN_MODE[10:8] DATSIZ =7
    • CCDC_CFG[8] WENLOG = 1
    • CCDC_VERT_LINES[14:0] NLV = 0
    • CCDC_HSIZE_OFF[15:0] LNOFST = 0

    If you are using IVA subsystem to decode a bitstream, the iVLCD must be initialized correctly by initializing the iVLCD control registers and setting up the UVLD symbol and control tables. You can find necessary register's configuration for standard algorithms including JPEG in Table 5-19.

    BR

    Tsvetolin Shulev

  • Thanks for help.

    I must implement CCDC configuration in omap3-isp driver or in my OV5640 driver?

    BR

    Michael

  • Hi Michael,

    I recommend you to create a separate driver for initialization and managing the JPEG capture. According to me this is the clearest way to use the JPEG capture. This would help you to make easier developing and testing including using static jpeg pictures stored in file to ensure that the JPEG encoder work correct. The next step will be encoding video stream from the sensor.

    You could implement the CCDC configuration in the OV5640 driver of course.

    BR

    Tsvetolin Shulev

  • What about autofocus?

    Where can I find guide how implement autofocus in camera driver?

    BR

    Michael

  • Hi Michael,

    You have to make use of VIDIOC_QUERYCTRL and V4L2_SENS_TRIG_FOCUS IOCTL for performing single trigger auto focus.

    Regards,

    Sathya Kumar P

  • This IOCTL for user application.

    I need implement autofocus in camera driver.