#include "config.h"
#include "mnote-canon-entry.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libexif/exif-format.h>
#include <libexif/exif-utils.h>
#include <libexif/i18n.h>
Include dependency graph for mnote-canon-entry.c:
Go to the source code of this file.
Defines | |
#define | CF(format, target, v, maxlen) |
#define | CC(number, target, v, maxlen) |
#define | CC2(number, t1, t2, v, maxlen) |
#define | UNDEFINED 0xFF |
Functions | |
unsigned int | mnote_canon_entry_count_values (const MnoteCanonEntry *entry) |
char * | mnote_canon_entry_get_value (const MnoteCanonEntry *entry, unsigned int t, char *val, unsigned int maxlen) |
Variables | |
struct { | |
unsigned int subtag | |
ExifShort value | |
char * name | |
} | entries [] |
#define CC | ( | number, | |||
target, | |||||
v, | |||||
maxlen | ) |
Value:
{ \ if (number != target) { \ snprintf (v, maxlen, \ _("Invalid number of components (%i, " \ "expected %i)."), (int) number, (int) target); \ break; \ } \ }
Definition at line 47 of file mnote-canon-entry.c.
Referenced by exif_entry_get_value(), mnote_canon_entry_get_value(), mnote_olympus_entry_get_value(), and mnote_pentax_entry_get_value().
#define CC2 | ( | number, | |||
t1, | |||||
t2, | |||||
v, | |||||
maxlen | ) |
Value:
{ \ if ((number != t1) && (number != t2)) { \ snprintf (v, maxlen, \ _("Invalid number of components (%i, " \ "expected %i or %i)."), (int) number, \ (int) t1, (int) t2); \ break; \ } \ }
Definition at line 56 of file mnote-canon-entry.c.
Referenced by mnote_olympus_entry_get_value().
#define CF | ( | format, | |||
target, | |||||
v, | |||||
maxlen | ) |
Value:
{ \ if (format != target) { \ snprintf (v, maxlen, \ _("Invalid format '%s', " \ "expected '%s'."), \ exif_format_get_name (format), \ exif_format_get_name (target)); \ break; \ } \ }
Definition at line 35 of file mnote-canon-entry.c.
Referenced by exif_entry_get_value(), mnote_canon_entry_get_value(), mnote_olympus_entry_get_value(), and mnote_pentax_entry_get_value().
#define UNDEFINED 0xFF |
Definition at line 67 of file mnote-canon-entry.c.
unsigned int mnote_canon_entry_count_values | ( | const MnoteCanonEntry * | entry | ) |
Definition at line 193 of file mnote-canon-entry.c.
References _MnoteCanonEntry::data, EXIF_FORMAT_SHORT, exif_get_short(), _MnoteCanonEntry::format, MIN, MNOTE_CANON_TAG_CUSTOM_FUNCS, MNOTE_CANON_TAG_SETTINGS_1, MNOTE_CANON_TAG_SETTINGS_2, _MnoteCanonEntry::order, _MnoteCanonEntry::size, and _MnoteCanonEntry::tag.
Referenced by exif_mnote_data_canon_count(), and exif_mnote_data_canon_get_tags().
char* mnote_canon_entry_get_value | ( | const MnoteCanonEntry * | entry, | |
unsigned int | t, | |||
char * | val, | |||
unsigned int | maxlen | |||
) |
Definition at line 214 of file mnote-canon-entry.c.
References _, CC, CF, _MnoteCanonEntry::components, _MnoteCanonEntry::data, entries, EXIF_FORMAT_ASCII, EXIF_FORMAT_LONG, EXIF_FORMAT_SHORT, exif_get_long(), exif_get_short(), _MnoteCanonEntry::format, MIN, MNOTE_CANON_TAG_CUSTOM_FUNCS, MNOTE_CANON_TAG_FIRMWARE, MNOTE_CANON_TAG_IMAGE_NUMBER, MNOTE_CANON_TAG_IMAGE_TYPE, MNOTE_CANON_TAG_OWNER, MNOTE_CANON_TAG_SERIAL_NUMBER, MNOTE_CANON_TAG_SETTINGS_1, MNOTE_CANON_TAG_SETTINGS_2, name, _MnoteCanonEntry::order, _MnoteCanonEntry::size, subtag, _MnoteCanonEntry::tag, and value.
Referenced by exif_mnote_data_canon_get_value().
struct { ... } entries[] [static] |
Referenced by mnote_canon_entry_get_value().
char* name |
Definition at line 72 of file mnote-canon-entry.c.
Referenced by exif_data_option_get_name(), exif_format_get_name(), exif_ifd_get_name(), mnote_canon_entry_get_value(), mnote_canon_tag_get_name(), mnote_canon_tag_get_name_sub(), mnote_canon_tag_get_title_sub(), mnote_olympus_tag_get_name(), and mnote_pentax_tag_get_name().
unsigned int subtag |
Definition at line 70 of file mnote-canon-entry.c.
Referenced by mnote_canon_entry_get_value(), mnote_canon_tag_get_name_sub(), and mnote_canon_tag_get_title_sub().
Definition at line 71 of file mnote-canon-entry.c.
Referenced by exif_data_get_type_maker_note(), exif_entry_dump(), exif_set_rational(), exif_set_srational(), and mnote_canon_entry_get_value().