Top |
gchar * | instrument | Read |
guint | kind | Read / Write |
gboolean | normalized | Read |
gchar * | originator | Read |
gchar * | reference | Read |
gboolean | spectral | Read |
gchar * | title | Read |
#define | CD_IT8_ERROR |
#define | CD_IT8_TYPE_ERROR |
#define | CD_TYPE_IT8 |
struct | CdIt8Class |
enum | CdIt8Error |
enum | CdIt8Kind |
CdIt8 |
This object represents .ti1 and .ti3 files which can contain raw or normalized sample data.
CdIt8 *
cd_it8_new_with_kind (CdIt8Kind kind
);
Creates a new CdIt8 object.
Since: 0.1.20
gboolean cd_it8_load_from_data (CdIt8 *it8
,const gchar *data
,gsize size
,GError **error
);
Loads a it8 file from data.
Since: 0.1.20
gboolean cd_it8_load_from_file (CdIt8 *it8
,GFile *file
,GError **error
);
Loads a it8 file from disk.
Since: 0.1.20
gboolean cd_it8_save_to_file (CdIt8 *it8
,GFile *file
,GError **error
);
Saves a it8 file to disk
Since: 0.1.20
gboolean cd_it8_save_to_data (CdIt8 *it8
,gchar **data
,gsize *size
,GError **error
);
Saves a it8 file to an area of memory.
Since: 0.1.26
void cd_it8_set_kind (CdIt8 *it8
,CdIt8Kind kind
);
Set the kind of IT8 file.
Since: 0.1.20
void cd_it8_set_normalized (CdIt8 *it8
,gboolean normalized
);
Sets if normalized data should be written to the .it8 file.
Since: 0.1.20
void cd_it8_set_originator (CdIt8 *it8
,const gchar *originator
);
Sets the program name that created the .it8 file
Since: 0.1.20
void cd_it8_set_title (CdIt8 *it8
,const gchar *title
);
Sets the display name for the file.
Since: 0.1.20
void cd_it8_set_spectral (CdIt8 *it8
,gboolean spectral
);
Sets if spectral data should be written to the .it8 file.
Since: 0.1.20
void cd_it8_set_instrument (CdIt8 *it8
,const gchar *instrument
);
Sets the measuring instrument that created the .it8 file
Since: 0.1.20
void cd_it8_set_reference (CdIt8 *it8
,const gchar *reference
);
Sets the reference that as used to create the .it8 reference
Since: 0.1.20
void cd_it8_set_enable_created (CdIt8 *it8
,gboolean enable_created
);
Sets if the 'CREATED' attribute should be written. This is mainly useful in the self test programs where we want to string compare the output data with a known reference.
Since: 0.1.33
void cd_it8_add_data (CdIt8 *it8
,const CdColorRGB *rgb
,const CdColorXYZ *xyz
);
Adds a reading to this object. If either of rgb
or xyz
is NULL then
a black reading (0.0, 0.0, 0.0) is added instead.
Since: 0.1.20
void cd_it8_add_option (CdIt8 *it8
,const gchar *option
);
Sets any extra options that have to be set in the CCMX file
Since: 0.1.20
void cd_it8_set_matrix (CdIt8 *it8
,const CdMat3x3 *matrix
);
Set the calibration matrix in the it8 file.
Since: 0.1.20
void cd_it8_set_spectrum_array (CdIt8 *it8
,GPtrArray *data
);
Set the spectral data
it8 |
a CdIt8 instance. |
|
data |
the spectral data. |
[transfer container][element-type CdSpectrum] |
Since: 1.1.6
void cd_it8_add_spectrum (CdIt8 *it8
,CdSpectrum *spectrum
);
Adds a spectrum to the spectral array.
Since: 1.1.6
const CdMat3x3 *
cd_it8_get_matrix (CdIt8 *it8
);
Gets the calibration matrix in the it8 file.
Since: 0.1.20
gboolean
cd_it8_get_normalized (CdIt8 *it8
);
Gets if the data should be written normlaised to y=100.
Since: 0.1.20
const gchar *
cd_it8_get_originator (CdIt8 *it8
);
Gets the file orginator.
Since: 0.1.20
gboolean
cd_it8_get_spectral (CdIt8 *it8
);
Gets if the data is spectral or XYZ.
Since: 0.1.20
const gchar *
cd_it8_get_instrument (CdIt8 *it8
);
Gets the instrument the file was created by.
Since: 0.1.20
const gchar *
cd_it8_get_reference (CdIt8 *it8
);
Gets the reference the file was created against.
Since: 0.1.20
gboolean
cd_it8_get_enable_created (CdIt8 *it8
);
Gets if the 'CREATED' attribute will be written. This is typically only set in the self test programs.
Since: 0.1.33
gboolean cd_it8_get_data_item (CdIt8 *it8
,guint idx
,CdColorRGB *rgb
,CdColorXYZ *xyz
);
Gets a specific bit of data from this object. The returned data are absolute readings and are not normalised.
it8 |
a CdIt8 instance. |
|
idx |
the item index |
|
rgb |
the returned RGB value |
|
xyz |
the returned XYZ value |
Since: 0.1.20
GPtrArray *
cd_it8_get_spectrum_array (CdIt8 *it8
);
Gets the spectral data of IT8 file.
Since: 1.1.6
CdSpectrum * cd_it8_get_spectrum_by_id (CdIt8 *it8
,const gchar *id
);
Gets a specific spectrum in an IT8 file.
Since: 1.1.6
gboolean cd_it8_has_option (CdIt8 *it8
,const gchar *option
);
Finds an option in the file.
Since: 0.1.20
CdColorXYZ * cd_it8_get_xyz_for_rgb (CdIt8 *it8
,gdouble R
,gdouble G
,gdouble B
,gdouble delta
);
Gets the XYZ value for a specific RGB value.
it8 |
a CdIt8 instance. |
|
R |
the red value |
|
G |
the green value |
|
B |
the blue value |
|
delta |
the smallest difference between colors, e.g. 0.01f |
Since: 1.2.6
“instrument”
property“instrument” gchar *
The instrument that created the results, e.g. "huey"
Flags: Read
Default value: NULL
Since: 0.1.20
“kind”
property“kind” guint
The kind of IT8 file.
Flags: Read / Write
Default value: 0
Since: 0.1.20
“normalized”
property“normalized” gboolean
If the results file is normalized.
Flags: Read
Default value: FALSE
Since: 0.1.20
“originator”
property“originator” gchar *
The framework that created the results, e.g. "cd-self-test"
Flags: Read
Default value: NULL
Since: 0.1.20
“reference”
property“reference” gchar *
The reference that created the results, e.g. "colormunki"
Flags: Read
Default value: NULL
Since: 0.1.20
“spectral”
property“spectral” gboolean
If the results file is spectral.
Flags: Read
Default value: FALSE
Since: 0.1.20
“title”
property“title” gchar *
The file title, e.g. "Factor calibration".
Flags: Read
Default value: NULL
Since: 0.1.20