diff options
author | pommicket <pommicket@gmail.com> | 2025-02-20 21:07:14 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-02-20 21:07:14 -0500 |
commit | 0586767eef4d1ebfb2c065106b67b2ef3639b77c (patch) | |
tree | 29e7e2984dc86c4f0e45cbe67dc91bda9007fddd /camera.h | |
parent | 068e6de0885e274cb9528d69968f9583d7de0793 (diff) |
serial numbers
Diffstat (limited to 'camera.h')
-rw-r--r-- | camera.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |