FFmpeg
Data Structures | Macros | Functions | Variables
exif.c File Reference
#include "exif.h"
#include "tiff_common.h"

Go to the source code of this file.

Data Structures

struct  exif_tag
 

Macros

#define EXIF_TAG_NAME_LENGTH   32
 

Functions

static const char * exif_get_tag_name (uint16_t id)
 
static int exif_add_metadata (void *logctx, int count, int type, const char *name, const char *sep, GetByteContext *gb, int le, AVDictionary **metadata)
 
static int exif_decode_tag (void *logctx, GetByteContext *gbytes, int le, int depth, AVDictionary **metadata)
 
int ff_exif_decode_ifd (void *logctx, GetByteContext *gbytes, int le, int depth, AVDictionary **metadata)
 
int avpriv_exif_decode_ifd (void *logctx, const uint8_t *buf, int size, int le, int depth, AVDictionary **metadata)
 Recursively decodes all IFD's and adds included TAGS into the metadata dictionary. More...
 

Variables

static const struct exif_tag tag_list []
 

Detailed Description

EXIF metadata parser

Author
Thilo Borgmann <thilo.borgmann at mail.de>

Definition in file exif.c.

Macro Definition Documentation

◆ EXIF_TAG_NAME_LENGTH

#define EXIF_TAG_NAME_LENGTH   32

Definition at line 31 of file exif.c.

Function Documentation

◆ exif_get_tag_name()

static const char* exif_get_tag_name ( uint16_t  id)
static

Definition at line 159 of file exif.c.

Referenced by exif_decode_tag().

◆ exif_add_metadata()

static int exif_add_metadata ( void *  logctx,
int  count,
int  type,
const char *  name,
const char *  sep,
GetByteContext gb,
int  le,
AVDictionary **  metadata 
)
static

Definition at line 172 of file exif.c.

Referenced by exif_decode_tag().

◆ exif_decode_tag()

static int exif_decode_tag ( void *  logctx,
GetByteContext gbytes,
int  le,
int  depth,
AVDictionary **  metadata 
)
static

Definition at line 201 of file exif.c.

Referenced by ff_exif_decode_ifd().

◆ ff_exif_decode_ifd()

int ff_exif_decode_ifd ( void *  logctx,
GetByteContext gbytes,
int  le,
int  depth,
AVDictionary **  metadata 
)

◆ avpriv_exif_decode_ifd()

int avpriv_exif_decode_ifd ( void *  logctx,
const uint8_t *  buf,
int  size,
int  le,
int  depth,
AVDictionary **  metadata 
)

Recursively decodes all IFD's and adds included TAGS into the metadata dictionary.

Definition at line 265 of file exif.c.

Referenced by avi_extract_stream_metadata().

Variable Documentation

◆ tag_list

const struct exif_tag tag_list[]
static

Definition at line 38 of file exif.c.

Referenced by amv_write_alist(), amv_write_vlist(), and exif_get_tag_name().