Windows CE Blog        Embedded Product Design Services

Aug/09

25

OMAP 35x Camera ISP

Recently, we had some queries on how to program the OMAP 35x ISP in Windows CE for a sensor that doesn’t have the ISP inside it. As we know that when there is an ISP inside the camera, we should not use the OMAP 35x’s ISP features and just use the OMAP processor’s camera pipeline to transfer images to the memory.

For more information on OMAP 35x camera driver interface, please see Omap-35x-camera Blog. This blog is more about how to use some of the OMAP 35x ISP’s features to obtain the best performance. This is particularly useful for sensors like OV5630, OV2710 etc.

I will give the overview on the basic register configuration for capturing data from BAYER RAW sensor without using any of Image processing functionalities.

OMAP 35x CAMERA ISP

Following are the register you may need to configure for capturing Bayer RAW data from the sensor.

Camera ISP registers:
For programming interrupt for the End of Frame capture, SYNC and HSYNC detect, PREVIEW done interrupt, RESIZER done interrupt etc. Using ISP registers you would be able control the power state of whole camera ISP

  • ISP_SYSCONFIG
  • ISP_CTRL
  • ISP_IRQ0ENABLE

CCDC:
This unit is responsible for capturing both RAW and YUV data from the sensor.

You may need to program the parameters like Polarity of the VSYNC and HSYNC signals, output format of the sensor (YUV or RAW), Number of Pixels per line, number of lines per frame, number of start line for valid frame, start of valid pixel in each line, number of data bits to sample from the sensor, Bits per pixel, whether output is written to memory or PREVIEW engine. There is also option to pass CCDC output to RESIZER module bypassing PREVIEW, but this configuration is only work for YUV sensors (RESIZER can only work with YUV data).

  • CCDC_PCR
  • CCDC_SYN_MODE
  • CCDC_PIX_LINES
  • CCDC_HORZ_INFO
  • CCDC_VERT_START
  • CCDC_VERT_LINES
  • CCDC_CFG
  • CCDC_FMTCFG
  • CCDC_HSIZE_OFF
  • CCDC_VP_OUT

PREVIEW:

This unit is responsible for doing Color space conversion (Bayer RAW–>YUV), Color Correction (color spectrum of the sensor can be adjusted to the human color spectrum), Gamma Correction, luminance enhancement etc.

You may need to program the parameters like input width and height of the frame to the PREVIEW engine,RGB to YUV conversion coefficients, output data to memory, output data to RESIZER module ,input is from memory or CCDC module, one shot or continuous,YUV data format on the memory, etc.,

  • PRV_PCR
  • PRV_HORZ_INFO
  • PRV_VERT_INFO
  • PRV_CSC0
  • PRV_CSC1
  • PRV_CSC2
  • PRV_DSDR_ADDR

RESIZER:

This unit is straightforward Upsampling and downsampling unit. You may need to program the parameters like input frame width and height, input frame memory address if input is selected as one shot, output frame width and height, output frame memory address, resizing coefficients etc.

  • RSZ_PCR
  • RSZ_OUT_SIZE
  • RSZ_IN_START
  • RSZ_IN_SIZE
  • RSZ_SDR_INADD
  • RSZ_SDR_INOFF
  • RSZ_SDR_OUTADD
  • RSZ_SDR_OUTOFF

Both PREVIEW and RESIZER unit is capable of getting input from the CCDC as well as from memory.

Note:
OMAP35x Camera ISP has internal MMU. If it is enabled then you may need to use virtual address of the image buffer to output data from above units. If MMU is not enabled means then you need to use physical address of the image buffer for programming the output address in the above engines.

For the best quality of the image you may need to make use of all the image processing functionality.

To know more about OMAP35x Camera ISP, refer to the following documentation Texas Instruments - sprufa2b.pdf

RSS Feed

2 Comments for OMAP 35x Camera ISP

Darshan Patel (SquareOne) | September 2, 2009 at 12:14 am

Can you provide more details for the camera driver design for wince for your OMAP camera modules

Author comment by admin | December 1, 2009 at 3:55 pm

“Yes, we provide the video streaming application with source code along with this module. To be precise, once you switch on the overlay from the application, you can see the Video streaming on to the LCD. What is the application you are targeting?”

Leave a comment!

<< Achieving a fully functional Webserver in Windows CE

e-con Systems Exhibits at ESC Bangalore! >>

Find it!

 

e-con Systems is a leading Product Design services company drives a passion of Productizing ideas, e-con so far have developed Smart phones, PDAs, Industrial data loggers, Loyalty terminals, Point of Sale terminals and Reference platforms among others with OS focus on Windows CE 6.0, Windows Mobile and Linux 2.6.25.

e-con is popularly known for its Computer on Modules, Reference Designs and Camera Solutions among others...

Copyright © 2009 w w w . e - c o n s y s t e m s . c o m . | Download Comp any Profile | Sitemap  Windows Embedded Gold Partner