[gegl] operations: Move registration of CMYK u8 format into Babl
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations: Move registration of CMYK u8 format into Babl
- Date: Tue, 12 Aug 2014 00:06:16 +0000 (UTC)
commit 7b06a12045dd9440e36d9fe9e4e354e65f25b748
Author: Jon Nordby <jononor gmail com>
Date: Tue Aug 12 01:51:11 2014 +0200
operations: Move registration of CMYK u8 format into Babl
JPEG CMYK support now wuntime-dependent on
babl >= 21571c7bbd3a27bd78d78598a6732741a95fb265
operations/external/jpg-load.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/operations/external/jpg-load.c b/operations/external/jpg-load.c
index 68a137e..d7960e8 100644
--- a/operations/external/jpg-load.c
+++ b/operations/external/jpg-load.c
@@ -60,23 +60,7 @@ babl_from_jpeg_colorspace(J_COLOR_SPACE space)
else if (space == JCS_RGB)
format = babl_format ("R'G'B' u8");
else if (space == JCS_CMYK) {
- static gboolean reg = FALSE;
- if (!reg) {
- // TODO: move into babl?
- reg = TRUE;
- babl_format_new (
- "name", "CMYK u8",
- babl_model ("CMYK"),
- babl_type ("u8"),
- babl_component ("cyan"),
- babl_component ("magenta"),
- babl_component ("yellow"),
- babl_component ("key"),
- NULL
- );
- }
format = babl_format("CMYK u8");
- g_assert(format);
}
return format;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]