color-lcms: rename output_eotf to eotf
Eotf is the transfer function whose inverse must be used for converting from output light-linear space to sink electrical space. Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
This commit is contained in:
parent
cd888bde6f
commit
003252a5bb
@ -61,14 +61,14 @@ struct cmlcms_color_profile {
|
||||
cmsHPROFILE profile;
|
||||
struct cmlcms_md5_sum md5sum;
|
||||
|
||||
/**
|
||||
* If the profile does support being an output profile and it is used as an
|
||||
* output then this field represents a light linearizing transfer function
|
||||
* and it can not be null. The field is null only if the profile is not
|
||||
* usable as an output profile. The field is set when cmlcms_color_profile
|
||||
* is created.
|
||||
/** The curves to decode an electrical signal
|
||||
*
|
||||
* For ICC profiles, if the profile type is matrix-shaper, then eotf
|
||||
* contains the TRC, otherwise eotf contains an approximated EOTF if the
|
||||
* profile is used for output.
|
||||
* The field may be populated on demand.
|
||||
*/
|
||||
cmsToneCurve *output_eotf[3];
|
||||
cmsToneCurve *eotf[3];
|
||||
|
||||
/**
|
||||
* If the profile does support being an output profile and it is used as an
|
||||
|
@ -324,7 +324,7 @@ cmlcms_color_profile_destroy(struct cmlcms_color_profile *cprof)
|
||||
{
|
||||
wl_list_remove(&cprof->link);
|
||||
cmsFreeToneCurveTriple(cprof->vcgt);
|
||||
cmsFreeToneCurveTriple(cprof->output_eotf);
|
||||
cmsFreeToneCurveTriple(cprof->eotf);
|
||||
cmsFreeToneCurveTriple(cprof->output_inv_eotf_vcgt);
|
||||
cmsCloseProfile(cprof->profile);
|
||||
free(cprof->base.description);
|
||||
@ -402,7 +402,7 @@ cmlcms_create_stock_profile(struct weston_color_manager_lcms *cm)
|
||||
|
||||
if (!retrieve_eotf_and_output_inv_eotf(cm->lcms_ctx,
|
||||
cm->sRGB_profile->profile,
|
||||
cm->sRGB_profile->output_eotf,
|
||||
cm->sRGB_profile->eotf,
|
||||
cm->sRGB_profile->output_inv_eotf_vcgt,
|
||||
cm->sRGB_profile->vcgt,
|
||||
cmlcms_reasonable_1D_points()))
|
||||
|
@ -203,10 +203,10 @@ cmlcms_color_transform_create(struct weston_color_manager_lcms *cm,
|
||||
xform->search_key.output_profile = ref_cprof(output_profile);
|
||||
|
||||
/* Ensure the linearization etc. have been extracted. */
|
||||
if (!output_profile->output_eotf[0]) {
|
||||
if (!output_profile->eotf[0]) {
|
||||
if (!retrieve_eotf_and_output_inv_eotf(cm->lcms_ctx,
|
||||
output_profile->profile,
|
||||
output_profile->output_eotf,
|
||||
output_profile->eotf,
|
||||
output_profile->output_inv_eotf_vcgt,
|
||||
output_profile->vcgt,
|
||||
cmlcms_reasonable_1D_points()))
|
||||
@ -218,7 +218,7 @@ cmlcms_color_transform_create(struct weston_color_manager_lcms *cm,
|
||||
/* Use EOTF to linearize the result. */
|
||||
ok = xform_set_cmap_3dlut(xform, input_profile->profile,
|
||||
output_profile->profile,
|
||||
output_profile->output_eotf,
|
||||
output_profile->eotf,
|
||||
search_param->intent_output);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user