From 250f2f0f758a5f3ea0f3174843dbf55fc73b1370 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sat, 27 Jan 2024 23:09:32 +0100 Subject: WIP: Thread-safe colour management --- fiv-io.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'fiv-io.h') diff --git a/fiv-io.h b/fiv-io.h index bc88509..94a15e1 100644 --- a/fiv-io.h +++ b/fiv-io.h @@ -28,8 +28,6 @@ typedef struct _FivIoImage FivIoImage; // --- Colour management ------------------------------------------------------- -void fiv_io_cmm_init(void); - // TODO(p): Make it also possible to use Skia's skcms. // TODO(p): Profiles might want to keep references to their CMM contexts. typedef void *FivIoProfile; @@ -39,7 +37,7 @@ void fiv_io_profile_free(FivIoProfile *self); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #define FIV_TYPE_IO_CMM (fiv_io_cmm_get_type()) -G_DECLARE_FINAL_TYPE(FivIoCmm, fiv_io_cmm, FIV, CMM, GObject) +G_DECLARE_FINAL_TYPE(FivIoCmm, fiv_io_cmm, FIV, IO_CMM, GObject) FivIoCmm *fiv_io_cmm_get_default(); @@ -70,8 +68,8 @@ void fiv_io_cmm_page(FivIoCmm *self, FivIoImage *page, FivIoProfile *target, void fiv_io_cmm_any(FivIoCmm *self, FivIoImage *image, FivIoProfile *source, FivIoProfile *target); -FivIoImage *fiv_io_cmm_finalize( - FivIoCmm *self, FivIoImage *image, FivIoProfile *target); +FivIoImage *fiv_io_cmm_finish(FivIoCmm *self, + FivIoImage *image, FivIoProfile *target); // --- Loading ----------------------------------------------------------------- -- cgit v1.2.3-70-g09d2