=cut
*/
void i_rgb_to_hsvf(i_fcolor *color) {
- double h, s, v;
+ double h = 0, s, v;
double temp;
double Cr, Cg, Cb;
=cut
*/
void i_rgb_to_hsv(i_color *color) {
- double h, s, v;
+ double h = 0, s, v;
double temp;
double Cr, Cg, Cb;
FT_Glyph_Metrics *gm;
int start = 0;
int loadFlags = FT_LOAD_DEFAULT;
- int rightb;
+ int rightb = 0;
mm_log((1, "i_ft2_bbox(handle %p, cheight %f, cwidth %f, text %p, len %d, bbox %p)\n",
handle, cheight, cwidth, text, len, bbox));
static int tiff_load_ifd(imtiff *tiff, unsigned long offset);
static void tiff_final(imtiff *tiff);
static void tiff_clear_ifd(imtiff *tiff);
+#if 0 /* currently unused, but that may change */
static int tiff_get_bytes(imtiff *tiff, unsigned char *to, size_t offset,
size_t count);
+#endif
static int tiff_get_tag_double(imtiff *, int index, double *result);
static int tiff_get_tag_int(imtiff *, int index, int *result);
static unsigned tiff_get16(imtiff *, unsigned long offset);
+ 0x10000 * tiff->base[offset+1] + 0x1000000 * tiff->base[offset];
}
+#if 0 /* currently unused, but that may change */
+
/*
=item tiff_get_bytes
return 1;
}
+#endif
+
/*
=item tiff_get16s
header->colormap = (headbuf[100]<<24) + (headbuf[101]<<16)+(headbuf[102]<<8)+headbuf[103];
}
+#if 0 /* this is currently unused */
/*
=item rgb_header_pack(header, headbuf)
return -1;
}
-
+#endif
for(y=0; y<height; y++) {
for(c=0; c<channels; c++) {
unsigned long iidx = 0, oidx = 0, span = 0;
- unsigned char cval;
+ unsigned char cval = 0;
int rle = 0;
int ci = height*c+y;
int datalen = lengthtab[ci];
sx = (x * matrix[0] + y * matrix[1] + matrix[2]) / sz;
sy = (x * matrix[3] + y * matrix[4] + matrix[5]) / sz;
}
+ else {
+ sx = sy = 0;
+ }
/* anything outside these ranges is either a broken co-ordinate
or outside the source */
sx = (x * matrix[0] + y * matrix[1] + matrix[2]) / sz;
sy = (x * matrix[3] + y * matrix[4] + matrix[5]) / sz;
}
+ else {
+ sx = sy = 0;
+ }
/* anything outside these ranges is either a broken co-ordinate
or outside the source */
for (y = 0; y < y_out; ++y) {
if (y_out == src->ysize) {
/* no vertical scaling, just load it */
- int x, ch;
#ifdef IM_EIGHT_BIT
+ int x, ch;
/* load and convert to doubles */
IM_GLIN(src, 0, src->xsize, y, in_row);
for (x = 0; x < src->xsize; ++x) {
}
/* we've accumulated a vertically scaled row */
if (x_out == src->xsize) {
- int x, ch;
#if IM_EIGHT_BIT
+ int x, ch;
/* no need to scale, but we need to convert it */
for (x = 0; x < x_out; ++x) {
for (ch = 0; ch < result->channels; ++ch)