Integrate jpeg-quantsmooth

Also, don't pointlessly store JPEGs in an ARGB Cairo surface.
This commit is contained in:
2021-12-22 10:59:03 +01:00
parent 46edd4406c
commit 2d4cab52b3
11 changed files with 290 additions and 12 deletions

View File

@@ -55,9 +55,10 @@ extern cairo_user_data_key_t fiv_io_key_page_next;
/// There is no wrap-around. This is a weak pointer.
extern cairo_user_data_key_t fiv_io_key_page_previous;
cairo_surface_t *fiv_io_open(const gchar *path, GError **error);
cairo_surface_t *fiv_io_open_from_data(
const char *data, size_t len, const gchar *path, GError **error);
cairo_surface_t *fiv_io_open(
const gchar *path, gboolean enhance, GError **error);
cairo_surface_t *fiv_io_open_from_data(const char *data, size_t len,
const gchar *path, gboolean enhance, GError **error);
int fiv_io_filecmp(GFile *f1, GFile *f2);