comparison src/libSAD/dither.c @ 4239:51291ce4eb54

some endianness-related changes, corrected error handling
author Eugene Zagidullin <e.asphyx@gmail.com>
date Sun, 03 Feb 2008 19:02:04 +0300
parents 75ea2083e744
children 29c8603a877a
comparison
equal deleted inserted replaced
4238:75ea2083e744 4239:51291ce4eb54
309 case SAD_SAMPLE_S16_BE: 309 case SAD_SAMPLE_S16_BE:
310 case SAD_SAMPLE_U16: 310 case SAD_SAMPLE_U16:
311 case SAD_SAMPLE_U16_LE: 311 case SAD_SAMPLE_U16_LE:
312 case SAD_SAMPLE_U16_BE: priv->output_bits = 16; break; 312 case SAD_SAMPLE_U16_BE: priv->output_bits = 16; break;
313 case SAD_SAMPLE_S24: 313 case SAD_SAMPLE_S24:
314 case SAD_SAMPLE_S24_LE:
315 case SAD_SAMPLE_S24_BE:
314 case SAD_SAMPLE_U24: priv->output_bits = 24; break; 316 case SAD_SAMPLE_U24: priv->output_bits = 24; break;
315 case SAD_SAMPLE_S32: 317 case SAD_SAMPLE_S32:
316 case SAD_SAMPLE_U32: priv->output_bits = 32; break; 318 case SAD_SAMPLE_U32: priv->output_bits = 32; break;
317 case SAD_SAMPLE_FLOAT: break; 319 case SAD_SAMPLE_FLOAT: break;
318 default: 320 default:
329 case SAD_SAMPLE_S16_BE: 331 case SAD_SAMPLE_S16_BE:
330 case SAD_SAMPLE_U16: 332 case SAD_SAMPLE_U16:
331 case SAD_SAMPLE_U16_LE: 333 case SAD_SAMPLE_U16_LE:
332 case SAD_SAMPLE_U16_BE: priv->input_bits = 16; break; 334 case SAD_SAMPLE_U16_BE: priv->input_bits = 16; break;
333 case SAD_SAMPLE_S24: 335 case SAD_SAMPLE_S24:
336 case SAD_SAMPLE_S24_LE:
337 case SAD_SAMPLE_S24_BE:
334 case SAD_SAMPLE_U24: priv->input_bits = 24; break; 338 case SAD_SAMPLE_U24: priv->input_bits = 24; break;
335 case SAD_SAMPLE_S32: 339 case SAD_SAMPLE_S32:
336 case SAD_SAMPLE_U32: priv->input_bits = 32; break; 340 case SAD_SAMPLE_U32: priv->input_bits = 32; break;
337 case SAD_SAMPLE_FIXED32: priv->input_fracbits = inbuf_format->fracbits; break; 341 case SAD_SAMPLE_FIXED32: priv->input_fracbits = inbuf_format->fracbits; break;
338 case SAD_SAMPLE_FLOAT: break; 342 case SAD_SAMPLE_FLOAT: break;