[gs-commits] rev 11848 - trunk/gs/base
alexcher at ghostscript.com
alexcher at ghostscript.com
Mon Oct 25 06:23:23 UTC 2010
Author: alexcher
Date: 2010-10-25 06:23:22 +0000 (Mon, 25 Oct 2010)
New Revision: 11848
Modified:
trunk/gs/base/sjpx_luratech.c
Log:
Move initialization of state->alpha flag to the place where it has effect.
Modified: trunk/gs/base/sjpx_luratech.c
===================================================================
--- trunk/gs/base/sjpx_luratech.c 2010-10-25 04:39:51 UTC (rev 11847)
+++ trunk/gs/base/sjpx_luratech.c 2010-10-25 06:23:22 UTC (rev 11848)
@@ -311,7 +311,6 @@
state->inbuf_size = 0;
state->inbuf_fill = 0;
- state->alpha = false;
state->ncomp = 0;
state->bpc = 0;
state->clut = NULL;
@@ -324,6 +323,15 @@
return 0;
}
+/* Set the defaults */
+static int
+s_jpxd_set_defaults(stream_state * ss) {
+ stream_jpxd_state *const state = (stream_jpxd_state *) ss;
+
+ state->alpha = false;
+ return 0;
+}
+
/* write component mapping into 'clut' and return number of used components
*/
static int
@@ -623,7 +631,8 @@
s_jpxd_process,
1024, 1024, /* min in and out buffer sizes we can handle
should be ~32k,64k for efficiency? */
- s_jpxd_release
+ s_jpxd_release,
+ s_jpxd_set_defaults
};
More information about the gs-commits
mailing list