[gimp] file-jpeg: (save) Change default restart MCU rows to 16
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] file-jpeg: (save) Change default restart MCU rows to 16
- Date: Fri, 10 Jun 2011 18:14:13 +0000 (UTC)
commit f03aef5a5ee2884646a105c7c49691a819e212a5
Author: Mukund Sivaraman <muks banu com>
Date: Fri Jun 10 23:34:44 2011 +0530
file-jpeg: (save) Change default restart MCU rows to 16
With a 1x1,1x1,1x1 interleave, this will result in a restart
marker every 128 rows of pixels, which is more suitable for a
default setting.
plug-ins/file-jpeg/jpeg-save.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/file-jpeg/jpeg-save.c b/plug-ins/file-jpeg/jpeg-save.c
index 9a005df..abe0eba 100644
--- a/plug-ins/file-jpeg/jpeg-save.c
+++ b/plug-ins/file-jpeg/jpeg-save.c
@@ -60,6 +60,7 @@
#define DEFAULT_BASELINE TRUE
#define DEFAULT_SUBSMP JPEG_SUPSAMPLING_1x1_1x1_1x1
#define DEFAULT_RESTART 0
+#define DEFAULT_RESTART_MCU_ROWS 16
#define DEFAULT_DCT 0
#define DEFAULT_PREVIEW FALSE
#define DEFAULT_EXIF TRUE
@@ -945,7 +946,8 @@ save_dialog (void)
/*pg.scale_data = scale_data;*/
pg.restart = restart_markers_scale = spinbutton =
gimp_spin_button_new (&pg.scale_data,
- (jsvals.restart == 0) ? 1 : jsvals.restart,
+ ((jsvals.restart == 0) ?
+ DEFAULT_RESTART_MCU_ROWS : jsvals.restart),
1.0, 64.0, 1.0, 1.0, 0, 1.0, 0);
gtk_table_attach (GTK_TABLE (table), spinbutton, 5, 6, 1, 2,
GTK_FILL, GTK_FILL, 0, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]