libavformat/iff.c File Reference

IFF file demuxer by Jaikrishnan Menon for more information on the .iff file format, visit: http://wiki.multimedia.cx/index.php?title=IFF. More...

Include dependency graph for libavformat/iff.c:

Go to the source code of this file.

Data Structures

struct  IffDemuxContext
 

Macros

#define ID_8SVX   MKTAG('8','S','V','X')
 
#define ID_16SV   MKTAG('1','6','S','V')
 
#define ID_MAUD   MKTAG('M','A','U','D')
 
#define ID_MHDR   MKTAG('M','H','D','R')
 
#define ID_MDAT   MKTAG('M','D','A','T')
 
#define ID_VHDR   MKTAG('V','H','D','R')
 
#define ID_ATAK   MKTAG('A','T','A','K')
 
#define ID_RLSE   MKTAG('R','L','S','E')
 
#define ID_CHAN   MKTAG('C','H','A','N')
 
#define ID_PBM   MKTAG('P','B','M',' ')
 
#define ID_ILBM   MKTAG('I','L','B','M')
 
#define ID_BMHD   MKTAG('B','M','H','D')
 
#define ID_DGBL   MKTAG('D','G','B','L')
 
#define ID_CAMG   MKTAG('C','A','M','G')
 
#define ID_CMAP   MKTAG('C','M','A','P')
 
#define ID_ACBM   MKTAG('A','C','B','M')
 
#define ID_DEEP   MKTAG('D','E','E','P')
 
#define ID_RGB8   MKTAG('R','G','B','8')
 
#define ID_RGBN   MKTAG('R','G','B','N')
 
#define ID_FORM   MKTAG('F','O','R','M')
 
#define ID_ANNO   MKTAG('A','N','N','O')
 
#define ID_AUTH   MKTAG('A','U','T','H')
 
#define ID_CHRS   MKTAG('C','H','R','S')
 
#define ID_COPYRIGHT   MKTAG('(','c',')',' ')
 
#define ID_CSET   MKTAG('C','S','E','T')
 
#define ID_FVER   MKTAG('F','V','E','R')
 
#define ID_NAME   MKTAG('N','A','M','E')
 
#define ID_TEXT   MKTAG('T','E','X','T')
 
#define ID_ABIT   MKTAG('A','B','I','T')
 
#define ID_BODY   MKTAG('B','O','D','Y')
 
#define ID_DBOD   MKTAG('D','B','O','D')
 
#define ID_DPEL   MKTAG('D','P','E','L')
 
#define ID_DLOC   MKTAG('D','L','O','C')
 
#define ID_TVDC   MKTAG('T','V','D','C')
 
#define LEFT   2
 
#define RIGHT   4
 
#define STEREO   6
 
#define IFF_EXTRA_VIDEO_SIZE   41
 This number of bytes if added at the beginning of each AVPacket which contain additional information about video properties which has to be shared between demuxer and decoder. More...
 

Enumerations

enum  svx8_compression_type { COMP_NONE, COMP_FIB, COMP_EXP }
 

Functions

static int get_metadata (AVFormatContext *s, const char *const tag, const unsigned data_size)
 
static int iff_probe (AVProbeData *p)
 
static int iff_read_header (AVFormatContext *s)
 
static int iff_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const uint8_t deep_rgb24 [] = {0, 0, 0, 3, 0, 1, 0, 8, 0, 2, 0, 8, 0, 3, 0, 8}
 
static const uint8_t deep_rgba [] = {0, 0, 0, 4, 0, 1, 0, 8, 0, 2, 0, 8, 0, 3, 0, 8}
 
static const uint8_t deep_bgra [] = {0, 0, 0, 4, 0, 3, 0, 8, 0, 2, 0, 8, 0, 1, 0, 8}
 
static const uint8_t deep_argb [] = {0, 0, 0, 4, 0,17, 0, 8, 0, 1, 0, 8, 0, 2, 0, 8}
 
static const uint8_t deep_abgr [] = {0, 0, 0, 4, 0,17, 0, 8, 0, 3, 0, 8, 0, 2, 0, 8}
 
AVInputFormat ff_iff_demuxer
 

Detailed Description

IFF file demuxer by Jaikrishnan Menon for more information on the .iff file format, visit: http://wiki.multimedia.cx/index.php?title=IFF.

Definition in file libavformat/iff.c.

Macro Definition Documentation

#define ID_16SV   MKTAG('1','6','S','V')

Definition at line 40 of file libavformat/iff.c.

Referenced by iff_probe(), and iff_read_header().

#define ID_8SVX   MKTAG('8','S','V','X')

Definition at line 39 of file libavformat/iff.c.

Referenced by iff_probe().

#define ID_ABIT   MKTAG('A','B','I','T')

Definition at line 68 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_ACBM   MKTAG('A','C','B','M')

Definition at line 54 of file libavformat/iff.c.

Referenced by iff_probe().

#define ID_ANNO   MKTAG('A','N','N','O')

Definition at line 60 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_ATAK   MKTAG('A','T','A','K')

Definition at line 45 of file libavformat/iff.c.

#define ID_AUTH   MKTAG('A','U','T','H')

Definition at line 61 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_BMHD   MKTAG('B','M','H','D')

Definition at line 50 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_BODY   MKTAG('B','O','D','Y')

Definition at line 69 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_CAMG   MKTAG('C','A','M','G')

Definition at line 52 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_CHAN   MKTAG('C','H','A','N')

Definition at line 47 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_CHRS   MKTAG('C','H','R','S')

Definition at line 62 of file libavformat/iff.c.

