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.

jamespollard
Posts: 1
Joined: Thu Dec 05, 2024 1:05 am

Re: RAW format support in esp32 camera driver

Postby jamespollard » Thu Dec 05, 2024 1:08 am

Hi there,

I'm having exactly the same issue as you are - care to share your entire code (main.c and any modified esp32-camera lib files)?

I'm desperate to get a fix for this - so hopefully we can figure it out together!

James

soma1729
Posts: 1
Joined: Sat Apr 12, 2025 11:52 pm

Re: RAW format support in esp32 camera driver

Postby soma1729 » Sat Apr 12, 2025 11:55 pm

I'll be working on this too.

Photogrammetry application where i want access to all 5 million raw pixels (whether they Red, Green, or Blue)

Will report back when I have some sensible data out.

Also keen on windowing (so that it can be piped even in tiny RAM of ESP32 with no PSRAM)

freedaV
Posts: 1
Joined: Thu May 22, 2025 2:18 pm

Re: RAW format support in esp32 camera driver

Postby freedaV » Thu May 22, 2025 2:25 pm

Hello,

I am using the Adafruit ESP32 Feather V2 connected to the OV5640 Camera Module. I am also using the Ethernet Feather to send the frames to my PC over an ethernet connection.

I want to have the highest frame size and rawest pixel format for my project without the ESP crashing. I have also stumbled upon the same problem, that the RAW format is not supported by the drivers.

Have you done any progress in making it work?

Cheers,
freeda

Who is online

Users browsing this forum: Applebot, meta-externalagent and 3 guests