summaryrefslogtreecommitdiff
path: root/camera.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-02-20 21:07:14 -0500
committerpommicket <pommicket@gmail.com>2025-02-20 21:07:14 -0500
commit0586767eef4d1ebfb2c065106b67b2ef3639b77c (patch)
tree29e7e2984dc86c4f0e45cbe67dc91bda9007fddd /camera.h
parent068e6de0885e274cb9528d69968f9583d7de0793 (diff)
serial numbers
Diffstat (limited to 'camera.h')
-rw-r--r--camera.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/camera.h b/camera.h
index 5fe1c4d..d4f1a0e 100644
--- a/camera.h
+++ b/camera.h
@@ -4,6 +4,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
+#include <string.h>
#include <GL/glcorearb.h>
typedef uint32_t PixelFormat;
@@ -92,6 +93,10 @@ typedef struct {
#undef declare_proc
} GlProcs;
+static bool hash_eq(Hash h1, Hash h2) {
+ return memcmp(h1.hash, h2.hash, sizeof h1.hash) == 0;
+}
+
void camera_init(const GlProcs *procs);
bool pix_fmt_supported(uint32_t pixfmt);
int picture_format_cmp_resolution(const PictureFormat *a, const PictureFormat *b);