diff options
author | Mattias Andrée <maandree@kth.se> | 2017-06-10 10:48:21 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-06-10 10:48:21 +0200 |
commit | 42ca750430bf40ba13493ac46028d22e6f3555b9 (patch) | |
tree | 04324f1e954990175dc7922c46da26855a4b5a92 /LIBCOLOUR_RGB.7 | |
parent | Reduce size of RGB struct, and add LIBCOLOUR_CIELCHUV.7 and LIBCOLOUR_RGB.7 (diff) | |
download | libcolour-42ca750430bf40ba13493ac46028d22e6f3555b9.tar.gz libcolour-42ca750430bf40ba13493ac46028d22e6f3555b9.tar.bz2 libcolour-42ca750430bf40ba13493ac46028d22e6f3555b9.tar.xz |
m + add libcolour_delta_e.3, libcolour_srgb_decode.3, and libcolour_srgb_encode.3
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | LIBCOLOUR_RGB.7 | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/LIBCOLOUR_RGB.7 b/LIBCOLOUR_RGB.7 index af49fe2..eb26b4a 100644 --- a/LIBCOLOUR_RGB.7 +++ b/LIBCOLOUR_RGB.7 @@ -5,9 +5,9 @@ LIBCOLOUR_RGB - Generic RGB Generic RGB colours are presented with either of .nf - \fBtypedef struct libcolour_rgb_f libcolour_rgb_f_t;\fP - \fBtypedef struct libcolour_rgb_lf libcolour_rgb_lf_t;\fP - \fBtypedef struct libcolour_rgb_llf libcolour_rgb_llf_t;\fP + typedef struct libcolour_rgb_f libcolour_rgb_f_t; + typedef struct libcolour_rgb_lf libcolour_rgb_lf_t; + typedef struct libcolour_rgb_llf libcolour_rgb_llf_t; .fi These @@ -23,44 +23,44 @@ and are otherwise identical. is defined as .nf - \fBstruct libcolour_rgb_f {\fP - \fBenum libcolour_model\fP \fImodel\fP\fB;\fP - \fBfloat\fP \fIR\fP\fB;\fP - \fBfloat\fP \fIG\fP\fB;\fP - \fBfloat\fP \fIB\fP\fB;\fP - \fBint\fP \fIwith_transfer\fP\fB;\fP - \fBenum libcolour_encoding_type\fP \fIencoding_type\fP\fB;\fP - \fBunion {\fP - \fBstruct {\fP - \fBfloat\fP \fIgamma\fP\fB;\fP - \fB}\fP \fIsimple\fB;\fP - \fBstruct {\fP - \fBfloat\fP \fIgamma\fP\fB;\fP - \fBfloat\fP \fIoffset\fP\fB;\fP - \fBfloat\fP \fIslope\fP\fB;\fP - \fBfloat\fP \fItransition\fP\fB;\fP - \fBfloat\fP \fItransitioninv\fP\fB;\fP - \fB}\fP \fIregular\fB;\fP - \fBstruct {\fP - \fBfloat (*\fP\fIto_encoded_red\fP\fB)(float);\fP - \fBfloat (*\fP\fIto_decoded_red\fP\fB)(float);\fP - \fBfloat (*\fP\fIto_encoded_green\fP\fB)(float);\fP - \fBfloat (*\fP\fIto_decoded_green\fP\fB)(float);\fP - \fBfloat (*\fP\fIto_encoded_blue\fP\fB)(float);\fP - \fBfloat (*\fP\fIto_decoded_blue\fP\fB)(float);\fP - \fB}\fP \fIcustom\fB;\fP - \fB}\fP \fItransfer\fB;\fP - \fBstruct libcolour_ciexyy\fP \fIred\fP\fB;\fP - \fBstruct libcolour_ciexyy\fP \fIgreen\fP\fB;\fP - \fBstruct libcolour_ciexyy\fP \fIblue\fP\fB;\fP - \fBstruct libcolour_ciexyy\fP \fIwhite\fP\fB;\fP - \fBfloat\fP \fIwhite_r\fP\fB;\fP - \fBfloat\fP \fIwhite_g\fP\fB;\fP - \fBfloat\fP \fIwhite_b\fP\fB;\fP - \fBfloat\fP \fIM\fP\fB[3][3];\fP - \fBfloat\fP \fIMinv\fP\fB[3][3];\fP - \fBenum libcolour_rgb_colour_space\fP \fIcolour_space\fP\fB;\fP - \fB};\fP + struct libcolour_rgb_f { + enum libcolour_model \fImodel\fP; + float \fIR\fP; + float \fIG\fP; + float \fIB\fP; + int \fIwith_transfer\fP; + enum libcolour_encoding_type \fIencoding_type\fP; + union { + struct { + float \fIgamma\fP; + } \fIsimple\fP; + struct { + float \fIgamma\fP; + float \fIoffset\fP; + float \fIslope\fP; + float \fItransition\fP; + float \fItransitioninv\fP; + } \fIregular\fP; + struct { + float (*\fIto_encoded_red\fP)(float); + float (*\fIto_decoded_red\fP)(float); + float (*\fIto_encoded_green\fP)(float); + float (*\fIto_decoded_green\fP)(float); + float (*\fIto_encoded_blue\fP)(float); + float (*\fIto_decoded_blue\fP)(float); + } \fIcustom\fP; + } \fItransfer\fP; + struct libcolour_ciexyy \fIred\fP; + struct libcolour_ciexyy \fIgreen\fP; + struct libcolour_ciexyy \fIblue\fP; + struct libcolour_ciexyy \fIwhite\fP; + float \fIwhite_r\fP; + float \fIwhite_g\fP; + float \fIwhite_b\fP; + float \fIM\fP[3][3]; + float \fIMinv\fP[3][3]; + enum libcolour_rgb_colour_space \fIcolour_space\fP; + }; .fi .I .model |