Lines Matching defs:alpha
24 // Encodes the given alpha data via specified compression method 'method'.
29 // 'method = 1' - Use lossless coder on the alpha plane only
36 // 'output' corresponds to the buffer containing compressed alpha data.
39 // 'output_size' corresponds to size of this compressed alpha buffer.
41 // Returns 1 on successfully encoding the alpha and
63 // Transfer the alpha values to the green channel.
80 // Set a low default quality for encoding alpha. Ensure that Alpha quality at
126 // TODO(skal): have a common function and #define's to validate alpha params.
211 static uint32_t GetFilterMap(const uint8_t* alpha, int width, int height,
219 const int num_colors = GetNumColors(alpha, width, height, width);
222 EstimateBestFilter(alpha, width, height, width);
242 static int ApplyFiltersAndEncode(const uint8_t* alpha, int width, int height,
251 GetFilterMap(alpha, width, height, filter, effort_level);
260 ok = EncodeAlphaInternal(alpha, width, height, method, filter,
273 ok = EncodeAlphaInternal(alpha, width, height, method, WEBP_FILTER_NONE,
326 // Extract alpha data (width x height) from raw_data (stride x height).
330 // 16 alpha levels gives quite a low MSE w.r.t original alpha plane hence