• Home
  • Raw
  • Download

Lines Matching refs:linebytes

4097   size_t linebytes = (w * bpp + 7) / 8;  in unfilter()  local
4101 size_t outindex = linebytes * y; in unfilter()
4102 size_t inindex = (1 + linebytes) * y; /*the extra filterbyte added to each row*/ in unfilter()
4105 …RN(unfilterScanline(&out[outindex], &in[inindex + 1], prevline, bytewidth, filterType, linebytes)); in unfilter()
5242 size_t linebytes = (w * bpp + 7) / 8; in filter() local
5272 size_t outindex = (1 + linebytes) * y; /*the extra filterbyte added to each row*/ in filter()
5273 size_t inindex = linebytes * y; in filter()
5275 filterScanline(&out[outindex + 1], &in[inindex], prevline, linebytes, bytewidth, 0); in filter()
5290 if(!ucvector_resize(&attempt[type], linebytes)) return 83; /*alloc fail*/ in filter()
5300 … filterScanline(attempt[type].data, &in[y * linebytes], prevline, linebytes, bytewidth, type); in filter()
5306 for(x = 0; x < linebytes; x++) sum[type] += (unsigned char)(attempt[type].data[x]); in filter()
5310 for(x = 0; x < linebytes; x++) in filter()
5328 prevline = &in[y * linebytes]; in filter()
5331 … out[y * (linebytes + 1)] = bestType; /*the first byte of a scanline will be the filter type*/ in filter()
5332 for(x = 0; x < linebytes; x++) out[y * (linebytes + 1) + 1 + x] = attempt[bestType].data[x]; in filter()
5349 if(!ucvector_resize(&attempt[type], linebytes)) return 83; /*alloc fail*/ in filter()
5357 … filterScanline(attempt[type].data, &in[y * linebytes], prevline, linebytes, bytewidth, type); in filter()
5359 for(x = 0; x < linebytes; x++) count[attempt[type].data[x]]++; in filter()
5364 float p = count[x] / (float)(linebytes + 1); in filter()
5375 prevline = &in[y * linebytes]; in filter()
5378 out[y * (linebytes + 1)] = bestType; /*the first byte of a scanline will be the filter type*/ in filter()
5379 for(x = 0; x < linebytes; x++) out[y * (linebytes + 1) + 1 + x] = attempt[bestType].data[x]; in filter()
5388 size_t outindex = (1 + linebytes) * y; /*the extra filterbyte added to each row*/ in filter()
5389 size_t inindex = linebytes * y; in filter()
5392 filterScanline(&out[outindex + 1], &in[inindex], prevline, linebytes, bytewidth, type); in filter()
5419 ucvector_resize(&attempt[type], linebytes); /*todo: give error if resize failed*/ in filter()
5428 … filterScanline(attempt[type].data, &in[y * linebytes], prevline, linebytes, bytewidth, type); in filter()
5440 prevline = &in[y * linebytes]; in filter()
5441 out[y * (linebytes + 1)] = bestType; /*the first byte of a scanline will be the filter type*/ in filter()
5442 for(x = 0; x < linebytes; x++) out[y * (linebytes + 1) + 1 + x] = attempt[bestType].data[x]; in filter()