Compare commits
No commits in common. "d20c6469c0f420ebf16499881b28e2b5539fa248" and "f74e7c34d5d147c6c326accbcc14b5dc92b63cf7" have entirely different histories.
d20c6469c0
...
f74e7c34d5
@ -501,8 +501,6 @@ fastiv_browser_init(FastivBrowser *self)
|
|||||||
self->glow = cairo_image_surface_create(CAIRO_FORMAT_A1, 0, 0);
|
self->glow = cairo_image_surface_create(CAIRO_FORMAT_A1, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: "It is important to note that when an image with an alpha channel is
|
|
||||||
// scaled, linear encoded, pre-multiplied component values must be used!"
|
|
||||||
static cairo_surface_t *
|
static cairo_surface_t *
|
||||||
rescale_thumbnail(cairo_surface_t *thumbnail)
|
rescale_thumbnail(cairo_surface_t *thumbnail)
|
||||||
{
|
{
|
||||||
|
@ -44,9 +44,6 @@
|
|||||||
#define WUFFS_CONFIG__MODULE__ZLIB
|
#define WUFFS_CONFIG__MODULE__ZLIB
|
||||||
#include "wuffs-mirror-release-c/release/c/wuffs-v0.3.c"
|
#include "wuffs-mirror-release-c/release/c/wuffs-v0.3.c"
|
||||||
|
|
||||||
#include <glib/gstdio.h>
|
|
||||||
#include <spng.h>
|
|
||||||
|
|
||||||
#include "xdg.h"
|
#include "xdg.h"
|
||||||
#include "fastiv-io.h"
|
#include "fastiv-io.h"
|
||||||
|
|
||||||
@ -595,6 +592,7 @@ fastiv_io_open_from_data(const char *data, size_t len, const gchar *path,
|
|||||||
}
|
}
|
||||||
#endif // HAVE_GDKPIXBUF ------------------------------------------------------
|
#endif // HAVE_GDKPIXBUF ------------------------------------------------------
|
||||||
|
|
||||||
|
// TODO(p): Integrate gdk-pixbuf as a fallback (optional dependency).
|
||||||
set_error(error, "unsupported file type");
|
set_error(error, "unsupported file type");
|
||||||
}
|
}
|
||||||
return surface;
|
return surface;
|
||||||
@ -602,6 +600,11 @@ fastiv_io_open_from_data(const char *data, size_t len, const gchar *path,
|
|||||||
|
|
||||||
// --- Thumbnails --------------------------------------------------------------
|
// --- Thumbnails --------------------------------------------------------------
|
||||||
|
|
||||||
|
// NOTE: "It is important to note that when an image with an alpha channel is
|
||||||
|
// scaled, linear encoded, pre-multiplied component values must be used!"
|
||||||
|
#include <glib/gstdio.h>
|
||||||
|
#include <spng.h>
|
||||||
|
|
||||||
static int // tri-state
|
static int // tri-state
|
||||||
check_spng_thumbnail_texts(struct spng_text *texts, uint32_t texts_len,
|
check_spng_thumbnail_texts(struct spng_text *texts, uint32_t texts_len,
|
||||||
const gchar *target, time_t mtime)
|
const gchar *target, time_t mtime)
|
||||||
|
@ -12,7 +12,6 @@ dependencies = [
|
|||||||
dependency('pixman-1'),
|
dependency('pixman-1'),
|
||||||
libraw,
|
libraw,
|
||||||
librsvg,
|
librsvg,
|
||||||
gdkpixbuf,
|
|
||||||
meson.get_compiler('c').find_library('m', required : false),
|
meson.get_compiler('c').find_library('m', required : false),
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -32,6 +31,8 @@ executable('fastiv', 'fastiv.c', 'fastiv-view.c', 'fastiv-io.c',
|
|||||||
install : true,
|
install : true,
|
||||||
dependencies : [dependencies])
|
dependencies : [dependencies])
|
||||||
|
|
||||||
|
# TODO(p): See fastiv_io_open(), consider optionally integrating this.
|
||||||
|
gdk_pixbuf = dependency('gdk-pixbuf-2.0', required : false)
|
||||||
if gdk_pixbuf.found()
|
if gdk_pixbuf.found()
|
||||||
executable('io-benchmark', 'fastiv-io-benchmark.c', 'fastiv-io.c', 'xdg.c',
|
executable('io-benchmark', 'fastiv-io-benchmark.c', 'fastiv-io.c', 'xdg.c',
|
||||||
build_by_default : false,
|
build_by_default : false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user