Lines Matching refs:prevline
4093 unsigned char* prevline = 0;
4105 CERROR_TRY_RETURN(unfilterScanline(&out[outindex], &in[inindex + 1], prevline, bytewidth, filterType, linebytes));
4107 prevline = &out[outindex];
5158 static void filterScanline(unsigned char* out, const unsigned char* scanline, const unsigned char* prevline,
5168 if(prevline)
5180 if(prevline)
5182 for(i = 0; i < length; i++) out[i] = scanline[i] - prevline[i];
5190 if(prevline)
5192 for(i = 0; i < bytewidth; i++) out[i] = scanline[i] - prevline[i] / 2;
5193 for(i = bytewidth; i < length; i++) out[i] = scanline[i] - ((scanline[i - bytewidth] + prevline[i]) / 2);
5202 if(prevline)
5204 /*paethPredictor(0, prevline[i], 0) is always prevline[i]*/
5205 for(i = 0; i < bytewidth; i++) out[i] = (scanline[i] - prevline[i]);
5208 out[i] = (scanline[i] - paethPredictor(scanline[i - bytewidth], prevline[i], prevline[i - bytewidth]));
5245 const unsigned char* prevline = 0;
5275 filterScanline(&out[outindex + 1], &in[inindex], prevline, linebytes, bytewidth, 0);
5276 prevline = &in[inindex];
5300 filterScanline(attempt[type].data, &in[y * linebytes], prevline, linebytes, bytewidth, type);
5328 prevline = &in[y * linebytes];
5357 filterScanline(attempt[type].data, &in[y * linebytes], prevline, linebytes, bytewidth, type);
5375 prevline = &in[y * linebytes];
5392 filterScanline(&out[outindex + 1], &in[inindex], prevline, linebytes, bytewidth, type);
5393 prevline = &in[inindex];
5428 filterScanline(attempt[type].data, &in[y * linebytes], prevline, linebytes, bytewidth, type);
5440 prevline = &in[y * linebytes];