#include "config.h"
#include "exif-mnote-data-pentax.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <libexif/exif-byte-order.h>
#include <libexif/exif-utils.h>
Go to the source code of this file.
Functions | |
static void | exif_mnote_data_pentax_clear (ExifMnoteDataPentax *n) |
static void | exif_mnote_data_pentax_free (ExifMnoteData *n) |
static char * | exif_mnote_data_pentax_get_value (ExifMnoteData *d, unsigned int i, char *val, unsigned int maxlen) |
static void | exif_mnote_data_pentax_save (ExifMnoteData *ne, unsigned char **buf, unsigned int *buf_size) |
save the MnoteData from ne to buf | |
static void | exif_mnote_data_pentax_load (ExifMnoteData *en, const unsigned char *buf, unsigned int buf_size) |
static unsigned int | exif_mnote_data_pentax_count (ExifMnoteData *n) |
static unsigned int | exif_mnote_data_pentax_get_id (ExifMnoteData *d, unsigned int n) |
static const char * | exif_mnote_data_pentax_get_name (ExifMnoteData *d, unsigned int n) |
static const char * | exif_mnote_data_pentax_get_title (ExifMnoteData *d, unsigned int n) |
static const char * | exif_mnote_data_pentax_get_description (ExifMnoteData *d, unsigned int n) |
static void | exif_mnote_data_pentax_set_offset (ExifMnoteData *d, unsigned int o) |
static void | exif_mnote_data_pentax_set_byte_order (ExifMnoteData *d, ExifByteOrder o) |
int | exif_mnote_data_pentax_identify (const ExifData *ed, const ExifEntry *e) |
Detect if MakerNote is recognized as one handled by the Pentax module. | |
ExifMnoteData * | exif_mnote_data_pentax_new (ExifMem *mem) |
static void exif_mnote_data_pentax_clear | ( | ExifMnoteDataPentax * | n | ) | [static] |
Definition at line 32 of file exif-mnote-data-pentax.c.
References _ExifMnoteDataPentax::count, _MnotePentaxEntry::data, _ExifMnoteDataPentax::entries, exif_mem_free(), and _ExifMnoteData::mem.
Referenced by exif_mnote_data_pentax_free(), and exif_mnote_data_pentax_load().
static unsigned int exif_mnote_data_pentax_count | ( | ExifMnoteData * | n | ) | [static] |
Definition at line 331 of file exif-mnote-data-pentax.c.
Referenced by exif_mnote_data_pentax_new().
static void exif_mnote_data_pentax_free | ( | ExifMnoteData * | n | ) | [static] |
Definition at line 52 of file exif-mnote-data-pentax.c.
References exif_mnote_data_pentax_clear().
Referenced by exif_mnote_data_pentax_new().
static const char* exif_mnote_data_pentax_get_description | ( | ExifMnoteData * | d, | |
unsigned int | n | |||
) | [static] |
Definition at line 367 of file exif-mnote-data-pentax.c.
References _ExifMnoteDataPentax::count, _ExifMnoteDataPentax::entries, mnote_pentax_tag_get_description(), and _MnotePentaxEntry::tag.
Referenced by exif_mnote_data_pentax_new().
static unsigned int exif_mnote_data_pentax_get_id | ( | ExifMnoteData * | d, | |
unsigned int | n | |||
) | [static] |
Definition at line 337 of file exif-mnote-data-pentax.c.
References _ExifMnoteDataPentax::count, _ExifMnoteDataPentax::entries, and _MnotePentaxEntry::tag.
Referenced by exif_mnote_data_pentax_new().
static const char* exif_mnote_data_pentax_get_name | ( | ExifMnoteData * | d, | |
unsigned int | n | |||
) | [static] |
Definition at line 347 of file exif-mnote-data-pentax.c.
References _ExifMnoteDataPentax::count, _ExifMnoteDataPentax::entries, mnote_pentax_tag_get_name(), and _MnotePentaxEntry::tag.
Referenced by exif_mnote_data_pentax_new().
static const char* exif_mnote_data_pentax_get_title | ( | ExifMnoteData * | d, | |
unsigned int | n | |||
) | [static] |
Definition at line 357 of file exif-mnote-data-pentax.c.
References _ExifMnoteDataPentax::count, _ExifMnoteDataPentax::entries, mnote_pentax_tag_get_title(), and _MnotePentaxEntry::tag.
Referenced by exif_mnote_data_pentax_new().
static char* exif_mnote_data_pentax_get_value | ( | ExifMnoteData * | d, | |
unsigned int | i, | |||
char * | val, | |||
unsigned int | maxlen | |||
) | [static] |
Definition at line 60 of file exif-mnote-data-pentax.c.
References _ExifMnoteDataPentax::count, _ExifMnoteDataPentax::entries, and mnote_pentax_entry_get_value().
Referenced by exif_mnote_data_pentax_new().
Detect if MakerNote is recognized as one handled by the Pentax module.
[in] | ed | image ExifData to identify as as a Pentax type |
[in] | e | ExifEntry for EXIF_TAG_MAKER_NOTE, from within ed but duplicated here for convenience |
Definition at line 401 of file exif-mnote-data-pentax.c.
Referenced by interpret_maker_note().
static void exif_mnote_data_pentax_load | ( | ExifMnoteData * | en, | |
const unsigned char * | buf, | |||
unsigned int | buf_size | |||
) | [static] |
Definition at line 214 of file exif-mnote-data-pentax.c.
References casioV2, _MnotePentaxEntry::components, _ExifMnoteDataPentax::count, _MnotePentaxEntry::data, _ExifMnoteDataPentax::entries, EXIF_BYTE_ORDER_INTEL, EXIF_BYTE_ORDER_MOTOROLA, 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_pentax_clear(), _MnotePentaxEntry::format, _ExifMnoteData::log, _ExifMnoteData::mem, MNOTE_CASIO2_TAG_BASE, MNOTE_PENTAX2_TAG_BASE, mnote_pentax_tag_get_name(), _ExifMnoteDataPentax::offset, _MnotePentaxEntry::order, _ExifMnoteDataPentax::order, pentaxV1, pentaxV2, pentaxV3, _MnotePentaxEntry::size, _MnotePentaxEntry::tag, and _ExifMnoteDataPentax::version.
Referenced by exif_mnote_data_pentax_new().
ExifMnoteData* exif_mnote_data_pentax_new | ( | ExifMem * | mem | ) |
static void exif_mnote_data_pentax_save | ( | ExifMnoteData * | ne, | |
unsigned char ** | buf, | |||
unsigned int * | buf_size | |||
) | [static] |
save the MnoteData from ne to buf
ne | extract the data from this structure | |
*buf | write the mnoteData to this buffer (buffer will be allocated) | |
buf_size | the final size of the buffer |
Definition at line 77 of file exif-mnote-data-pentax.c.
References casioV2, _MnotePentaxEntry::components, _ExifMnoteDataPentax::count, _MnotePentaxEntry::data, _ExifMnoteDataPentax::entries, EXIF_BYTE_ORDER_INTEL, exif_format_get_size(), exif_log(), EXIF_LOG_CODE_CORRUPT_DATA, EXIF_LOG_NO_MEMORY, exif_mem_alloc(), exif_mem_realloc(), exif_set_long(), exif_set_short(), _MnotePentaxEntry::format, _ExifMnoteData::log, _ExifMnoteData::mem, MNOTE_PENTAX2_TAG_BASE, _ExifMnoteDataPentax::offset, _ExifMnoteDataPentax::order, pentaxV1, pentaxV2, pentaxV3, _MnotePentaxEntry::tag, and _ExifMnoteDataPentax::version.
Referenced by exif_mnote_data_pentax_new().
static void exif_mnote_data_pentax_set_byte_order | ( | ExifMnoteData * | d, | |
ExifByteOrder | o | |||
) | [static] |
Definition at line 383 of file exif-mnote-data-pentax.c.
References _MnotePentaxEntry::components, _ExifMnoteDataPentax::count, _MnotePentaxEntry::data, _ExifMnoteDataPentax::entries, exif_array_set_byte_order(), _MnotePentaxEntry::format, _MnotePentaxEntry::order, and _ExifMnoteDataPentax::order.
Referenced by exif_mnote_data_pentax_new().
static void exif_mnote_data_pentax_set_offset | ( | ExifMnoteData * | d, | |
unsigned int | o | |||
) | [static] |
Definition at line 377 of file exif-mnote-data-pentax.c.
Referenced by exif_mnote_data_pentax_new().