Home | History | Annotate | Download | only in lodepng

Lines Matching refs:linebytes

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