[gegl] jpg-save: Set default MCUs and use no restart markers
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] jpg-save: Set default MCUs and use no restart markers
- Date: Thu, 8 Sep 2011 06:55:06 +0000 (UTC)
commit da75c7508d1a16c53787c0b2cdec2e1b2fc36221
Author: Mukund Sivaraman <muks banu com>
Date: Thu Sep 8 12:23:10 2011 +0530
jpg-save: Set default MCUs and use no restart markers
operations/external/jpg-save.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/operations/external/jpg-save.c b/operations/external/jpg-save.c
index 16ed185..11cd2f3 100644
--- a/operations/external/jpg-save.c
+++ b/operations/external/jpg-save.c
@@ -90,6 +90,18 @@ gegl_buffer_export_jpg (GeglBuffer *gegl_buffer,
if (progressive)
jpeg_simple_progression (&cinfo);
+ /* Use 1x1,1x1,1x1 MCUs and no subsampling */
+ cinfo.comp_info[0].h_samp_factor = 1;
+ cinfo.comp_info[0].v_samp_factor = 1;
+ cinfo.comp_info[1].h_samp_factor = 1;
+ cinfo.comp_info[1].v_samp_factor = 1;
+ cinfo.comp_info[2].h_samp_factor = 1;
+ cinfo.comp_info[2].v_samp_factor = 1;
+
+ /* No restart markers */
+ cinfo.restart_interval = 0;
+ cinfo.restart_in_rows = 0;
+
jpeg_start_compress (&cinfo, TRUE);
row_stride = width * 3;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]