GUPnP DLNA Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
GUPnPDLNAImageInformationGUPnPDLNAImageInformation — Base class representing image metadata needed for DLNA profiles matching. |
Synopsis
GUPnPDLNAImageInformation; GUPnPDLNAImageInformationClass; GUPnPDLNAIntValue gupnp_dlna_image_information_get_depth (GUPnPDLNAImageInformation *info
); GUPnPDLNAIntValue gupnp_dlna_image_information_get_height (GUPnPDLNAImageInformation *info
); GUPnPDLNAStringValue gupnp_dlna_image_information_get_mime (GUPnPDLNAImageInformation *info
); GUPnPDLNAIntValue gupnp_dlna_image_information_get_width (GUPnPDLNAImageInformation *info
);
Description
GUPnPDLNAImageInformation holds all image metadatas important for matching profiles. Note that it does not mean all data should be provided for every image file as in some cases it does not make sense.
For metadata attributes that do not exist in current image file an unset value should be returned. For metadata attributes that do exist a set value with proper underlying value should be returned. In case metadata extractor has completely no clue how to extract some metadata attribute at all, an unsupported value should be returned. Note that unsupported values should be a temporary mean before fixing the multimedia framework to be able to extract such attribute.
Note that gupnp_dlna_image_information_get_mime()
should always
return a set value. Otherwise it is highly probably that the file
will not match against any DLNA profile.
Details
GUPnPDLNAImageInformationClass
typedef struct { GObjectClass parent_class; GUPnPDLNAIntValue (* get_depth) (GUPnPDLNAImageInformation *info); GUPnPDLNAIntValue (* get_height) (GUPnPDLNAImageInformation *info); GUPnPDLNAIntValue (* get_width) (GUPnPDLNAImageInformation *info); GUPnPDLNAStringValue (* get_mime) (GUPnPDLNAImageInformation *info); gpointer _reserved[12]; } GUPnPDLNAImageInformationClass;
GObjectClass |
Parent class. |
This is called by GUPnPDLNAProfileGuesser to get a depth. | |
This is called by GUPnPDLNAProfileGuesser to get a height. | |
This is called by GUPnPDLNAProfileGuesser to get a width. | |
This is called by GUPnPDLNAProfileGuesser to get a MIME type. | |
gpointer |
Padding. Ignore it. |
gupnp_dlna_image_information_get_depth ()
GUPnPDLNAIntValue gupnp_dlna_image_information_get_depth
(GUPnPDLNAImageInformation *info
);
|
A GUPnPDLNAImageInformation object. |
Returns : |
A depth of an image. |
gupnp_dlna_image_information_get_height ()
GUPnPDLNAIntValue gupnp_dlna_image_information_get_height
(GUPnPDLNAImageInformation *info
);
|
A GUPnPDLNAImageInformation object. |
Returns : |
A height of an image. |
gupnp_dlna_image_information_get_mime ()
GUPnPDLNAStringValue gupnp_dlna_image_information_get_mime
(GUPnPDLNAImageInformation *info
);
|
A GUPnPDLNAImageInformation object. |
Returns : |
A MIME type of an image. |
gupnp_dlna_image_information_get_width ()
GUPnPDLNAIntValue gupnp_dlna_image_information_get_width
(GUPnPDLNAImageInformation *info
);
|
A GUPnPDLNAImageInformation object. |
Returns : |
A width of an image. |