aboutsummaryrefslogtreecommitdiff
path: root/fiv-io.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-03-15 03:31:30 +0100
committerPřemysl Eric Janouch <p@janouch.name>2023-03-15 05:52:32 +0100
commit796b05c9a5f04aba87e26c5a8384d84edee20b77 (patch)
tree74b1dbda5521bb39bcf9215c3e884499fca215d2 /fiv-io.h
parent9286858573ef5e430ac2fb24c274a6fcd41a1edd (diff)
downloadfiv-796b05c9a5f04aba87e26c5a8384d84edee20b77.tar.gz
fiv-796b05c9a5f04aba87e26c5a8384d84edee20b77.tar.xz
fiv-796b05c9a5f04aba87e26c5a8384d84edee20b77.zip
Integrate online reverse image search
This makes use of our image processing capabilities in order to turn arbitrary image files into normalized thumbnails, upload them to a temporary host, and pass the resulting URI to a search provider. In future, fiv should ideally run the upload itself, so that its status and any errors are obvious to the user, as well as to get rid of the script's dependency on jq.
Diffstat (limited to 'fiv-io.h')
-rw-r--r--fiv-io.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fiv-io.h b/fiv-io.h
index 9cbe5d8..484e43b 100644
--- a/fiv-io.h
+++ b/fiv-io.h
@@ -1,7 +1,7 @@
//
// fiv-io.h: image operations
//
-// Copyright (c) 2021 - 2022, Přemysl Eric Janouch <p@janouch.name>
+// Copyright (c) 2021 - 2023, Přemysl Eric Janouch <p@janouch.name>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted.
@@ -107,6 +107,8 @@ enum { FIV_IO_SERIALIZE_LOW_QUALITY = 1 << 0 };
void fiv_io_serialize_to_stdout(cairo_surface_t *surface, guint64 user_data);
cairo_surface_t *fiv_io_deserialize(GBytes *bytes, guint64 *user_data);
+GBytes *fiv_io_serialize_for_search(cairo_surface_t *surface, GError **error);
+
// --- Filesystem --------------------------------------------------------------
typedef enum _FivIoModelSort {