From 0b2293a1b44748e494d9db2ae72c72a16b693a9d Mon Sep 17 00:00:00 2001 From: pommicket Date: Wed, 19 Feb 2025 18:43:35 -0500 Subject: configure image format --- camera.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'camera.h') diff --git a/camera.h b/camera.h index 00c8c07..4888729 100644 --- a/camera.h +++ b/camera.h @@ -103,7 +103,8 @@ PictureFormat camera_closest_resolution(Camera *camera, uint32_t pixfmt, int32_t int32_t camera_frame_width(Camera *camera); int32_t camera_frame_height(Camera *camera); PictureFormat camera_picture_format(Camera *camera); -void camera_write_jpg(Camera *camera, const char *name, int quality); +void camera_save_jpg(Camera *camera, const char *path, int quality); +void camera_save_png(Camera *camera, const char *path); bool camera_next_frame(Camera *camera); void camera_update_gl_textures(Camera *camera, const GLuint textures[3]); const char *camera_name(Camera *camera); -- cgit v1.2.3