Top | ![]() |
![]() |
![]() |
![]() |
const char * | iptc_tag_get_name () |
char * | iptc_tag_get_title () |
char * | iptc_tag_get_description () |
const IptcTagInfo * | iptc_tag_get_info () |
char * | iptc_format_get_name () |
int | iptc_tag_find_by_name () |
enum | IptcRecord |
enum | IptcTag |
struct | IptcTagInfo |
enum | IptcFormat |
enum | IptcMandatory |
enum | IptcRepeatable |
const char * iptc_tag_get_name (IptcRecord record
,IptcTag tag
);
Retrieves the name of a tag. The name is derived from the IPTC IIM specification and gives an indication of the purpose of a particular tag. The name will consist of ASCII characters with no spaces, for example "CopyrightNotice".
char * iptc_tag_get_title (IptcRecord record
,IptcTag tag
);
Retrieves the title of a tag. The title is similar to the name, except it will be translated to the current locale (if available) and may contain spaces, for example "Copyright Notice". It is appropriate for the title to appear in user interfaces. The return value will be encoding using the UTF-8 character set.
char * iptc_tag_get_description (IptcRecord record
,IptcTag tag
);
Retrieves the description of a tag, which explains the purpose of the tag from the IPTC IIM specification. It is translated to the current locale if available. The return value will be encoded using the UTF-8 character set.
const IptcTagInfo * iptc_tag_get_info (IptcRecord record
,IptcTag tag
);
Retrieves the IptcTagInfo structure containing information about the tag from the IPTC IIM specification such as purpose, data format, and minimum and maximum lengths.
char *
iptc_format_get_name (IptcFormat format
);
Retrieves a string version of a data format. For example,
IPTC_FORMAT_STRING
returns "String".
int iptc_tag_find_by_name (const char *name
,IptcRecord *record
,IptcTag *tag
);
Looks up the record and tag numbers for a tag specified by name. For example, searching for "Caption" would return 2:120 in the record and tag variables.
struct IptcTagInfo { IptcRecord record; IptcTag tag; const char *name; const char *title; const char *description; IptcFormat format; IptcMandatory mandatory; IptcRepeatable repeatable; unsigned int minbytes; unsigned int maxbytes; };