diff options
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); |