![]() |
![]() |
![]() |
GNOME Color Manager Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
GcmProfilePrivate; GcmProfile; GcmProfileClass; GcmProfile * gcm_profile_new (void
); gboolean gcm_profile_parse (GcmProfile *profile
,GFile *file
,GError **error
); gboolean gcm_profile_parse_data (GcmProfile *profile
,const guint8 *data
,gsize length
,GError **error
); gboolean gcm_profile_save (GcmProfile *profile
,const gchar *filename
,GError **error
); gpointer gcm_profile_get_handle (GcmProfile *profile
); const gchar * gcm_profile_get_checksum (GcmProfile *profile
); gboolean gcm_profile_get_can_delete (GcmProfile *profile
); GcmClut * gcm_profile_generate_vcgt (GcmProfile *profile
,guint size
); GcmClut * gcm_profile_generate_curve (GcmProfile *profile
,guint size
); const gchar * gcm_profile_get_description (GcmProfile *profile
); void gcm_profile_set_description (GcmProfile *profile
,const gchar *description
); GFile * gcm_profile_get_file (GcmProfile *profile
); void gcm_profile_set_file (GcmProfile *profile
,GFile *file
); const gchar * gcm_profile_get_filename (GcmProfile *profile
); const gchar * gcm_profile_get_copyright (GcmProfile *profile
); void gcm_profile_set_copyright (GcmProfile *profile
,const gchar *copyright
); const gchar * gcm_profile_get_manufacturer (GcmProfile *profile
); void gcm_profile_set_manufacturer (GcmProfile *profile
,const gchar *manufacturer
); const gchar * gcm_profile_get_model (GcmProfile *profile
); void gcm_profile_set_model (GcmProfile *profile
,const gchar *model
); const gchar * gcm_profile_get_datetime (GcmProfile *profile
); void gcm_profile_set_datetime (GcmProfile *profile
,const gchar *datetime
); guint gcm_profile_get_size (GcmProfile *profile
); void gcm_profile_set_size (GcmProfile *profile
,guint size
); GcmProfileKind gcm_profile_get_kind (GcmProfile *profile
); void gcm_profile_set_kind (GcmProfile *profile
,GcmProfileKind kind
); GcmColorspace gcm_profile_get_colorspace (GcmProfile *profile
); void gcm_profile_set_colorspace (GcmProfile *profile
,GcmColorspace colorspace
); gboolean gcm_profile_get_has_vcgt (GcmProfile *profile
); void gcm_profile_set_has_vcgt (GcmProfile *profile
,gboolean has_vcgt
); gboolean gcm_profile_has_colorspace_description (GcmProfile *profile
);
"black" GcmXyz* : Read / Write "blue" GcmXyz* : Read / Write "can-delete" gboolean : Read "checksum" gchar* : Read "colorspace" guint : Read / Write "copyright" gchar* : Read / Write "datetime" gchar* : Read / Write "description" gchar* : Read / Write "file" GFile* : Read / Write "green" GcmXyz* : Read / Write "has-vcgt" gboolean : Read / Write "kind" guint : Read / Write "manufacturer" gchar* : Read / Write "model" gchar* : Read / Write "red" GcmXyz* : Read / Write "size" guint : Read / Write "white" GcmXyz* : Read / Write
This object is a simple parser for the ICC binary profile data. If only understands a subset of the ICC profile, just enought to get some metadata and the LUT.
typedef struct { GObjectClass parent_class; /* padding for future expansion */ void (*_gcm_reserved1) (void); void (*_gcm_reserved2) (void); void (*_gcm_reserved3) (void); void (*_gcm_reserved4) (void); void (*_gcm_reserved5) (void); } GcmProfileClass;
GcmProfile * gcm_profile_new (void
);
Returns : |
a new GcmProfile object. |
Since 0.0.1
gboolean gcm_profile_parse (GcmProfile *profile
,GFile *file
,GError **error
);
Parses a profile filename, filling in all the details possible.
|
A valid GcmProfile |
|
A GFile pointing to a profile |
|
A GError, or NULL
|
Returns : |
TRUE for success
|
Since 0.0.1
gboolean gcm_profile_parse_data (GcmProfile *profile
,const guint8 *data
,gsize length
,GError **error
);
Parses profile data, filling in all the details possible.
|
A valid GcmProfile |
|
the data to parse |
|
the length of data
|
|
A GError, or NULL
|
Returns : |
TRUE for success
|
Since 0.0.1
gboolean gcm_profile_save (GcmProfile *profile
,const gchar *filename
,GError **error
);
Saves the profile data to a file.
|
A valid GcmProfile |
|
the data to parse |
|
A GError, or NULL
|
Returns : |
TRUE for success
|
Since 0.0.1
gpointer gcm_profile_get_handle (GcmProfile *profile
);
|
|
Returns : |
Do not call cmsCloseProfile() on this value!
|
const gchar * gcm_profile_get_checksum (GcmProfile *profile
);
|
|
Returns : |
gboolean gcm_profile_get_can_delete (GcmProfile *profile
);
|
|
Returns : |
GcmClut * gcm_profile_generate_vcgt (GcmProfile *profile
,guint size
);
Generates a VCGT table of a specified size.
|
A valid GcmProfile |
|
the size of the table to generate |
Returns : |
A GcmClut object, or NULL . Free with g_object_unref()
|
Since 0.0.1
GcmClut * gcm_profile_generate_curve (GcmProfile *profile
,guint size
);
Generates a curve of a specified size.
|
A valid GcmProfile |
|
the size of the curve to generate |
Returns : |
A GcmClut object, or NULL . Free with g_object_unref()
|
Since 0.0.1
const gchar * gcm_profile_get_description (GcmProfile *profile
);
Gets the profile description.
|
A valid GcmProfile |
Returns : |
The profile description as a string. |
Since 0.0.1
void gcm_profile_set_description (GcmProfile *profile
,const gchar *description
);
Sets the description of the profile.
|
A valid GcmProfile |
|
the data location to read into |
Since 0.0.1
GFile * gcm_profile_get_file (GcmProfile *profile
);
Gets the file attached to this profile.
|
A valid GcmProfile |
Returns : |
A GFile, or NULL . Do not free.
|
Since 0.0.1
void gcm_profile_set_file (GcmProfile *profile
,GFile *file
);
Sets the file to be used when reading the profile.
|
A valid GcmProfile |
|
A GFile to read |
Since 0.0.1
const gchar * gcm_profile_get_filename (GcmProfile *profile
);
Gets the filename of the profile data, if one exists.
|
A valid GcmProfile |
Returns : |
A filename, or NULL
|
Since 0.0.1
const gchar * gcm_profile_get_copyright (GcmProfile *profile
);
Gets the copyright string for this profile.
|
A valid GcmProfile |
Returns : |
A string. Do not free. |
Since 0.0.1
void gcm_profile_set_copyright (GcmProfile *profile
,const gchar *copyright
);
Sets the copyright string.
|
A valid GcmProfile |
|
the copyright string |
Since 0.0.1
const gchar * gcm_profile_get_manufacturer (GcmProfile *profile
);
Gets the device manufacturer name.
|
A valid GcmProfile |
Returns : |
A string. Do not free. |
Since 0.0.1
void gcm_profile_set_manufacturer (GcmProfile *profile
,const gchar *manufacturer
);
Sets the device manufacturer name.
|
A valid GcmProfile |
|
the profile manufacturer. |
Since 0.0.1
const gchar * gcm_profile_get_model (GcmProfile *profile
);
Gets the device model name.
|
A valid GcmProfile |
Returns : |
A string. Do not free. |
Since 0.0.1
void gcm_profile_set_model (GcmProfile *profile
,const gchar *model
);
Sets the device model name.
|
A valid GcmProfile |
|
the profile model. |
Since 0.0.1
const gchar * gcm_profile_get_datetime (GcmProfile *profile
);
Gets the profile date and time.
|
A valid GcmProfile |
Returns : |
A string. Do not free. |
Since 0.0.1
void gcm_profile_set_datetime (GcmProfile *profile
,const gchar *datetime
);
Sets the profile date and time.
|
A valid GcmProfile |
|
the profile date time. |
Since 0.0.1
void gcm_profile_set_size (GcmProfile *profile
,guint size
);
|
|
|
GcmProfileKind gcm_profile_get_kind (GcmProfile *profile
);
|
|
Returns : |
void gcm_profile_set_kind (GcmProfile *profile
,GcmProfileKind kind
);
|
|
|
GcmColorspace gcm_profile_get_colorspace (GcmProfile *profile
);
|
|
Returns : |
void gcm_profile_set_colorspace (GcmProfile *profile
,GcmColorspace colorspace
);
|
|
|
gboolean gcm_profile_get_has_vcgt (GcmProfile *profile
);
|
|
Returns : |
void gcm_profile_set_has_vcgt (GcmProfile *profile
,gboolean has_vcgt
);
|
|
|
gboolean gcm_profile_has_colorspace_description
(GcmProfile *profile
);
Finds out if the profile contains a colorspace description.
|
A valid GcmProfile |
Returns : |
TRUE if the description mentions the profile colorspace explicity,
e.g. "Adobe RGB" for GCM_COLORSPACE_RGB .
|
Since 0.0.1