[gegl] raw-load: remoe bps property, we always want 16bpc buffers
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] raw-load: remoe bps property, we always want 16bpc buffers
- Date: Mon, 15 Feb 2016 21:45:34 +0000 (UTC)
commit 5510aab6fbf13362cecd3fa36c635c4e334b546d
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Feb 15 22:45:21 2016 +0100
raw-load: remoe bps property, we always want 16bpc buffers
operations/external/raw-load.c | 21 +++++----------------
1 files changed, 5 insertions(+), 16 deletions(-)
---
diff --git a/operations/external/raw-load.c b/operations/external/raw-load.c
index 8c48cbd..9c005fa 100644
--- a/operations/external/raw-load.c
+++ b/operations/external/raw-load.c
@@ -27,7 +27,6 @@
property_file_path (path, "File", "")
description (_("Path of file to load."))
property_int (image_num, "Image number", 0)
-property_int (bps, "bits per sample", 16)
property_int (quality, "quality", 10)
#else
@@ -93,7 +92,7 @@ prepare (GeglOperation *operation)
p->LibRaw->params.gamm[1] = 1.0;
p->LibRaw->params.no_auto_bright = 1;
- p->LibRaw->params.output_bps = o->bps > 8 ? 16 : 8;
+ p->LibRaw->params.output_bps = 16;
p->LibRaw->params.user_qual = o->quality;
if ((ret = libraw_open_file(p->LibRaw, o->path)) != LIBRAW_SUCCESS)
@@ -170,20 +169,10 @@ process (GeglOperation *operation,
rect.width = p->image->width;
rect.height = p->image->height;
- if (p->image->bits == 8)
- {
- if (p->image->colors == 1)
- format = babl_format ("Y u8");
- else // 3 color channels
- format = babl_format ("RGB u8");
- }
- else // 16-bit
- {
- if (p->image->colors == 1)
- format = babl_format ("Y u16");
- else // 3 color channels
- format = babl_format ("RGB u16");
- }
+ if (p->image->colors == 1)
+ format = babl_format ("Y u16");
+ else // 3 color channels
+ format = babl_format ("RGB u16");
gegl_buffer_set (output, &rect, 0, format, p->image->data, GEGL_AUTO_ROWSTRIDE);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]