#include "config.h"#include "mnote-canon-entry.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include <libexif/exif-format.h>#include <libexif/exif-utils.h>#include <libexif/i18n.h>Go to the source code of this file.
Data Structures | |
| struct | canon_entry_table_t |
Defines | |
| #define | CF(format, target, v, maxlen) |
| #define | CC(number, target, v, maxlen) |
| #define | CC2(number, t1, t2, v, maxlen) |
| #define | UNDEFINED 0xFF |
Functions | |
| static void | canon_search_table_value (struct canon_entry_table_t table[], unsigned int t, ExifShort vs, char *val, unsigned int maxlen) |
| static void | canon_search_table_bitfield (struct canon_entry_table_t table[], unsigned int t, ExifShort vs, char *val, unsigned int maxlen) |
| unsigned int | mnote_canon_entry_count_values (const MnoteCanonEntry *entry) |
| static double | apex_value_to_aperture (double x) |
| static double | apex_value_to_shutter_speed (double x) |
| static double | apex_value_to_iso_speed (double x) |
| char * | mnote_canon_entry_get_value (const MnoteCanonEntry *entry, unsigned int t, char *val, unsigned int maxlen) |
Variables | |
| static struct canon_entry_table_t | entries_settings_1 [] |
| static struct canon_entry_table_t | entries_focal_length [] |
| static struct canon_entry_table_t | entries_settings_2 [] |
| static struct canon_entry_table_t | entries_panorama [] |
| #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 48 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 57 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 36 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 68 of file mnote-canon-entry.c.
| static double apex_value_to_aperture | ( | double | x | ) | [static] |
| static double apex_value_to_iso_speed | ( | double | x | ) | [static] |
| static double apex_value_to_shutter_speed | ( | double | x | ) | [static] |
| static void canon_search_table_bitfield | ( | struct canon_entry_table_t | table[], | |
| unsigned int | t, | |||
| ExifShort | vs, | |||
| char * | val, | |||
| unsigned int | maxlen | |||
| ) | [static] |
Definition at line 362 of file mnote-canon-entry.c.
References N_, name, subtag, and table.
Referenced by mnote_canon_entry_get_value().
| static void canon_search_table_value | ( | struct canon_entry_table_t | table[], | |
| unsigned int | t, | |||
| ExifShort | vs, | |||
| char * | val, | |||
| unsigned int | maxlen | |||
| ) | [static] |
Definition at line 340 of file mnote-canon-entry.c.
References name, subtag, and table.
Referenced by mnote_canon_entry_get_value().
| unsigned int mnote_canon_entry_count_values | ( | const MnoteCanonEntry * | entry | ) |
Definition at line 402 of file mnote-canon-entry.c.
References _MnoteCanonEntry::components, _MnoteCanonEntry::data, EXIF_FORMAT_SHORT, exif_get_short(), _MnoteCanonEntry::format, MIN, MNOTE_CANON_TAG_CUSTOM_FUNCS, MNOTE_CANON_TAG_FOCAL_LENGTH, MNOTE_CANON_TAG_PANORAMA, 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 448 of file mnote-canon-entry.c.
References _, apex_value_to_aperture(), apex_value_to_iso_speed(), apex_value_to_shutter_speed(), canon_search_table_bitfield(), canon_search_table_value(), CC, CF, _MnoteCanonEntry::components, _MnoteCanonEntry::data, entries_focal_length, entries_panorama, entries_settings_1, entries_settings_2, 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_FOCAL_LENGTH, MNOTE_CANON_TAG_IMAGE_NUMBER, MNOTE_CANON_TAG_IMAGE_TYPE, MNOTE_CANON_TAG_OWNER, MNOTE_CANON_TAG_PANORAMA, MNOTE_CANON_TAG_SERIAL_NUMBER, MNOTE_CANON_TAG_SETTINGS_1, MNOTE_CANON_TAG_SETTINGS_2, _MnoteCanonEntry::order, _MnoteCanonEntry::size, and _MnoteCanonEntry::tag.
Referenced by exif_mnote_data_canon_get_value().
struct canon_entry_table_t
entries_focal_length[] [static] |
Referenced by mnote_canon_entry_get_value().
struct canon_entry_table_t
entries_panorama[] [static] |
Referenced by mnote_canon_entry_get_value().
struct canon_entry_table_t entries_settings_1[] [static] |
Referenced by mnote_canon_entry_get_value().
struct canon_entry_table_t
entries_settings_2[] [static] |
Referenced by mnote_canon_entry_get_value().
1.5.0