Lines Matching refs:xsize
72 static void NearLossless(int xsize, int ysize, uint32_t* argb,
77 uint32_t* curr_row = prev_row + xsize;
78 uint32_t* next_row = curr_row + xsize;
79 memcpy(copy_buffer, argb, xsize * 2 * sizeof(argb[0]));
82 uint32_t* const curr_argb_row = argb + y * xsize;
83 uint32_t* const next_argb_row = curr_argb_row + xsize;
84 memcpy(next_row, next_argb_row, xsize * sizeof(argb[0]));
85 for (x = 1; x < xsize - 1; ++x) {
100 int VP8ApplyNearLossless(int xsize, int ysize, uint32_t* argb, int quality) {
103 (uint32_t*)WebPSafeMalloc(xsize * 3, sizeof(*copy_buffer));
112 if (xsize < MIN_DIM_FOR_NEAR_LOSSLESS && ysize < MIN_DIM_FOR_NEAR_LOSSLESS) {
118 NearLossless(xsize, ysize, argb, i, copy_buffer);