#define ID_CMAP   MKTAG('C','M','A','P')

Definition at line 53 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_COPYRIGHT   MKTAG('(','c',')',' ')

Definition at line 63 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_CSET   MKTAG('C','S','E','T')

Definition at line 64 of file libavformat/iff.c.

#define ID_DBOD   MKTAG('D','B','O','D')

Definition at line 70 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_DEEP   MKTAG('D','E','E','P')

Definition at line 55 of file libavformat/iff.c.

Referenced by iff_probe().

#define ID_DGBL   MKTAG('D','G','B','L')

Definition at line 51 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_DLOC   MKTAG('D','L','O','C')

Definition at line 72 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_DPEL   MKTAG('D','P','E','L')

Definition at line 71 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_FORM   MKTAG('F','O','R','M')

Definition at line 59 of file libavformat/iff.c.

Referenced by iff_probe().

#define ID_FVER   MKTAG('F','V','E','R')

Definition at line 65 of file libavformat/iff.c.

#define ID_ILBM   MKTAG('I','L','B','M')

Definition at line 49 of file libavformat/iff.c.

Referenced by iff_probe().

#define ID_MAUD   MKTAG('M','A','U','D')

Definition at line 41 of file libavformat/iff.c.

Referenced by iff_probe(), iff_read_header(), and iff_read_packet().

#define ID_MDAT   MKTAG('M','D','A','T')

Definition at line 43 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_MHDR   MKTAG('M','H','D','R')

Definition at line 42 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_NAME   MKTAG('N','A','M','E')

Definition at line 66 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_PBM   MKTAG('P','B','M',' ')

Definition at line 48 of file libavformat/iff.c.

Referenced by iff_probe().

#define ID_RGB8   MKTAG('R','G','B','8')

Definition at line 56 of file libavformat/iff.c.

Referenced by iff_probe().

#define ID_RGBN   MKTAG('R','G','B','N')

Definition at line 57 of file libavformat/iff.c.

Referenced by iff_probe().

#define ID_RLSE   MKTAG('R','L','S','E')

Definition at line 46 of file libavformat/iff.c.

#define ID_TEXT   MKTAG('T','E','X','T')

Definition at line 67 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_TVDC   MKTAG('T','V','D','C')

Definition at line 73 of file libavformat/iff.c.

Referenced by iff_read_header().

#define ID_VHDR   MKTAG('V','H','D','R')

Definition at line 44 of file libavformat/iff.c.

Referenced by iff_read_header().

#define IFF_EXTRA_VIDEO_SIZE   41

This number of bytes if added at the beginning of each AVPacket which contain additional information about video properties which has to be shared between demuxer and decoder.

This number may change between frames, e.g. the demuxer might set it to smallest possible size of 2 to indicate that there's no extradata changing in this frame.

Definition at line 87 of file libavformat/iff.c.

Referenced by iff_read_header().

#define LEFT   2

Definition at line 75 of file libavformat/iff.c.

#define RIGHT   4

Definition at line 76 of file libavformat/iff.c.

#define STEREO   6

Definition at line 77 of file libavformat/iff.c.

Enumeration Type Documentation

Enumerator
COMP_NONE 
COMP_FIB 
COMP_EXP 

Definition at line 89 of file libavformat/iff.c.

Function Documentation

static int get_metadata ( AVFormatContext s,
const char *const  tag,
const unsigned  data_size 
)
static

Definition at line 112 of file libavformat/iff.c.

Referenced by iff_read_header().

static int iff_probe ( AVProbeData p)
static

Definition at line 130 of file libavformat/iff.c.

static int iff_read_header ( AVFormatContext s)
static

Definition at line 154 of file libavformat/iff.c.

static int iff_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 437 of file libavformat/iff.c.

Variable Documentation

const uint8_t deep_abgr[] = {0, 0, 0, 4, 0,17, 0, 8, 0, 3, 0, 8, 0, 2, 0, 8}
static

Definition at line 152 of file libavformat/iff.c.

Referenced by iff_read_header().

const uint8_t deep_argb[] = {0, 0, 0, 4, 0,17, 0, 8, 0, 1, 0, 8, 0, 2, 0, 8}
static

Definition at line 151 of file libavformat/iff.c.

Referenced by iff_read_header().

const uint8_t deep_bgra[] = {0, 0, 0, 4, 0, 3, 0, 8, 0, 2, 0, 8, 0, 1, 0, 8}
static

Definition at line 150 of file libavformat/iff.c.

Referenced by iff_read_header().

const uint8_t deep_rgb24[] = {0, 0, 0, 3, 0, 1, 0, 8, 0, 2, 0, 8, 0, 3, 0, 8}
static

Definition at line 148 of file libavformat/iff.c.

Referenced by iff_read_header().

const uint8_t deep_rgba[] = {0, 0, 0, 4, 0, 1, 0, 8, 0, 2, 0, 8, 0, 3, 0, 8}
static

Definition at line 149 of file libavformat/iff.c.

Referenced by iff_read_header().

AVInputFormat ff_iff_demuxer
Initial value:
= {
.name = "iff",
.long_name = NULL_IF_CONFIG_SMALL("IFF (Interchange File Format)"),
.priv_data_size = sizeof(IffDemuxContext),
}
static int iff_probe(AVProbeData *p)
static int iff_read_header(AVFormatContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int read_probe(AVProbeData *pd)
static int iff_read_packet(AVFormatContext *s, AVPacket *pkt)
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:517
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:114
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:353
static int flags
Definition: cpu.c:23

Definition at line 477 of file libavformat/iff.c.