1
0

image_hash_matcher.h 548 B

12345678910111213141516171819
  1. #include <stdlib.h>
  2. #include <stdint.h> // uintptr_t
  3. #include <vips/vips.h>
  4. #ifndef TESTUTIL_IMAGE_HASH_MATCHER_H
  5. #define TESTUTIL_IMAGE_HASH_MATCHER_H
  6. // Function to read VipsImage as RGBA into memory buffer
  7. int vips_image_read_from_to_memory(
  8. void *in, size_t in_size, // inner raw buffer and its size
  9. void **out, size_t *out_size, // out raw buffer an its size
  10. int *out_width, int *out_height // out image width and height
  11. );
  12. // Function to free/discard the memory buffer
  13. void vips_memory_buffer_free(void *buf);
  14. #endif