Gegl.Metadata¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Gegl.Metadata¶
- Bases:
- Structure:
- get_resolution(unit, x, y)¶
- Parameters:
unit (
Gegl.ResolutionUnit) –Gegl.ResolutionUnitreturn locationx (
float) – X resolution return locationy (
float) – Y resolution return location
- Returns:
Trueif successful.- Return type:
Retrieve resolution from the application image metadata. Intended for use by the image file writer. If resolution is not supported by the application or if the operation fails
Falseis returned and the resolution values are not updated.
- iter_get_value(iter, value)¶
- Parameters:
iter (
Gegl.MetadataIter) –Gegl.MetadataIterreferencing the value to getvalue (
GObject.Value) – Value to set in the interface
- Returns:
Trueif successful.- Return type:
Retrieve image file metadata from the application. Intended for use by the image file writer. If the operation fails it returns
Falseand value is not updated.
- iter_init(iter)¶
- Parameters:
iter (
Gegl.MetadataIter) –Gegl.MetadataIterto be initialised
Initialise an iterator to find all supported metadata keys.
- iter_lookup(iter, key)¶
- Parameters:
iter (
Gegl.MetadataIter) –Gegl.MetadataIterto be initialisedkey (
str) – Name of the value look up
- Returns:
Trueif key is found.- Return type:
Look up the specified key and initialise an iterator to reference the associated metadata. The iterator is used in conjunction with gegl_metadata_set_value() and gegl_metadata_get_value(). Note that this iterator is not valid for
Gegl.Metadata.iter_next().
- iter_next(iter)¶
- Parameters:
iter (
Gegl.MetadataIter) –Gegl.MetadataIterto be updated- Returns:
key name if found, else
None- Return type:
Move the iterator to the next metadata item
- iter_set_value(iter, value)¶
- Parameters:
iter (
Gegl.MetadataIter) –Gegl.MetadataIterreferencing the value to setvalue (
GObject.Value) – Value to set in the interface
- Returns:
Trueif successful.- Return type:
Set application data retrieved from image file’s metadata. Intended for use by the image file reader. If the operation fails it returns
Falseand value is ignored.
- register_map(file_module, flags, map)¶
- Parameters:
file_module (
str) – String identifying the file module, e.g,"gegl:png-save"flags (
int) – Flags specifying capabilities of underlying file formatmap ([
Gegl.MetadataMap]) – Array of mappings from file module metadata names to Gegl well-known names.
Set the name of the file module and pass an array of mappings from file-format specific metadata names to those used by Gegl. A
GObject.Valuetransformation function may be supplied, e.g. to parse or format timestamps.
- set_resolution(unit, x, y)¶
- Parameters:
unit (
Gegl.ResolutionUnit) – SpecifyGegl.ResolutionUnitx (
float) – X resolutiony (
float) – Y resolution
- Returns:
Trueif successful.- Return type:
Set resolution retrieved from image file’s metadata. Intended for use by the image file reader. If resolution is not supported by the application or if the operation fails
Falseis returned and the values are ignored.
- unregister_map()¶
Unregister the file module mappings and any further mappings added or modified by the application. This should be called after the file module completes operations.
- do_get_resolution(unit, x, y) virtual¶
- Parameters:
unit (
Gegl.ResolutionUnit) –Gegl.ResolutionUnitreturn locationx (
float) – X resolution return locationy (
float) – Y resolution return location
- Returns:
Trueif successful.- Return type:
Retrieve resolution from the application image metadata. Intended for use by the image file writer. If resolution is not supported by the application or if the operation fails
Falseis returned and the resolution values are not updated.
- do_iter_get_value(iter, value) virtual¶
- Parameters:
iter (
Gegl.MetadataIter) –Gegl.MetadataIterreferencing the value to getvalue (
GObject.Value) – Value to set in the interface
- Returns:
Trueif successful.- Return type:
Retrieve image file metadata from the application. Intended for use by the image file writer. If the operation fails it returns
Falseand value is not updated.
- do_iter_init(iter) virtual¶
- Parameters:
iter (
Gegl.MetadataIter) –Gegl.MetadataIterto be initialised
Initialise an iterator to find all supported metadata keys.
- do_iter_lookup(iter, key) virtual¶
- Parameters:
iter (
Gegl.MetadataIter) –Gegl.MetadataIterto be initialisedkey (
str) – Name of the value look up
- Returns:
Trueif key is found.- Return type:
Look up the specified key and initialise an iterator to reference the associated metadata. The iterator is used in conjunction with gegl_metadata_set_value() and gegl_metadata_get_value(). Note that this iterator is not valid for
Gegl.Metadata.iter_next().
- do_iter_next(iter) virtual¶
- Parameters:
iter (
Gegl.MetadataIter) –Gegl.MetadataIterto be updated- Returns:
key name if found, else
None- Return type:
Move the iterator to the next metadata item
- do_iter_set_value(iter, value) virtual¶
- Parameters:
iter (
Gegl.MetadataIter) –Gegl.MetadataIterreferencing the value to setvalue (
GObject.Value) – Value to set in the interface
- Returns:
Trueif successful.- Return type:
Set application data retrieved from image file’s metadata. Intended for use by the image file reader. If the operation fails it returns
Falseand value is ignored.
- do_register_map(file_module, flags, map) virtual¶
- Parameters:
file_module (
str) – String identifying the file module, e.g,"gegl:png-save"flags (
int) – Flags specifying capabilities of underlying file formatmap ([
Gegl.MetadataMap]) – Array of mappings from file module metadata names to Gegl well-known names.
Set the name of the file module and pass an array of mappings from file-format specific metadata names to those used by Gegl. A
GObject.Valuetransformation function may be supplied, e.g. to parse or format timestamps.
- do_set_resolution(unit, x, y) virtual¶
- Parameters:
unit (
Gegl.ResolutionUnit) – SpecifyGegl.ResolutionUnitx (
float) – X resolutiony (
float) – Y resolution
- Returns:
Trueif successful.- Return type:
Set resolution retrieved from image file’s metadata. Intended for use by the image file reader. If resolution is not supported by the application or if the operation fails
Falseis returned and the values are ignored.