Lines Matching defs:CASE
141 // by calling stbi_convert_iphone_png_to_rgb(0), in which case
891 // special case: we've only got the special 0 character at the end
999 #define CASE(a,b) case COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
1003 CASE(1,2) dest[0]=src[0], dest[1]=255;
1005 CASE(1,3) dest[0]=dest[1]=dest[2]=src[0];
1007 CASE(1,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=255;
1009 CASE(2,1) dest[0]=src[0];
1011 CASE(2,3) dest[0]=dest[1]=dest[2]=src[0];
1013 CASE(2,4) dest[0]=dest[1]=dest[2]=src[0], dest[3]=src[1];
1015 CASE(3,4) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2],dest[3]=255;
1017 CASE(3,1) dest[0]=compute_y(src[0],src[1],src[2]);
1019 CASE(3,2) dest[0]=compute_y(src[0],src[1],src[2]), dest[1] = 255;
1021 CASE(4,1) dest[0]=compute_y(src[0],src[1],src[2]);
1023 CASE(4,2) dest[0]=compute_y(src[0],src[1],src[2]), dest[1] = src[3];
1025 CASE(4,3) dest[0]=src[0],dest[1]=src[1],dest[2]=src[2];
1029 #undef CASE
1093 // - non-interleaved case requires this anyway
1446 // no fast case since the first 1D IDCT spread components out
1589 case MARKER_none: // no marker found
1592 case 0xC2: // SOF - progressive
1595 case 0xDD: // DRI - specify restart interval
1600 case 0xDB: // DQT - define quantization table
1618 case 0xC4: // DHT - define huffman table
1751 // use comparisons since in some cases we handle more than one case (e.g. SOF)
2735 case F_none : cur[k] = raw[k]; break;
2736 case F_sub : cur[k] = raw[k]; break;
2737 case F_up : cur[k] = raw[k] + prior[k]; break;
2738 case F_avg : cur[k] = raw[k] + (prior[k]>>1); break;
2739 case F_paeth : cur[k] = (uint8) (raw[k] + paeth(0,prior[k],0)); break;
2740 case F_avg_first : cur[k] = raw[k]; break;
2741 case F_paeth_first: cur[k] = raw[k]; break;
2750 #define CASE(f) \
2751 case f: \
2755 CASE(F_none) cur[k] = raw[k];
2757 CASE(F_sub) cur[k] = raw[k] + cur[k-img_n];
2759 CASE(F_up) cur[k] = raw[k] + prior[k];
2761 CASE(F_avg) cur[k] = raw[k] + ((prior[k] + cur[k-img_n])>>1);
2763 CASE(F_paeth) cur[k] = (uint8) (raw[k] + paeth(cur[k-img_n],prior[k],prior[k-img_n]));
2765 CASE(F_avg_first) cur[k] = raw[k] + (cur[k-img_n] >> 1);
2767 CASE(F_paeth_first) cur[k] = (uint8) (raw[k] + paeth(cur[k-img_n],0,0));
2770 #undef CASE
2773 #define CASE(f) \
2774 case f: \
2778 CASE(F_none) cur[k] = raw[k];
2780 CASE(F_sub) cur[k] = raw[k] + cur[k-out_n];
2782 CASE(F_up) cur[k] = raw[k] + prior[k];
2784 CASE(F_avg) cur[k] = raw[k] + ((prior[k] + cur[k-out_n])>>1);
2786 CASE(F_paeth) cur[k] = (uint8) (raw[k] + paeth(cur[k-out_n],prior[k],prior[k-out_n]));
2788 CASE(F_avg_first) cur[k] = raw[k] + (cur[k-out_n] >> 1);
2790 CASE(F_paeth_first) cur[k] = (uint8) (raw[k] + paeth(cur[k-out_n],0,0));
2793 #undef CASE
2971 case PNG_TYPE('C','g','B','I'):
2975 case PNG_TYPE('I','H','D','R'): {
3003 case PNG_TYPE('P','L','T','E'): {
3017 case PNG_TYPE('t','R','N','S'): {
3037 case PNG_TYPE('I','D','A','T'): {
3054 case PNG_TYPE('I','E','N','D'): {
3735 case 8:
3742 case 16:
3749 case 24:
3756 case 32:
3770 case 1:
3774 case 2:
3779 case 3:
3785 case 4:
3793 // in case we're in RLE mode, keep counting down
4165 case 0: {//uncompressed
4174 case 1://Pure RLE
4196 case 2: {//Mixed RLE
4572 case 0x2C: /* Image Descriptor */
4622 case 0x21: // Comment Extension.
4641 case 0x3B: // gif stream termination code
4816 case 4: output[3] = 1; /* fallthrough */
4817 case 3: output[0] = output[1] = output[2] = 0;
4819 case 2: output[1] = 1; /* fallthrough */
4820 case 1: output[0] = 0;
5062 0.95 during header scan, seek to markers in case of padding