RAW format support in esp32 camera driver

bvpmysore
Posts: 2
Joined: Tue Oct 29, 2024 2:54 am

RAW format support in esp32 camera driver

Postby bvpmysore » Tue Oct 29, 2024 5:54 am

We are using esp32s3 board with OV5640 sensor.
I understand that OV5640 support RAW Bayer output. However, I couldn't see any support in ESP32-camera driver.

I have modifed esp32-camera\target\esp32s3\ll_cam.c file to add support for PIXFORMAT_RAW,
inside ll_cam_set_sample_mode() function

else if(pix_format == PIXFORMAT_RAW){
cam->in_bytes_per_pixel = 1; //ADDED TO SUPPORT RAW FORMAT
cam->fb_bytes_per_pixel = 1;
}

In esp32-camera\driver\cam_hal.c file, I observed the following function

cam_dma_config()-->ll_cam_dma_sizes()-->ll_cam_calc_rgb_dma()

If not jpeg mode " ll_cam_calc_rgb_dma() " function will be called. Is this function applicable to only PIXFORMAT_RGB565 or will this also work fine for PIXFORMAT_RAW?

If anyone has any information, kindly let me know. It would be appreciated and useful for me.

Who is online

Users browsing this forum: No registered users and 61 guests