exif-mnote-data-fuji.c File Reference

#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <libexif/exif-byte-order.h>
#include <libexif/exif-utils.h>
#include "exif-mnote-data-fuji.h"

Go to the source code of this file.

Data Structures

struct  _MNoteFujiDataPrivate

Functions

static void exif_mnote_data_fuji_clear (ExifMnoteDataFuji *n)
static void exif_mnote_data_fuji_free (ExifMnoteData *n)
static char * exif_mnote_data_fuji_get_value (ExifMnoteData *d, unsigned int i, char *val, unsigned int maxlen)
static void exif_mnote_data_fuji_save (ExifMnoteData *ne, unsigned char **buf, unsigned int *buf_size)
static void exif_mnote_data_fuji_load (ExifMnoteData *en, const unsigned char *buf, unsigned int buf_size)
static unsigned int exif_mnote_data_fuji_count (ExifMnoteData *n)
static unsigned int exif_mnote_data_fuji_get_id (ExifMnoteData *d, unsigned int n)
static const char * exif_mnote_data_fuji_get_name (ExifMnoteData *d, unsigned int i)
static const char * exif_mnote_data_fuji_get_title (ExifMnoteData *d, unsigned int i)
static const char * exif_mnote_data_fuji_get_description (ExifMnoteData *d, unsigned int i)
static void exif_mnote_data_fuji_set_byte_order (ExifMnoteData *d, ExifByteOrder o)
static void exif_mnote_data_fuji_set_offset (ExifMnoteData *n, unsigned int o)
int exif_mnote_data_fuji_identify (const ExifData *ed, const ExifEntry *e)
 Detect if MakerNote is recognized as one handled by the Fuji module.
ExifMnoteDataexif_mnote_data_fuji_new (ExifMem *mem)


Function Documentation

static void exif_mnote_data_fuji_clear ( ExifMnoteDataFuji n  )  [static]

Definition at line 36 of file exif-mnote-data-fuji.c.

References _ExifMnoteDataFuji::count, _MnoteFujiEntry::data, _ExifMnoteDataFuji::entries, exif_mem_free(), and _ExifMnoteData::mem.

Referenced by exif_mnote_data_fuji_free(), and exif_mnote_data_fuji_load().

static unsigned int exif_mnote_data_fuji_count ( ExifMnoteData n  )  [static]

Definition at line 248 of file exif-mnote-data-fuji.c.

Referenced by exif_mnote_data_fuji_new().

static void exif_mnote_data_fuji_free ( ExifMnoteData n  )  [static]

Definition at line 56 of file exif-mnote-data-fuji.c.

References exif_mnote_data_fuji_clear().

Referenced by exif_mnote_data_fuji_new().

static const char* exif_mnote_data_fuji_get_description ( ExifMnoteData d,
unsigned int  i 
) [static]

Definition at line 284 of file exif-mnote-data-fuji.c.

References _ExifMnoteDataFuji::count, _ExifMnoteDataFuji::entries, mnote_fuji_tag_get_description(), and _MnoteFujiEntry::tag.

Referenced by exif_mnote_data_fuji_new().

static unsigned int exif_mnote_data_fuji_get_id ( ExifMnoteData d,
unsigned int  n 
) [static]

Definition at line 254 of file exif-mnote-data-fuji.c.

References _ExifMnoteDataFuji::count, _ExifMnoteDataFuji::entries, and _MnoteFujiEntry::tag.

Referenced by exif_mnote_data_fuji_new().

static const char* exif_mnote_data_fuji_get_name ( ExifMnoteData d,
unsigned int  i 
) [static]

Definition at line 264 of file exif-mnote-data-fuji.c.

References _ExifMnoteDataFuji::count, _ExifMnoteDataFuji::entries, mnote_fuji_tag_get_name(), and _MnoteFujiEntry::tag.

Referenced by exif_mnote_data_fuji_new().

static const char* exif_mnote_data_fuji_get_title ( ExifMnoteData d,
unsigned int  i 
) [static]

Definition at line 274 of file exif-mnote-data-fuji.c.

