Files
imgproxy/vips/source.h
Victor Sokolov 30a5122d08 IMG-59: processing_test.go became lazy, added test image hash calculation (#1532)
* lazy processing test

* VHS

* ImageHashMatcher
2025-09-22 19:32:34 +02:00

28 lines
730 B
C

#include <stdlib.h>
#include <stdint.h> // uintptr_t
#include <vips/vips.h>
#include <vips/connection.h>
#ifndef VIPS_IMGPROXY_SOURCE_H
#define VIPS_IMGPROXY_SOURCE_H
// vips async source
typedef struct _VipsImgproxySource {
VipsSource source; // class designator
uintptr_t readerHandle; // async reader handler
} VipsImgproxySource;
// glib class for vips async source
typedef struct _VipsImgproxySourceClass {
VipsSourceClass parent_class;
} VipsImgproxySourceClass;
// creates new vips async source from a reader handle
VipsImgproxySource *vips_new_imgproxy_source(uintptr_t readerHandle);
// unreferences the source, which leads to reader close
void unref_imgproxy_source(VipsImgproxySource *source);
#endif