#include <gimp-print/gimp-print.h>#include "gimp-print-internal.h"#include <gimp-print/gimp-print-intl-internal.h>#include <gimp-print/curve-cache.h>#include <math.h>#include <string.h>#include "color-conversion.h"Go to the source code of this file.
|
|
Value: { \
{ \
"CurveCh" #channel, N_("Channel " #channel " Curve"), \
N_("Output Curves"), N_("Curve for raw channel " #channel), \
STP_PARAMETER_TYPE_CURVE, STP_PARAMETER_CLASS_OUTPUT, \
STP_PARAMETER_LEVEL_INTERNAL, 0, 1, channel, 1, 0 \
}, &color_curve_bounds, CMASK_RAW, 0, 0 \
}Definition at line 404 of file print-color.c. |
|
|
Value: { \
{ \
"GammaCh" #channel, N_("Channel " #channel " Gamma"), N_("Gamma"), \
N_("Gamma for raw channel " #channel), \
STP_PARAMETER_TYPE_DOUBLE, STP_PARAMETER_CLASS_OUTPUT, \
STP_PARAMETER_LEVEL_INTERNAL, 0, 1, channel, 1, 0 \
}, 0.1, 4.0, 1.0, CMASK_RAW, 0 \
}Definition at line 162 of file print-color.c. |
|
|
Definition at line 1520 of file print-color.c. |
|
|
Definition at line 1519 of file print-color.c. |
|
|
Definition at line 643 of file print-color.c. References lut_t::app_gamma, lut_t::brightness, lut_t::contrast, lut_t::gamma_values, lut_t::print_gamma, STP_CHANNEL_LIMIT, and stp_zalloc(). |
|
||||||||||||
|
Definition at line 848 of file print-color.c. References color_description_t::channels, color_description_t::color_id, lut_t::input_color_description, and lut_t::output_color_description. Referenced by compute_a_curve(), and compute_one_lut(). |
|
|
Definition at line 1512 of file print-color.c. References stp_color_unregister(). |
|
|
Definition at line 1505 of file print-color.c. References stp_color_register(). |
|
||||||||||||
|
Definition at line 1002 of file print-color.c. References channel_is_synthesized(), compute_a_curve_fast(), and compute_a_curve_full(). Referenced by compute_one_lut(). |
|
||||||||||||
|
Definition at line 975 of file print-color.c. References lut_t::channel_curves, lut_t::gamma_values, lut_t::steps, stp_curve_cache_get_curve(), stp_curve_resample(), stp_curve_set_data(), stp_free(), and stp_malloc(). Referenced by compute_a_curve(). |
|
||||||||||||
|
Definition at line 866 of file print-color.c. References lut_t::brightness, lut_t::channel_curves, color_description_t::color_model, lut_t::contrast, lut_t::gamma_values, lut_t::input_color_description, lut_t::linear_contrast_adjustment, lut_t::output_color_description, lut_t::print_gamma, lut_t::screen_gamma, lut_t::steps, stp_curve_cache_get_curve(), stp_curve_resample(), stp_curve_set_data(), stp_free(), and stp_malloc(). Referenced by compute_a_curve(). |
|
|
Definition at line 723 of file print-color.c. References lut_t::steps, stp_abort(), stp_check_float_parameter(), stp_curve_create(), stp_curve_set_bounds(), stp_curve_set_data(), STP_CURVE_WRAP_NONE, stp_eprintf(), stp_free(), stp_get_component_data(), stp_get_float_parameter(), stp_malloc(), and STP_PARAMETER_DEFAULTED. Referenced by generic_rgb_to_kcmy(), and initialize_gcr_curve(). |
|
||||||||||||
|
Definition at line 1042 of file print-color.c. References lut_t::channel_curves, channel_is_synthesized(), compute_a_curve(), invert_curve(), lut_t::invert_output, lut_t::steps, STP_CURVE_BOUNDS_RESCALE, stp_curve_cache_get_curve(), stp_curve_cache_set_curve(), STP_CURVE_COMPOSE_MULTIPLY, stp_curve_create_copy(), stp_curve_resample(), and stp_curve_rescale(). Referenced by initialize_color_curves(), initialize_composite_curve(), setup_channel(), and stpi_compute_lut(). |
|
|
|
Definition at line 635 of file print-color.c. References lut_t::channel_curves, STP_CHANNEL_LIMIT, and stp_curve_free_curve_cache(). |
|
|
Definition at line 706 of file print-color.c. References lut_t::cmy_tmp, lut_t::cmyk_tmp, free_channels(), lut_t::gcr_curve, lut_t::gray_tmp, lut_t::hue_map, lut_t::in_data, lut_t::lum_map, lut_t::sat_map, stp_curve_free_curve_cache(), stp_free(), and STP_SAFE_FREE. Referenced by stpi_color_traditional_init(). |
|
|
Definition at line 564 of file print-color.c. References channel_depth_count. Referenced by stpi_color_traditional_init(). |
|
|
Definition at line 577 of file print-color.c. References color_correction_count. Referenced by stpi_color_traditional_init(). |
|
|
Definition at line 590 of file print-color.c. References color_correction_count, and color_correction_t::correction. |
|
|
Definition at line 551 of file print-color.c. References color_description_count. Referenced by stpi_color_traditional_describe_parameter(), and stpi_color_traditional_init(). |
|
||||||||||||
|
Definition at line 603 of file print-color.c. References lut_t::channels_are_initialized, lut_t::out_channels, stp_channel_initialize(), stp_channel_set_ink_limit(), stp_check_float_parameter(), stp_get_component_data(), stp_get_float_parameter(), and STP_PARAMETER_ACTIVE. Referenced by stpi_color_traditional_get_row(). |
|
|
Definition at line 787 of file print-color.c. References lut_t::gcr_curve, lut_t::steps, stp_check_curve_parameter(), stp_curve_cache_get_curve(), stp_curve_cache_set_curve(), stp_curve_count_points(), stp_curve_create_copy(), stp_curve_get_point(), stp_curve_resample(), stp_curve_set_bounds(), stp_curve_set_point(), stp_get_component_data(), stp_get_curve_parameter(), and STP_PARAMETER_DEFAULTED. Referenced by generic_cmy_to_kcmy(), and stpi_compute_lut(). |
|
|
Definition at line 1238 of file print-color.c. References curve_parameter_count, stp_parameter_t::deflt, curve_param_t::defval, curve_param_t::param, and standard_curves_initialized. |
|
||||||||||||
|
Definition at line 1011 of file print-color.c. References STP_CURVE_BOUNDS_RESCALE, STP_CURVE_COMPOSE_ADD, STP_CURVE_COMPOSE_MULTIPLY, stp_curve_get_bounds(), stp_curve_get_data(), stp_curve_get_gamma(), stp_curve_rescale(), stp_curve_set_data(), stp_curve_set_gamma(), stp_free(), and stp_malloc(). Referenced by compute_one_lut(). |
|
||||||||||||||||
|
||||||||||||||||
|
||||||||||||||||||||
|
Definition at line 613 of file print-color.c. References lut_t::channels_are_initialized, color_description_t::conversion_function, lut_t::image_width, lut_t::in_channels, lut_t::in_data, initialize_channels(), lut_t::output_color_description, stp_channel_convert(), stp_channel_get_input(), stp_get_component_data(), stp_image_get_row(), and STP_IMAGE_STATUS_OK. |
|
||||||||||||||||
|
|
Definition at line 1295 of file print-color.c. References curve_parameter_count, float_parameter_count, initialize_standard_curves(), stp_parameter_list_add_param(), and stp_parameter_list_create(). |
|
|
|
Initial value: sizeof(channel_depths) / sizeof(channel_depth_t) Definition at line 148 of file print-color.c. Referenced by get_channel_depth(), and stpi_color_traditional_describe_parameter(). |
|
|
Initial value:
{
{ "8", 8 },
{ "16", 16 }
}Definition at line 142 of file print-color.c. |
|
|
Initial value: sizeof(channel_params) / sizeof(channel_param_t) Definition at line 75 of file print-color.c. Referenced by stpi_compute_lut(). |
|
|
Initial value:
{
{ CMASK_K, "BlackGamma", "BlackCurve", "WhiteGamma", "WhiteCurve" },
{ CMASK_C, "CyanGamma", "CyanCurve", "RedGamma", "RedCurve" },
{ CMASK_M, "MagentaGamma", "MagentaCurve", "GreenGamma", "GreenCurve" },
{ CMASK_Y, "YellowGamma", "YellowCurve", "BlueGamma", "BlueCurve" },
{ CMASK_W, "WhiteGamma", "WhiteCurve", "BlackGamma", "BlackCurve" },
{ CMASK_R, "RedGamma", "RedCurve", "CyanGamma", "CyanCurve" },
{ CMASK_G, "GreenGamma", "GreenCurve", "MagentaGamma", "MagentaCurve" },
{ CMASK_B, "BlueGamma", "BlueCurve", "YellowGamma", "YellowCurve" },
}Definition at line 63 of file print-color.c. |
|
|
Initial value: sizeof(color_corrections) / sizeof(color_correction_t) Definition at line 59 of file print-color.c. Referenced by get_color_correction(), get_color_correction_by_tag(), and stpi_color_traditional_describe_parameter(). |
|
|
Initial value:
{
{ "None", N_("Default"), COLOR_CORRECTION_DEFAULT, 1 },
{ "Accurate", N_("High Accuracy"), COLOR_CORRECTION_ACCURATE, 1 },
{ "Bright", N_("Bright Colors"), COLOR_CORRECTION_BRIGHT, 1 },
{ "Uncorrected", N_("Uncorrected"), COLOR_CORRECTION_UNCORRECTED, 0 },
{ "Desaturated", N_("Desaturated"), COLOR_CORRECTION_DESATURATED, 0 },
{ "Threshold", N_("Threshold"), COLOR_CORRECTION_THRESHOLD, 0 },
{ "Density", N_("Density"), COLOR_CORRECTION_DENSITY, 0 },
{ "Raw", N_("Raw"), COLOR_CORRECTION_RAW, 0 },
}Definition at line 47 of file print-color.c. |
|
|
Definition at line 400 of file print-color.c. |
|
|
Initial value: sizeof(color_descriptions) / sizeof(color_description_t) Definition at line 138 of file print-color.c. Referenced by get_color_description(), and stpi_color_traditional_describe_parameter(). |
|
|
Initial value:
{
{ "Grayscale", 1, 1, COLOR_ID_GRAY, COLOR_BLACK, CMASK_K, 1,
COLOR_CORRECTION_UNCORRECTED, &stpi_color_convert_to_gray },
{ "Whitescale", 1, 1, COLOR_ID_WHITE, COLOR_WHITE, CMASK_K, 1,
COLOR_CORRECTION_UNCORRECTED, &stpi_color_convert_to_gray },
{ "RGB", 1, 1, COLOR_ID_RGB, COLOR_WHITE, CMASK_CMY, 3,
COLOR_CORRECTION_ACCURATE, &stpi_color_convert_to_color },
{ "CMY", 1, 1, COLOR_ID_CMY, COLOR_BLACK, CMASK_CMY, 3,
COLOR_CORRECTION_ACCURATE, &stpi_color_convert_to_color },
{ "CMYK", 1, 0, COLOR_ID_CMYK, COLOR_BLACK, CMASK_CMYK, 4,
COLOR_CORRECTION_ACCURATE, &stpi_color_convert_to_kcmy },
{ "KCMY", 1, 1, COLOR_ID_KCMY, COLOR_BLACK, CMASK_CMYK, 4,
COLOR_CORRECTION_ACCURATE, &stpi_color_convert_to_kcmy },
{ "CMYKRB", 0, 1, COLOR_ID_CMYKRB, COLOR_BLACK, CMASK_CMYKRB, 6,
COLOR_CORRECTION_ACCURATE, &stpi_color_convert_to_cmykrb },
{ "Raw", 1, 1, COLOR_ID_RAW, COLOR_UNKNOWN, 0, -1,
COLOR_CORRECTION_RAW, &stpi_color_convert_raw },
}Definition at line 118 of file print-color.c. |
|
|
Initial value: sizeof(curve_parameters) / sizeof(curve_param_t) Definition at line 546 of file print-color.c. Referenced by initialize_standard_curves(), stpi_color_traditional_describe_parameter(), and stpi_color_traditional_list_parameters(). |
|
|
Definition at line 414 of file print-color.c. |
|
|
Initial value: sizeof(float_parameters) / sizeof(float_param_t) Definition at line 383 of file print-color.c. Referenced by stpi_color_traditional_describe_parameter(), and stpi_color_traditional_list_parameters(). |
|
|
Definition at line 172 of file print-color.c. |
|
|
Definition at line 401 of file print-color.c. |
|
|
Definition at line 397 of file print-color.c. |
|
|
Definition at line 398 of file print-color.c. |
|
|
Initial value: sizeof(raw_channel_params) / sizeof(channel_param_t) Definition at line 114 of file print-color.c. |
|
|
Definition at line 78 of file print-color.c. |
|
|
Definition at line 399 of file print-color.c. |
|
|
Definition at line 395 of file print-color.c. Referenced by initialize_standard_curves(). |
|
|
Initial value:
{
"traditional",
VERSION,
"Traditional Gimp-Print color conversion",
STP_MODULE_CLASS_COLOR,
NULL,
color_traditional_module_init,
color_traditional_module_exit,
(void *) &stpi_color_traditional_module_data
}Definition at line 1524 of file print-color.c. |
|
|
Definition at line 1522 of file print-color.c. |
|
|
Initial value:
{
&stpi_color_traditional_init,
&stpi_color_traditional_get_row,
&stpi_color_traditional_list_parameters,
&stpi_color_traditional_describe_parameter
}Definition at line 1488 of file print-color.c. |
|
|
Initial value:
{
"traditional",
N_("Traditional Gimp-Print color conversion"),
&stpi_color_traditional_colorfuncs
}Definition at line 1496 of file print-color.c. |
1.2.17