@@ -156,7 +156,7 @@ ImagingFilter3x3(Imaging imOut, Imaging im, const float *kernel, float offset) {
156156 }
157157 } else {
158158 int bigendian = 0 ;
159- if (im -> type == IMAGING_TYPE_SPECIAL ) {
159+ if (im -> type == IMAGING_TYPE_I16 ) {
160160 if (
161161 im -> mode == IMAGING_MODE_I_16B
162162#ifdef WORDS_BIGENDIAN
@@ -173,12 +173,12 @@ ImagingFilter3x3(Imaging imOut, Imaging im, const float *kernel, float offset) {
173173 UINT8 * restrict out = (UINT8 * )imOut -> image [y ];
174174
175175 out [0 ] = in0 [0 ];
176- if (im -> type == IMAGING_TYPE_SPECIAL ) {
176+ if (im -> type == IMAGING_TYPE_I16 ) {
177177 out [1 ] = in0 [1 ];
178178 }
179179 for (x = 1 ; x < xsize - 1 ; x ++ ) {
180180 float ss = offset ;
181- if (im -> type == IMAGING_TYPE_SPECIAL ) {
181+ if (im -> type == IMAGING_TYPE_I16 ) {
182182 ss += kernel_i16 (3 , in1 , x , & kernel [0 ], bigendian );
183183 ss += kernel_i16 (3 , in0 , x , & kernel [3 ], bigendian );
184184 ss += kernel_i16 (3 , in_1 , x , & kernel [6 ], bigendian );
@@ -192,7 +192,7 @@ ImagingFilter3x3(Imaging imOut, Imaging im, const float *kernel, float offset) {
192192 out [x ] = clip8 (ss );
193193 }
194194 }
195- if (im -> type == IMAGING_TYPE_SPECIAL ) {
195+ if (im -> type == IMAGING_TYPE_I16 ) {
196196 out [x * 2 ] = in0 [x * 2 ];
197197 out [x * 2 + 1 ] = in0 [x * 2 + 1 ];
198198 } else {
@@ -316,7 +316,7 @@ ImagingFilter5x5(Imaging imOut, Imaging im, const float *kernel, float offset) {
316316 }
317317 } else {
318318 int bigendian = 0 ;
319- if (im -> type == IMAGING_TYPE_SPECIAL ) {
319+ if (im -> type == IMAGING_TYPE_I16 ) {
320320 if (
321321 im -> mode == IMAGING_MODE_I_16B
322322#ifdef WORDS_BIGENDIAN
@@ -336,13 +336,13 @@ ImagingFilter5x5(Imaging imOut, Imaging im, const float *kernel, float offset) {
336336
337337 out [0 ] = in0 [0 ];
338338 out [1 ] = in0 [1 ];
339- if (im -> type == IMAGING_TYPE_SPECIAL ) {
339+ if (im -> type == IMAGING_TYPE_I16 ) {
340340 out [2 ] = in0 [2 ];
341341 out [3 ] = in0 [3 ];
342342 }
343343 for (x = 2 ; x < xsize - 2 ; x ++ ) {
344344 float ss = offset ;
345- if (im -> type == IMAGING_TYPE_SPECIAL ) {
345+ if (im -> type == IMAGING_TYPE_I16 ) {
346346 ss += kernel_i16 (5 , in2 , x , & kernel [0 ], bigendian );
347347 ss += kernel_i16 (5 , in1 , x , & kernel [5 ], bigendian );
348348 ss += kernel_i16 (5 , in0 , x , & kernel [10 ], bigendian );
@@ -360,7 +360,7 @@ ImagingFilter5x5(Imaging imOut, Imaging im, const float *kernel, float offset) {
360360 out [x ] = clip8 (ss );
361361 }
362362 }
363- if (im -> type == IMAGING_TYPE_SPECIAL ) {
363+ if (im -> type == IMAGING_TYPE_I16 ) {
364364 out [x * 2 + 0 ] = in0 [x * 2 + 0 ];
365365 out [x * 2 + 1 ] = in0 [x * 2 + 1 ];
366366 out [x * 2 + 2 ] = in0 [x * 2 + 2 ];
@@ -471,7 +471,7 @@ ImagingFilter(Imaging im, int xsize, int ysize, const FLOAT32 *kernel, FLOAT32 o
471471 ImagingSectionCookie cookie ;
472472
473473 if (im -> type == IMAGING_TYPE_FLOAT32 ||
474- (im -> type == IMAGING_TYPE_SPECIAL && im -> bands != 1 )) {
474+ (im -> type == IMAGING_TYPE_I16 && im -> bands != 1 )) {
475475 return (Imaging )ImagingError_ModeError ();
476476 }
477477
0 commit comments