EXIF library (libexif) Internals  0.6.24
exif-format.c File Reference
#include <config.h>
#include <libexif/exif-format.h>
#include <libexif/i18n.h>
#include <stdlib.h>
Include dependency graph for exif-format.c:

Go to the source code of this file.

Functions

const char * exif_format_get_name (ExifFormat format)
 Return a textual representation of the given EXIF data type. More...
 
unsigned char exif_format_get_size (ExifFormat format)
 Return the raw size of the given EXIF data type. More...
 

Variables

struct {
   ExifFormat   format
 
   const char *   name
 
   unsigned char   size
 
ExifFormatTable []
 Table of data format types, descriptions and sizes. More...
 

Function Documentation

◆ exif_format_get_name()

const char* exif_format_get_name ( ExifFormat  format)

Return a textual representation of the given EXIF data type.

Parameters
[in]formatEXIF data format
Returns
localized textual name, or NULL if unknown

Definition at line 53 of file exif-format.c.

References _, bindtextdomain, ExifFormatTable, format, and name.

Referenced by content_foreach_func(), exif_entry_dump(), and exif_entry_fix().

◆ exif_format_get_size()

Variable Documentation

◆ 

const { ... } ExifFormatTable[]
Initial value:
= {
{EXIF_FORMAT_SHORT, N_("Short"), 2},
{EXIF_FORMAT_RATIONAL, N_("Rational"), 8},
{EXIF_FORMAT_SRATIONAL, N_("SRational"), 8},
{EXIF_FORMAT_UNDEFINED, N_("Undefined"), 1},
{EXIF_FORMAT_ASCII, N_("ASCII"), 1},
{EXIF_FORMAT_LONG, N_("Long"), 4},
{EXIF_FORMAT_BYTE, N_("Byte"), 1},
{EXIF_FORMAT_SBYTE, N_("SByte"), 1},
{EXIF_FORMAT_SSHORT, N_("SShort"), 2},
{EXIF_FORMAT_SLONG, N_("SLong"), 4},
{EXIF_FORMAT_FLOAT, N_("Float"), 4},
{EXIF_FORMAT_DOUBLE, N_("Double"), 8},
{0, NULL, 0}
}
@ EXIF_FORMAT_SLONG
Definition: exif-format.h:41
@ EXIF_FORMAT_RATIONAL
Definition: exif-format.h:37
@ EXIF_FORMAT_SRATIONAL
Definition: exif-format.h:42
@ EXIF_FORMAT_LONG
Definition: exif-format.h:36
@ EXIF_FORMAT_UNDEFINED
Definition: exif-format.h:39
@ EXIF_FORMAT_SHORT
Definition: exif-format.h:35
@ EXIF_FORMAT_SSHORT
Definition: exif-format.h:40
@ EXIF_FORMAT_ASCII
Definition: exif-format.h:34
@ EXIF_FORMAT_SBYTE
Definition: exif-format.h:38
@ EXIF_FORMAT_FLOAT
Definition: exif-format.h:43
@ EXIF_FORMAT_DOUBLE
Definition: exif-format.h:44
@ EXIF_FORMAT_BYTE
Definition: exif-format.h:33
#define N_(String)
Definition: i18n.h:49

Table of data format types, descriptions and sizes.

This table should be sorted in decreasing order of popularity in order to decrease the total average lookup time.

Referenced by exif_format_get_name(), and exif_format_get_size().

◆ format

◆ name

const char* name ( void  )

Definition at line 34 of file exif-format.c.

Referenced by exif_format_get_name().

◆ size


libexif Generated by doxygen