mnote-canon-entry.c File Reference

#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 (const struct canon_entry_table_t table[], unsigned int t, ExifShort vs, char *val, unsigned int maxlen)
static void canon_search_table_bitfield (const 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 []
static struct
canon_entry_table_t 
color_information []


Define Documentation

#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_fuji_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(), and mnote_pentax_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_fuji_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.


Function Documentation

static double apex_value_to_aperture ( double  x  )  [static]

Definition at line 533 of file mnote-canon-entry.c.

Referenced by mnote_canon_entry_get_value().

static double apex_value_to_iso_speed ( double  x  )  [static]

Definition at line 545 of file mnote-canon-entry.c.

Referenced by mnote_canon_entry_get_value().

static double apex_value_to_shutter_speed ( double  x  )  [static]

Definition at line 539 of file mnote-canon-entry.c.

Referenced by mnote_canon_entry_get_value().

static void canon_search_table_bitfield ( const struct canon_entry_table_t  table[],
unsigned int  t,
ExifShort  vs,
char *  val,
unsigned int  maxlen 
) [static]

Definition at line 464 of file mnote-canon-entry.c.

References _, name, canon_entry_table_t::name, subtag, canon_entry_table_t::subtag, and canon_entry_table_t::value.

Referenced by mnote_canon_entry_get_value().

static void canon_search_table_value ( const struct canon_entry_table_t  table[],
unsigned int  t,
ExifShort  vs,
char *  val,
unsigned int  maxlen 
) [static]

Definition at line 442 of file mnote-canon-entry.c.

References _, name, canon_entry_table_t::name, subtag, canon_entry_table_t::subtag, and canon_entry_table_t::value.

Referenced by mnote_canon_entry_get_value().

unsigned int mnote_canon_entry_count_values ( const MnoteCanonEntry entry  ) 

Definition at line 504 of file mnote-canon-entry.c.

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 551 of file mnote-canon-entry.c.

Referenced by exif_mnote_data_canon_get_value().


Variable Documentation

struct canon_entry_table_t color_information[] [static]

Referenced by mnote_canon_entry_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().


SourceForge.net Logo Generated by doxygen