[gegl] jpg-load: Remove num_components check which is not needed when getting bbox
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] jpg-load: Remove num_components check which is not needed when getting bbox
- Date: Thu, 8 Sep 2011 05:34:09 +0000 (UTC)
commit 1ba0ac815b316d15383d44f31a5e5e14917e638c
Author: Mukund Sivaraman <muks banu com>
Date: Thu Sep 8 11:02:59 2011 +0530
jpg-load: Remove num_components check which is not needed when getting bbox
cinfo.output_components only seems to be populated when the decoder
is started, and we don't do that anymore here.
The main process() routine checks for it.
operations/external/jpg-load.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/operations/external/jpg-load.c b/operations/external/jpg-load.c
index eaacdcd..b98bf86 100644
--- a/operations/external/jpg-load.c
+++ b/operations/external/jpg-load.c
@@ -54,13 +54,6 @@ gegl_jpg_load_query_jpg (const gchar *path,
(void) jpeg_read_header (&cinfo, TRUE);
- if (cinfo.output_components != 3)
- {
- g_warning ("attempted to load non RGB JPEG");
- jpeg_destroy_decompress (&cinfo);
- return -1;
- }
-
if (width)
*width = cinfo.image_width;
if (height)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]