// Copyright (c) the JPEG XL Project Authors. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // // This file contains the C API of the encoder part of the libjpegli library, // which is based on the C API of libjpeg, with the function names changed from // jpeg_* to jpegli_*, while compressor object definitions are included directly // from jpeglib.h // // Applications can use the libjpegli library in one of the following ways: // // (1) Include jpegli/encode.h and/or jpegli/decode.h, update the function // names of the API and link against libjpegli. // // (2) Leave the application code unchanged, but replace the libjpeg.so library // with the one built by this project that is API- and ABI-compatible with // libjpeg-turbo's version of libjpeg.so.
// // New API functions that are not available in libjpeg // // NOTE: This part of the API is still experimental and will probably change in // the future. //
// Sets the butteraugli target distance for the compressor. This may override // the default quantization table indexes based on jpeg colorspace, therefore // it must be called after jpegli_set_defaults() or after the last // jpegli_set_colorspace() or jpegli_default_colorspace() calls. void jpegli_set_distance(j_compress_ptr cinfo, float distance,
boolean force_baseline);
// Returns the butteraugli target distance for the given quality parameter. float jpegli_quality_to_distance(int quality);
// Enables distance parameter search to meet the given psnr target. void jpegli_set_psnr(j_compress_ptr cinfo, float psnr, float tolerance, float min_distance, float max_distance);
// Changes the default behaviour of the encoder in the selection of quantization // matrices and chroma subsampling. Must be called before jpegli_set_defaults() // because some default setting depend on the XYB mode. void jpegli_set_xyb_mode(j_compress_ptr cinfo);
// Signals to the encoder that the pixel data that will be provided later // through jpegli_write_scanlines() has this transfer function. This must be // called before jpegli_set_defaults() because it changes the default // quantization tables. void jpegli_set_cicp_transfer_function(j_compress_ptr cinfo, int code);
// Sets whether or not the encoder uses adaptive quantization for creating more // zero coefficients based on the local properties of the image. // Enabled by default. void jpegli_enable_adaptive_quantization(j_compress_ptr cinfo, boolean value);
// Sets the default progression parameters, where level 0 is sequential, and // greater level value means more progression steps. Default is 2. void jpegli_set_progressive_level(j_compress_ptr cinfo, int level);
// If this function is called before starting compression, the quality and // linear quality parameters will be used to scale the standard quantization // tables from Annex K of the JPEG standard. By default jpegli uses a different // set of quantization tables and used different scaling parameters for DC and // AC coefficients. Must be called before jpegli_set_defaults(). void jpegli_use_standard_quant_tables(j_compress_ptr cinfo);
#ifdef __cplusplus
} // extern "C" #endif
#endif// LIB_JPEGLI_ENCODE_H_
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.