Page 1 of 1

ESP32 Camera Driver support for RAW format

Posted: Tue Oct 29, 2024 3:38 am
by bvpmysore
We are using esp32s3 board with OV5640 sensor. For PIXFORMAT_RAW format, we couldn't find support in ll_cam.c
We tried to add support in ll_cam.c in function ll_cam_set_sample_mode()

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

Is this only sufficient? Or do we need to modify anything in dma_config ?
Also, we observed that register 0x3034 is set as 10-bit MIPI mode in set_pll() function
ret = write_reg(sensor->slv_addr, 0x3034, 0x1A);//10bit mode

We tried to capture RAW image in both 10 bit and 8 bit and used Pixel viewer tool to view the image, but we are seeing miss aligned image most of the time. Some time, we are getting proper image and Image captures are inconsistent.

Do anyone faced similar issue ? Any support would be grateful for us.