References _ExifMnoteDataFuji::count, _ExifMnoteDataFuji::entries, mnote_fuji_tag_get_title(), and _MnoteFujiEntry::tag.

Referenced by exif_mnote_data_fuji_new().

static char* exif_mnote_data_fuji_get_value ( ExifMnoteData d,
unsigned int  i,
char *  val,
unsigned int  maxlen 
) [static]

Definition at line 64 of file exif-mnote-data-fuji.c.

References _ExifMnoteDataFuji::count, _ExifMnoteDataFuji::entries, and mnote_fuji_entry_get_value().

Referenced by exif_mnote_data_fuji_new().

int exif_mnote_data_fuji_identify ( const ExifData ed,
const ExifEntry e 
)

Detect if MakerNote is recognized as one handled by the Fuji module.

Parameters:
[in] ed image ExifData to identify as as a Fuji type
[in] e ExifEntry for EXIF_TAG_MAKER_NOTE, from within ed but duplicated here for convenience
Returns:
0 if not recognized, nonzero if recognized. The specific nonzero value returned may identify a subtype unique within this module.

Definition at line 318 of file exif-mnote-data-fuji.c.

Referenced by interpret_maker_note().

static void exif_mnote_data_fuji_load ( ExifMnoteData en,
const unsigned char *  buf,
unsigned int  buf_size 
) [static]

Definition at line 152 of file exif-mnote-data-fuji.c.

References _MnoteFujiEntry::components, _ExifMnoteDataFuji::count, _MnoteFujiEntry::data, _ExifMnoteDataFuji::entries, EXIF_BYTE_ORDER_INTEL, exif_format_get_size(), exif_get_long(), exif_get_short(), exif_log(), EXIF_LOG_CODE_CORRUPT_DATA, EXIF_LOG_CODE_DEBUG, EXIF_LOG_NO_MEMORY, exif_mem_alloc(), exif_mnote_data_fuji_clear(), _MnoteFujiEntry::format, _ExifMnoteData::log, _ExifMnoteData::mem, mnote_fuji_tag_get_name(), _ExifMnoteDataFuji::offset, _MnoteFujiEntry::order, _ExifMnoteDataFuji::order, _MnoteFujiEntry::size, and _MnoteFujiEntry::tag.

Referenced by exif_mnote_data_fuji_new().

ExifMnoteData* exif_mnote_data_fuji_new ( ExifMem mem  ) 

Definition at line 324 of file exif-mnote-data-fuji.c.

Referenced by interpret_maker_note().

static void exif_mnote_data_fuji_save ( ExifMnoteData ne,
unsigned char **  buf,
unsigned int *  buf_size 
) [static]

Definition at line 79 of file exif-mnote-data-fuji.c.

References _MnoteFujiEntry::components, _ExifMnoteDataFuji::count, _MnoteFujiEntry::data, _ExifMnoteDataFuji::entries, exif_format_get_size(), exif_mem_alloc(), exif_mem_realloc(), exif_set_long(), exif_set_short(), _MnoteFujiEntry::format, _ExifMnoteData::mem, _ExifMnoteDataFuji::order, and _MnoteFujiEntry::tag.

Referenced by exif_mnote_data_fuji_new().

static void exif_mnote_data_fuji_set_byte_order ( ExifMnoteData d,
ExifByteOrder  o 
) [static]

Definition at line 294 of file exif-mnote-data-fuji.c.

References _MnoteFujiEntry::components, _ExifMnoteDataFuji::count, _MnoteFujiEntry::data, _ExifMnoteDataFuji::entries, exif_array_set_byte_order(), _MnoteFujiEntry::format, _MnoteFujiEntry::order, and _ExifMnoteDataFuji::order.

Referenced by exif_mnote_data_fuji_new().

static void exif_mnote_data_fuji_set_offset ( ExifMnoteData n,
unsigned int  o 
) [static]

Definition at line 312 of file exif-mnote-data-fuji.c.

Referenced by exif_mnote_data_fuji_new().


SourceForge.net Logo Generated by doxygen