Home | History | Annotate | Download | only in enc

Lines Matching refs:width

49 static int EncodeLossless(const uint8_t* const data, int width, int height,
58 picture.width = width;
65 WebPDispatchAlphaToGreen(data, width, picture.width, picture.height,
102 static int EncodeAlphaInternal(const uint8_t* const data, int width, int height,
111 const size_t data_size = width * height;
116 assert((uint64_t)data_size == (uint64_t)width * height); // as per spec
125 filter_func(data, width, height, width, tmp_alpha);
133 ok = ok && EncodeLossless(alpha_src, width, height, effort_level,
173 static int GetNumColors(const uint8_t* data, int width, int height,
182 for (i = 0; i < width; ++i) {
196 static uint32_t GetFilterMap(const uint8_t* alpha, int width, int height,
204 const int num_colors = GetNumColors(alpha, width, height, width);
208 : WebPEstimateBestFilter(alpha, width, height, width);
228 static int ApplyFiltersAndEncode(const uint8_t* alpha, int width, int height,
237 GetFilterMap(alpha, width, height, filter, effort_level);
247 ok = EncodeAlphaInternal(alpha, width, height, method, filter,
260 ok = EncodeAlphaInternal(alpha, width, height, method, WEBP_FILTER_NONE,
287 const int width = pic->width;
291 const size_t data_size = width * height;
297 assert((uint64_t)data_size == (uint64_t)width * height); // as per spec
300 assert(width > 0 && height > 0);
301 assert(pic->a_stride >= width);
322 // Extract alpha data (width x height) from raw_data (stride x height).
323 WebPCopyPlane(pic->a, pic->a_stride, quant_alpha, width, width, height);
331 ok = QuantizeLevels(quant_alpha, width, height, alpha_levels, &sse);
336 ok = ApplyFiltersAndEncode(quant_alpha, width, height, data_size, method,