#include <config.h>
#include "mnote-olympus-entry.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libexif/exif-format.h>
#include <libexif/exif-utils.h>
#include <libexif/exif-entry.h>
#include <libexif/i18n.h>
Go to the source code of this file.
Defines | |
#define | CF(format, target, v, maxlen) |
#define | CF2(format, target1, target2, v, maxlen) |
#define | CC(number, target, v, maxlen) |
#define | CC2(number, t1, t2, v, maxlen) |
#define | R2L(n) ((n).denominator ? (long)(n).numerator/(n).denominator : 0L) |
#define | R2D(n) ((n).denominator ? (double)(n).numerator/(n).denominator : 0.0) |
Functions | |
char * | mnote_olympus_entry_get_value (MnoteOlympusEntry *entry, char *v, unsigned int maxlen) |
Variables | |
struct { | |
ExifTag tag | |
ExifFormat fmt | |
struct { | |
int index | |
const char * string | |
} elem [24] | |
} | items [] |
#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 58 of file mnote-olympus-entry.c.
#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 68 of file mnote-olympus-entry.c.
#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 33 of file mnote-olympus-entry.c.
#define CF2 | ( | format, | |||
target1, | |||||
target2, | |||||
v, | |||||
maxlen | ) |
Value:
{ \ if ((format != target1) && (format != target2)) { \ snprintf (v, maxlen, \ _("Invalid format '%s', " \ "expected '%s' or '%s'."), \ exif_format_get_name (format), \ exif_format_get_name (target1), \ exif_format_get_name (target2)); \ break; \ } \ }
Definition at line 45 of file mnote-olympus-entry.c.
Referenced by mnote_olympus_entry_get_value().
#define R2D | ( | n | ) | ((n).denominator ? (double)(n).numerator/(n).denominator : 0.0) |
#define R2L | ( | n | ) | ((n).denominator ? (long)(n).numerator/(n).denominator : 0L) |
char* mnote_olympus_entry_get_value | ( | MnoteOlympusEntry * | entry, | |
char * | v, | |||
unsigned int | maxlen | |||
) |
Definition at line 273 of file mnote-olympus-entry.c.
Referenced by exif_mnote_data_olympus_get_value().
struct { ... } elem[24] |
Definition at line 84 of file mnote-olympus-entry.c.
int index |
Definition at line 86 of file mnote-olympus-entry.c.
struct { ... } items[] [static] |
const char* string |
Definition at line 87 of file mnote-olympus-entry.c.
Definition at line 83 of file mnote-olympus-entry.c.