1 typedef struct _RunlengthPacket
49 normalized_mean_error
,
50 normalized_maximum_error
;
64 magick_filename
[1664 ];
82 Image
*MinifyImage(Image
*image
)
86 register RunlengthPacket
106 for (x
=0; x
< (image
->columns
-1); x
+=2)
113 total_red
+=( 3 )*(s
->red
); total_green
+=( 3 )*(s
->green
); total_blue
+=( 3 )*(s
->blue
); total_matte
+=( 3 )*(s
->index
); s
++; ; total_red
+=( 7 )*(s
->red
); total_green
+=( 7 )*(s
->green
); total_blue
+=( 7 )*(s
->blue
); total_matte
+=( 7 )*(s
->index
); s
++; ; total_red
+=( 7 )*(s
->red
); total_green
+=( 7 )*(s
->green
); total_blue
+=( 7 )*(s
->blue
); total_matte
+=( 7 )*(s
->index
); s
++; ; total_red
+=( 3 )*(s
->red
); total_green
+=( 3 )*(s
->green
); total_blue
+=( 3 )*(s
->blue
); total_matte
+=( 3 )*(s
->index
); s
++; ;
115 total_red
+=( 7 )*(s
->red
); total_green
+=( 7 )*(s
->green
); total_blue
+=( 7 )*(s
->blue
); total_matte
+=( 7 )*(s
->index
); s
++; ; total_red
+=( 15 )*(s
->red
); total_green
+=( 15 )*(s
->green
); total_blue
+=( 15 )*(s
->blue
); total_matte
+=( 15 )*(s
->index
); s
++; ; total_red
+=( 15 )*(s
->red
); total_green
+=( 15 )*(s
->green
); total_blue
+=( 15 )*(s
->blue
); total_matte
+=( 15 )*(s
->index
); s
++; ; total_red
+=( 7 )*(s
->red
); total_green
+=( 7 )*(s
->green
); total_blue
+=( 7 )*(s
->blue
); total_matte
+=( 7 )*(s
->index
); s
++; ;
117 total_red
+=( 7 )*(s
->red
); total_green
+=( 7 )*(s
->green
); total_blue
+=( 7 )*(s
->blue
); total_matte
+=( 7 )*(s
->index
); s
++; ; total_red
+=( 15 )*(s
->red
); total_green
+=( 15 )*(s
->green
); total_blue
+=( 15 )*(s
->blue
); total_matte
+=( 15 )*(s
->index
); s
++; ; total_red
+=( 15 )*(s
->red
); total_green
+=( 15 )*(s
->green
); total_blue
+=( 15 )*(s
->blue
); total_matte
+=( 15 )*(s
->index
); s
++; ; total_red
+=( 7 )*(s
->red
); total_green
+=( 7 )*(s
->green
); total_blue
+=( 7 )*(s
->blue
); total_matte
+=( 7 )*(s
->index
); s
++; ;
119 total_red
+=( 3 )*(s
->red
); total_green
+=( 3 )*(s
->green
); total_blue
+=( 3 )*(s
->blue
); total_matte
+=( 3 )*(s
->index
); s
++; ; total_red
+=( 7 )*(s
->red
); total_green
+=( 7 )*(s
->green
); total_blue
+=( 7 )*(s
->blue
); total_matte
+=( 7 )*(s
->index
); s
++; ; total_red
+=( 7 )*(s
->red
); total_green
+=( 7 )*(s
->green
); total_blue
+=( 7 )*(s
->blue
); total_matte
+=( 7 )*(s
->index
); s
++; ; total_red
+=( 3 )*(s
->red
); total_green
+=( 3 )*(s
->green
); total_blue
+=( 3 )*(s
->blue
); total_matte
+=( 3 )*(s
->index
); s
++; ;
120 red
=(unsigned short) ((total_red
+63) >> 7);
121 green
=(unsigned short) ((total_green
+63) >> 7);
122 blue
=(unsigned short) ((total_blue
+63) >> 7);
123 index
=(unsigned short) ((total_matte
+63) >> 7);
124 if ((red
== q
->red
) && (green
== q
->green
) && (blue
== q
->blue
) &&
125 (index
== q
->index
) && ((int) q
->length
< 65535L ))
128 return(minified_image
);