Lines Matching refs:width
51 static int EncodeLossless(const uint8_t* const data, int width, int height,
61 picture.width = width;
73 for (i = 0; i < picture.width; ++i) {
76 src += width;
88 ok = VP8LBitWriterInit(&tmp_bw, (width * height) >> 3);
102 static int EncodeAlphaInternal(const uint8_t* const data, int width, int height,
113 const size_t data_size = width * height;
115 assert((uint64_t)data_size == (uint64_t)width * height); // as per spec
133 filter_func(data, width, height, width, tmp_alpha);
140 ok = VP8BitWriterAppend(bw, alpha_src, width * height);
143 ok = EncodeLossless(alpha_src, width, height, effort_level, bw, stats);
153 uint8_t* dst, int dst_stride, int width, int height) {
155 memcpy(dst, src, width);
161 static int GetNumColors(const uint8_t* data, int width, int height,
170 for (i = 0; i < width; ++i) {
185 const int width = pic->width;
189 const size_t data_size = width * height;
195 assert((uint64_t)data_size == (uint64_t)width * height); // as per spec
198 assert(width > 0 && height > 0);
199 assert(pic->a_stride >= width);
215 // Extract alpha data (width x height) from raw_data (stride x height).
216 CopyPlane(pic->a, pic->a_stride, quant_alpha, width, width, height);
224 ok = QuantizeLevels(quant_alpha, width, height, alpha_levels, &sse);
236 const int num_colors = GetNumColors(quant_alpha, width, height, width);
239 EstimateBestFilter(quant_alpha, width, height, width);
249 ok = EncodeAlphaInternal(quant_alpha, width, height,
286 ok = EncodeAlphaInternal(quant_alpha, width, height,