Lines Matching +full:- +full:- +full:preset +full:- +full:default
3 // Use of this source code is governed by a BSD-style license
8 // -----------------------------------------------------------------------------
40 //------------------------------------------------------------------------------
41 // One-stop-shop call! No questions asked:
65 // Note these functions, like the lossy versions, use the library's default
82 //------------------------------------------------------------------------------
87 WEBP_HINT_DEFAULT = 0, // default preset.
90 WEBP_HINT_GRAPH, // Discrete tone image (graph, map-tile etc).
96 int lossless; // Lossless encoding (0=lossy(default), 1=lossless).
102 int method; // quality/speed trade-off (0=fast, 6=slower-better)
106 int target_size; // if non-zero, set the desired target size in bytes.
108 float target_PSNR; // if non-zero, specifies the minimal distortion to
118 // 1 = compressed with WebP lossless). Default is 1.
120 // 0: none, 1: fast, 2: best. Default if 1.
122 // Default is 100.
123 int pass; // number of entropy-analysis passes (in [1..10]).
126 // In-loop filtering is not applied.
128 // 0=none, 1=segment-smooth, 2=pseudo-random dithering
129 int partitions; // log2(number of token partitions) in [0..3]. Default
138 int thread_level; // If non-zero, try and use multi-threaded encoding.
142 // (default)].
143 int exact; // if non-zero, preserve the exact RGB values under
145 // RGB information for better compression. The default
149 int use_sharp_yuv; // if needed, use sharp (and slow) RGB->YUV conversion
158 WEBP_PRESET_DEFAULT = 0, // default preset.
161 WEBP_PRESET_DRAWING, // hand or line drawing, with high-contrast details
162 WEBP_PRESET_ICON, // small-sized colorful images
163 WEBP_PRESET_TEXT // text-like
166 // Internal, version-checked, entry point
172 // Note that the default values are lossless=0 and quality=75.
179 // set of parameters (referred to by 'preset') and a given quality factor.
183 WebPPreset preset, float quality) { in WebPConfigPreset() argument
184 return WebPConfigInitInternal(config, preset, quality, in WebPConfigPreset()
190 // A good default level is '6', providing a fair tradeoff between compression
196 // Returns true if 'config' is non-NULL and all configuration parameters are
200 //------------------------------------------------------------------------------
207 float PSNR[5]; // peak-signal-to-noise ratio for Y/U/V/All/Alpha
210 // and mode-partition #0
221 uint32_t lossless_features; // bit0:predictor bit1:cross-color transform
222 // bit2:subtract-green bit3:color indexing
236 // reference (and so one can make use of picture->custom_ptr).
252 // The following must be called to deallocate writer->mem memory. The 'writer'
271 WEBP_CSP_UV_MASK = 3, // bit-mask to get the UV sampling factors
297 // (use_argb, y/u/v, argb, ...) point to user-owned data, even if
325 // Byte-emission hook, to store compressed bytes as they are ready.
331 // 4: intra-16 prediction mode,
351 // used during callbacks (like progress-report e.g.).
366 // Internal, version-checked, entry point
372 // Note that, by default, use_argb is false and colorspace is WEBP_YUV420.
377 //------------------------------------------------------------------------------
380 // Convenience allocation / deallocation based on picture->width/height:
401 // '*distortion'. The refined metric (log(MSE), log(1 - ssim),...' will be
417 // Warning: this function is rather CPU-intensive.
423 // self-crops a picture to the rectangle defined by top/left/width/height.
426 // The rectangle for the view is defined by the top-left corner pixel
435 // is defined by the top-left corner pixel coordinates (left, top) as well
439 // Picture 'src' must out-live 'dst' picture. Self-extraction of view is allowed
440 // ('src' equal to 'dst') as a mean of fast-cropping (but note that doing so,
469 // Same, but for RGBA buffer. Imports the RGB direct from the 32-bit format
471 // to a temporary 24-bit RGB buffer to import the RGB only.
483 // Converts picture->argb data to the YUV420A format. The 'colorspace'
485 // Upon return, picture->use_argb is set to false. The presence of real
486 // non-opaque transparent values is detected, and 'colorspace' will be
493 // pseudo-random dithering with a strength 'dithering' between
499 // Performs 'sharp' RGBA->YUVA420 downsampling and colorspace conversion.
508 // Converts picture->yuv to picture->argb and sets picture->use_argb to true.
517 // clean-up or smoothen the YUV or RGB samples under fully transparent area,
531 //------------------------------------------------------------------------------
538 // In case of error, picture->error_code is updated accordingly.
540 // on the value of 'picture->use_argb'. It is highly recommended to use
546 //------------------------------------------------------------------------------