mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
ports/all: Update framebuffer API.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
parent
4d69dd396c
commit
66c8e7e8d5
@ -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) {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user