/* * jsamplecomp.h * * Copyright (C) 2022, D. R. Commander. * For conditions of distribution and use, see the accompanying README.ijg * file.
*/
/* In source files that must be compiled for multiple data precisions, we * prefix all precision-dependent data types, macros, methods, fields, and * function names with an underscore. Including this file replaces those * precision-independent tokens with their precision-dependent equivalents, * based on the value of BITS_IN_JSAMPLE.
*/
#ifndef JSAMPLECOMP_H #define JSAMPLECOMP_H
#if BITS_IN_JSAMPLE == 16
/* Sample data types and macros (jmorecfg.h) */ #define _JSAMPLE J16SAMPLE
#ifdef C_LOSSLESS_SUPPORTED /* Use the 16-bit method in the jpeg_c_main_controller structure. */ #define _process_data process_data_16 /* Use the 16-bit method in the jpeg_c_prep_controller structure. */ #define _pre_process_data pre_process_data_16 /* Use the 16-bit method in the jpeg_c_coef_controller structure. */ #define _compress_data compress_data_16 /* Use the 16-bit method in the jpeg_color_converter structure. */ #define _color_convert color_convert_16 /* Use the 16-bit method in the jpeg_downsampler structure. */ #define _downsample downsample_16 #endif #ifdef D_LOSSLESS_SUPPORTED /* Use the 16-bit method in the jpeg_d_main_controller structure. */ #define _process_data process_data_16 /* Use the 16-bit method in the jpeg_d_coef_controller structure. */ #define _decompress_data decompress_data_16 /* Use the 16-bit method in the jpeg_d_post_controller structure. */ #define _post_process_data post_process_data_16 /* Use the 16-bit method in the jpeg_upsampler structure. */ #define _upsample upsample_16 /* Use the 16-bit method in the jpeg_color_converter structure. */ #define _color_convert color_convert_16 #endif
#ifdefined(C_LOSSLESS_SUPPORTED) || defined(D_LOSSLESS_SUPPORTED) /* Use the 16-bit buffer in the cjpeg_source_struct and djpeg_dest_struct
structures. */ #define _buffer buffer16 #endif
/* Use the 12-bit method in the jpeg_c_main_controller structure. */ #define _process_data process_data_12 /* Use the 12-bit method in the jpeg_c_prep_controller structure. */ #define _pre_process_data pre_process_data_12 /* Use the 12-bit method in the jpeg_c_coef_controller structure. */ #define _compress_data compress_data_12 /* Use the 12-bit method in the jpeg_color_converter structure. */ #define _color_convert color_convert_12 /* Use the 12-bit method in the jpeg_downsampler structure. */ #define _downsample downsample_12 /* Use the 12-bit method in the jpeg_forward_dct structure. */ #define _forward_DCT forward_DCT_12 /* Use the 12-bit method in the jpeg_d_main_controller structure. */ #define _process_data process_data_12 /* Use the 12-bit method in the jpeg_d_coef_controller structure. */ #define _decompress_data decompress_data_12 /* Use the 12-bit method in the jpeg_d_post_controller structure. */ #define _post_process_data post_process_data_12 /* Use the 12-bit method in the jpeg_inverse_dct structure. */ #define _inverse_DCT_method_ptr inverse_DCT_12_method_ptr #define _inverse_DCT inverse_DCT_12 /* Use the 12-bit method in the jpeg_upsampler structure. */ #define _upsample upsample_12 /* Use the 12-bit method in the jpeg_color_converter structure. */ #define _color_convert color_convert_12 /* Use the 12-bit method in the jpeg_color_quantizer structure. */ #define _color_quantize color_quantize_12
/* Use the 8-bit method in the jpeg_c_main_controller structure. */ #define _process_data process_data /* Use the 8-bit method in the jpeg_c_prep_controller structure. */ #define _pre_process_data pre_process_data /* Use the 8-bit method in the jpeg_c_coef_controller structure. */ #define _compress_data compress_data /* Use the 8-bit method in the jpeg_color_converter structure. */ #define _color_convert color_convert /* Use the 8-bit method in the jpeg_downsampler structure. */ #define _downsample downsample /* Use the 8-bit method in the jpeg_forward_dct structure. */ #define _forward_DCT forward_DCT /* Use the 8-bit method in the jpeg_d_main_controller structure. */ #define _process_data process_data /* Use the 8-bit method in the jpeg_d_coef_controller structure. */ #define _decompress_data decompress_data /* Use the 8-bit method in the jpeg_d_post_controller structure. */ #define _post_process_data post_process_data /* Use the 8-bit method in the jpeg_inverse_dct structure. */ #define _inverse_DCT_method_ptr inverse_DCT_method_ptr #define _inverse_DCT inverse_DCT /* Use the 8-bit method in the jpeg_upsampler structure. */ #define _upsample upsample /* Use the 8-bit method in the jpeg_color_converter structure. */ #define _color_convert color_convert /* Use the 8-bit method in the jpeg_color_quantizer structure. */ #define _color_quantize color_quantize
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 ist noch experimentell.