ports/all: Update framebuffer API.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
iabdalkader 2025-09-02 15:56:15 +02:00
parent 4d69dd396c
commit 66c8e7e8d5
5 changed files with 5 additions and 5 deletions

View File

@ -348,7 +348,7 @@ int alif_csi_snapshot(omv_csi_t *csi, image_t *dst_image, uint32_t flags) {
} }
// Initialize a frame using the frame buffer. // Initialize a frame using the frame buffer.
framebuffer_init_image(fb, dst_image); framebuffer_to_image(fb, dst_image);
// Set the frame's pixel format to bayer for raw sensors. // Set the frame's pixel format to bayer for raw sensors.
if (csi->raw_output && csi->pixformat != PIXFORMAT_BAYER) { if (csi->raw_output && csi->pixformat != PIXFORMAT_BAYER) {

View File

@ -470,7 +470,7 @@ int imx_csi_snapshot(omv_csi_t *csi, image_t *image, uint32_t flags) {
} }
// Set the user image. // Set the user image.
framebuffer_init_image(fb, image); framebuffer_to_image(fb, image);
return 0; return 0;
} }

View File

@ -194,7 +194,7 @@ static int nrf_csi_snapshot(omv_csi_t *csi, image_t *image, uint32_t flags) {
framebuffer_release(fb, FB_FLAG_FREE); framebuffer_release(fb, FB_FLAG_FREE);
// Set the user image. // Set the user image.
framebuffer_init_image(fb, image); framebuffer_to_image(fb, image);
return 0; return 0;
} }

View File

@ -225,7 +225,7 @@ static int rp2_csi_snapshot(omv_csi_t *csi, image_t *image, uint32_t flags) {
fb->pixfmt = csi->pixformat; fb->pixfmt = csi->pixformat;
// Set the user image. // Set the user image.
framebuffer_init_image(fb, image); framebuffer_to_image(fb, image);
return 0; return 0;
} }

View File

@ -758,7 +758,7 @@ static int stm_csi_snapshot(omv_csi_t *csi, image_t *image, uint32_t flags) {
#endif #endif
// Set the user image. // Set the user image.
framebuffer_init_image(fb, image); framebuffer_to_image(fb, image);
return 0; return 0;
} }