[gimp/gimp-2-10] Issue #7091: Exporting 16-bit precision images to raw *.data.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] Issue #7091: Exporting 16-bit precision images to raw *.data.
- Date: Wed, 15 Jun 2022 21:10:05 +0000 (UTC)
commit 0963550b2dc834683a8fce29a9b2158a5026356a
Author: Jehan <jehan girinstud io>
Date: Sat Jun 11 00:01:06 2022 +0200
Issue #7091: Exporting 16-bit precision images to raw *.data.
Just use the image format as-is. The only problem now is that we don't
support all formats for loading in file-raw yet.
(cherry picked from commit 01e0675f67c2efd67afdb10bc9a21c934e388582)
Conflicts:
plug-ins/common/file-raw-data.c
plug-ins/common/file-raw-data.c | 24 +-----------------------
1 file changed, 1 insertion(+), 23 deletions(-)
---
diff --git a/plug-ins/common/file-raw-data.c b/plug-ins/common/file-raw-data.c
index 33070ea0b5..484ee4c833 100644
--- a/plug-ins/common/file-raw-data.c
+++ b/plug-ins/common/file-raw-data.c
@@ -1146,29 +1146,7 @@ save_image (const gchar *filename,
/* get info about the current image */
buffer = gimp_drawable_get_buffer (drawable_id);
- switch (gimp_drawable_type (drawable_id))
- {
- case GIMP_RGB_IMAGE:
- format = babl_format ("R'G'B' u8");
- break;
-
- case GIMP_RGBA_IMAGE:
- format = babl_format ("R'G'B'A u8");
- break;
-
- case GIMP_GRAY_IMAGE:
- format = babl_format ("Y' u8");
- break;
-
- case GIMP_GRAYA_IMAGE:
- format = babl_format ("Y'A u8");
- break;
-
- case GIMP_INDEXED_IMAGE:
- case GIMP_INDEXEDA_IMAGE:
- format = gimp_drawable_get_format (drawable_id);
- break;
- }
+ format = gimp_drawable_get_format (drawable_id);
n_components = babl_format_get_n_components (format);
bpp = babl_format_get_bytes_per_pixel (format);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]