xine-lib: xine-lib-1.2.12/src/demuxers/iff.h File Reference

xine-lib 1.2.12

Data Structures | Macros | Typedefs | Variables
iff.h File Reference

Go to the source code of this file.

## Data Structures
struct | BitMapHeader
struct | ColorRegister
struct | Point2D
struct | DestMerge
struct | CamgChunk
struct | CRange
struct | CcrtChunk
struct | DPIHeader
struct | Voice8Header
struct | EGPoint
struct | AnimHeader
struct | DPAnimChunk

## Macros
#define | IFF_OKAY 0L
#define | IFF_CLIENT_ERROR 1L
#define | IFF_NOFILE 5L
#define | FOURCC_CHUNK BE_FOURCC
#define | IFF_16SV_CHUNK FOURCC_CHUNK('1', '6', 'S', 'V')
#define | IFF_8SVX_CHUNK FOURCC_CHUNK('8', 'S', 'V', 'X')
#define | IFF_ANFI_CHUNK FOURCC_CHUNK('A', 'N', 'F', 'I')
#define | IFF_ANHD_CHUNK FOURCC_CHUNK('A', 'N', 'H', 'D')
#define | IFF_ANIM_CHUNK FOURCC_CHUNK('A', 'N', 'I', 'M')
#define | IFF_ANNO_CHUNK FOURCC_CHUNK('A', 'N', 'N', 'O')
#define | IFF_ANSQ_CHUNK FOURCC_CHUNK('A', 'N', 'S', 'Q')
#define | IFF_ATAK_CHUNK FOURCC_CHUNK('A', 'T', 'A', 'K')
#define | IFF_AUTH_CHUNK FOURCC_CHUNK('A', 'U', 'T', 'H')
#define | IFF_BMHD_CHUNK FOURCC_CHUNK('B', 'M', 'H', 'D')
#define | IFF_BODY_CHUNK FOURCC_CHUNK('B', 'O', 'D', 'Y')
#define | IFF_CAMG_CHUNK FOURCC_CHUNK('C', 'A', 'M', 'G')
#define | IFF_CCRT_CHUNK FOURCC_CHUNK('C', 'C', 'R', 'T')
#define | IFF_CHAN_CHUNK FOURCC_CHUNK('C', 'H', 'A', 'N')
#define | IFF_CMAP_CHUNK FOURCC_CHUNK('C', 'M', 'A', 'P')
#define | IFF_COPY_CHUNK FOURCC_CHUNK('(', 'c', ')', ' ')
#define | IFF_CRNG_CHUNK FOURCC_CHUNK('C', 'R', 'N', 'G')
#define | IFF_DEST_CHUNK FOURCC_CHUNK('D', 'E', 'S', 'T')
#define | IFF_DLTA_CHUNK FOURCC_CHUNK('D', 'L', 'T', 'A')
#define | IFF_DPAN_CHUNK FOURCC_CHUNK('D', 'P', 'A', 'N')
#define | IFF_DPI_CHUNK FOURCC_CHUNK('D', 'P', 'I', ' ')
#define | IFF_DPPS_CHUNK FOURCC_CHUNK('D', 'P', 'P', 'S')
#define | IFF_DPPV_CHUNK FOURCC_CHUNK('D', 'P', 'P', 'V')
#define | IFF_DRNG_CHUNK FOURCC_CHUNK('D', 'R', 'N', 'G')
#define | IFF_FACE_CHUNK FOURCC_CHUNK('F', 'A', 'C', 'E')
#define | IFF_FADE_CHUNK FOURCC_CHUNK('F', 'A', 'D', 'E')
#define | IFF_FORM_CHUNK FOURCC_CHUNK('F', 'O', 'R', 'M')
#define | IFF_FVER_CHUNK FOURCC_CHUNK('F', 'V', 'E', 'R')
#define | IFF_GRAB_CHUNK FOURCC_CHUNK('G', 'R', 'A', 'B')
#define | IFF_ILBM_CHUNK FOURCC_CHUNK('I', 'L', 'B', 'M')
#define | IFF_INS1_CHUNK FOURCC_CHUNK('I', 'N', 'S', '1')
#define | IFF_IMRT_CHUNK FOURCC_CHUNK('I', 'M', 'R', 'T')
#define | IFF_JUNK_CHUNK FOURCC_CHUNK('J', 'U', 'N', 'K')
#define | IFF_LIST_CHUNK FOURCC_CHUNK('L', 'I', 'S', 'T')
#define | IFF_MHDR_CHUNK FOURCC_CHUNK('M', 'H', 'D', 'R')
#define | IFF_NAME_CHUNK FOURCC_CHUNK('N', 'A', 'M', 'E')
#define | IFF_PAN_CHUNK FOURCC_CHUNK('P', 'A', 'N', ' ')
#define | IFF_PROP_CHUNK FOURCC_CHUNK('P', 'R', 'O', 'P')
#define | IFF_RLSE_CHUNK FOURCC_CHUNK('R', 'L', 'S', 'E')
#define | IFF_SAMP_CHUNK FOURCC_CHUNK('S', 'A', 'M', 'P')
#define | IFF_SEQN_CHUNK FOURCC_CHUNK('S', 'E', 'Q', 'N')
#define | IFF_SHDR_CHUNK FOURCC_CHUNK('S', 'H', 'D', 'R')
#define | IFF_SMUS_CHUNK FOURCC_CHUNK('S', 'M', 'U', 'S')
#define | IFF_SPRT_CHUNK FOURCC_CHUNK('S', 'P', 'R', 'T')
#define | IFF_TEXT_CHUNK FOURCC_CHUNK('T', 'E', 'X', 'T')
#define | IFF_TINY_CHUNK FOURCC_CHUNK('T', 'I', 'N', 'Y')
#define | IFF_TRAK_CHUNK FOURCC_CHUNK('T', 'R', 'A', 'K')
#define | IFF_VHDR_CHUNK FOURCC_CHUNK('V', 'H', 'D', 'R')
#define | PIC_SIZE_OF_COLOR_REGISTER 3
#define | PIC_MAXAMDEPTH 8
#define | PIC_MAXSAVEDEPTH 24
#define | PIC_MASK_NONE 0
#define | PIC_MASK_HASMASK 1
#define | PIC_MASK_HASTRANSPARENTMASK 2
#define | PIC_MASK_LASSO 3
#define | PIC_COMPRESSION_NONE 0
#define | PIC_COMPRESSION_BYTERUN1 1
#define | VIDEOBUFSIZE 128*1024
#define | CAMG_LACE 0x0004 /* Interlaced Modi */
#define | CAMG_EHB 0x0080 /* extra halfe brite */
#define | CAMG_HAM 0x0800 /* hold and modify */
#define | CAMG_HIRES 0x8000 /* Hires Modi */
#define | CAMG_PAL 0x00021000 /* Hires Modi */
#define | CAMG_NTSC 0x00011000 /* Hires Modi */
#define | HAMBITS_CMAP 0 /* take color from colormap */
#define | HAMBITS_BLUE 1 /* modify blue component */
#define | HAMBITS_RED 2 /* modify red component */
#define | HAMBITS_GREEN 3 /* modify green component */
#define | RNG_NORATE 36 /* Dpaint uses this rate to mean non-active */
#define | MONO 0L
#define | PAN 1L
#define | LEFT 2L
#define | RIGHT 4L
#define | STEREO 6L
#define | SND_COMPRESSION_NONE 0
#define | SND_COMPRESSION_FIBONACCI 1
#define | SND_COMPRESSION_EXPONENTIAL 2
#define | PREAMBLE_SIZE 8
#define | IFF_JUNK_SIZE 8
#define | IFF_SIGNATURE_SIZE 12
#define | PCM_BLOCK_ALIGN 1024
#define | max_volume 65536 /* Unity = Fixed 1.0 = maximum volume */
#define | IFF_ANHD_ILBM 0
#define | IFF_ANHD_XOR 1
#define | IFF_ANHD_LDELTA 2
#define | IFF_ANHD_SDELTA 3
#define | IFF_ANHD_SLDELTA 4
#define | IFF_ANHD_BVDELTA 5
#define | IFF_ANHD_STEREOO5 6
#define | IFF_ANHD_OPT7 7
#define | IFF_ANHD_OPT8 8
#define | IFF_ANHD_ASCIIJ 74

## Typedefs
typedef uint16_t | SpritePrecedence

## Variables
static const int | bitplainoffeset []
static const int8_t | fibonacci [] = { -34, -21, -13, -8, -5, -3, -2, -1, 0, 1, 2, 3, 5, 8, 13, 21 }
static const int8_t | exponential [] = { -128, -64, -32, -16, -8, -4, -2, -1, 0, 1, 2, 4, 8, 16, 32, 64 }

## Macro Definition Documentation

## ◆ CAMG_EHB

#define CAMG_EHB 0x0080 /* extra halfe brite */

## ◆ CAMG_HAM

#define CAMG_HAM 0x0800 /* hold and modify */

## ◆ CAMG_HIRES

#define CAMG_HIRES 0x8000 /* Hires Modi */

## ◆ CAMG_LACE

#define CAMG_LACE 0x0004 /* Interlaced Modi */

## ◆ CAMG_NTSC

#define CAMG_NTSC 0x00011000 /* Hires Modi */

## ◆ CAMG_PAL

#define CAMG_PAL 0x00021000 /* Hires Modi */

## ◆ FOURCC_CHUNK

#define FOURCC_CHUNK BE_FOURCC

## ◆ HAMBITS_BLUE

#define HAMBITS_BLUE 1 /* modify blue component */

## ◆ HAMBITS_CMAP

#define HAMBITS_CMAP 0 /* take color from colormap */

## ◆ HAMBITS_GREEN

#define HAMBITS_GREEN 3 /* modify green component */

## ◆ HAMBITS_RED

#define HAMBITS_RED 2 /* modify red component */

## ◆ IFF_16SV_CHUNK

#define IFF_16SV_CHUNK FOURCC_CHUNK('1', '6', 'S', 'V')

## ◆ IFF_8SVX_CHUNK

#define IFF_8SVX_CHUNK FOURCC_CHUNK('8', 'S', 'V', 'X')

## ◆ IFF_ANFI_CHUNK

#define IFF_ANFI_CHUNK FOURCC_CHUNK('A', 'N', 'F', 'I')

## ◆ IFF_ANHD_ASCIIJ

#define IFF_ANHD_ASCIIJ 74

## ◆ IFF_ANHD_BVDELTA

#define IFF_ANHD_BVDELTA 5

## ◆ IFF_ANHD_CHUNK

#define IFF_ANHD_CHUNK FOURCC_CHUNK('A', 'N', 'H', 'D')

## ◆ IFF_ANHD_ILBM

#define IFF_ANHD_ILBM 0

## ◆ IFF_ANHD_LDELTA

#define IFF_ANHD_LDELTA 2

## ◆ IFF_ANHD_OPT7

#define IFF_ANHD_OPT7 7

## ◆ IFF_ANHD_OPT8

#define IFF_ANHD_OPT8 8

## ◆ IFF_ANHD_SDELTA

#define IFF_ANHD_SDELTA 3

## ◆ IFF_ANHD_SLDELTA

#define IFF_ANHD_SLDELTA 4

## ◆ IFF_ANHD_STEREOO5

#define IFF_ANHD_STEREOO5 6

## ◆ IFF_ANHD_XOR

#define IFF_ANHD_XOR 1

## ◆ IFF_ANIM_CHUNK

#define IFF_ANIM_CHUNK FOURCC_CHUNK('A', 'N', 'I', 'M')

## ◆ IFF_ANNO_CHUNK

#define IFF_ANNO_CHUNK FOURCC_CHUNK('A', 'N', 'N', 'O')

## ◆ IFF_ANSQ_CHUNK

#define IFF_ANSQ_CHUNK FOURCC_CHUNK('A', 'N', 'S', 'Q')

## ◆ IFF_ATAK_CHUNK

#define IFF_ATAK_CHUNK FOURCC_CHUNK('A', 'T', 'A', 'K')

## ◆ IFF_AUTH_CHUNK

#define IFF_AUTH_CHUNK FOURCC_CHUNK('A', 'U', 'T', 'H')

## ◆ IFF_BMHD_CHUNK

#define IFF_BMHD_CHUNK FOURCC_CHUNK('B', 'M', 'H', 'D')

## ◆ IFF_BODY_CHUNK

#define IFF_BODY_CHUNK FOURCC_CHUNK('B', 'O', 'D', 'Y')

## ◆ IFF_CAMG_CHUNK

#define IFF_CAMG_CHUNK FOURCC_CHUNK('C', 'A', 'M', 'G')

## ◆ IFF_CCRT_CHUNK

#define IFF_CCRT_CHUNK FOURCC_CHUNK('C', 'C', 'R', 'T')

## ◆ IFF_CHAN_CHUNK

#define IFF_CHAN_CHUNK FOURCC_CHUNK('C', 'H', 'A', 'N')

## ◆ IFF_CLIENT_ERROR

#define IFF_CLIENT_ERROR 1L

## ◆ IFF_CMAP_CHUNK

#define IFF_CMAP_CHUNK FOURCC_CHUNK('C', 'M', 'A', 'P')

## ◆ IFF_COPY_CHUNK

#define IFF_COPY_CHUNK FOURCC_CHUNK('(', 'c', ')', ' ')

## ◆ IFF_CRNG_CHUNK

#define IFF_CRNG_CHUNK FOURCC_CHUNK('C', 'R', 'N', 'G')

## ◆ IFF_DEST_CHUNK

#define IFF_DEST_CHUNK FOURCC_CHUNK('D', 'E', 'S', 'T')

## ◆ IFF_DLTA_CHUNK

#define IFF_DLTA_CHUNK FOURCC_CHUNK('D', 'L', 'T', 'A')

## ◆ IFF_DPAN_CHUNK

#define IFF_DPAN_CHUNK FOURCC_CHUNK('D', 'P', 'A', 'N')

## ◆ IFF_DPI_CHUNK

#define IFF_DPI_CHUNK FOURCC_CHUNK('D', 'P', 'I', ' ')

## ◆ IFF_DPPS_CHUNK

#define IFF_DPPS_CHUNK FOURCC_CHUNK('D', 'P', 'P', 'S')

## ◆ IFF_DPPV_CHUNK

#define IFF_DPPV_CHUNK FOURCC_CHUNK('D', 'P', 'P', 'V')

## ◆ IFF_DRNG_CHUNK

#define IFF_DRNG_CHUNK FOURCC_CHUNK('D', 'R', 'N', 'G')

## ◆ IFF_FACE_CHUNK

#define IFF_FACE_CHUNK FOURCC_CHUNK('F', 'A', 'C', 'E')

## ◆ IFF_FADE_CHUNK

#define IFF_FADE_CHUNK FOURCC_CHUNK('F', 'A', 'D', 'E')

## ◆ IFF_FORM_CHUNK

#define IFF_FORM_CHUNK FOURCC_CHUNK('F', 'O', 'R', 'M')

## ◆ IFF_FVER_CHUNK

#define IFF_FVER_CHUNK FOURCC_CHUNK('F', 'V', 'E', 'R')

## ◆ IFF_GRAB_CHUNK

#define IFF_GRAB_CHUNK FOURCC_CHUNK('G', 'R', 'A', 'B')

## ◆ IFF_ILBM_CHUNK

#define IFF_ILBM_CHUNK FOURCC_CHUNK('I', 'L', 'B', 'M')

## ◆ IFF_IMRT_CHUNK

#define IFF_IMRT_CHUNK FOURCC_CHUNK('I', 'M', 'R', 'T')

## ◆ IFF_INS1_CHUNK

#define IFF_INS1_CHUNK FOURCC_CHUNK('I', 'N', 'S', '1')

## ◆ IFF_JUNK_CHUNK

#define IFF_JUNK_CHUNK FOURCC_CHUNK('J', 'U', 'N', 'K')

## ◆ IFF_JUNK_SIZE

#define IFF_JUNK_SIZE 8

## ◆ IFF_LIST_CHUNK

#define IFF_LIST_CHUNK FOURCC_CHUNK('L', 'I', 'S', 'T')

## ◆ IFF_MHDR_CHUNK

#define IFF_MHDR_CHUNK FOURCC_CHUNK('M', 'H', 'D', 'R')

## ◆ IFF_NAME_CHUNK

#define IFF_NAME_CHUNK FOURCC_CHUNK('N', 'A', 'M', 'E')

## ◆ IFF_NOFILE

#define IFF_NOFILE 5L

## ◆ IFF_OKAY

#define IFF_OKAY 0L

## ◆ IFF_PAN_CHUNK

#define IFF_PAN_CHUNK FOURCC_CHUNK('P', 'A', 'N', ' ')

## ◆ IFF_PROP_CHUNK

#define IFF_PROP_CHUNK FOURCC_CHUNK('P', 'R', 'O', 'P')

## ◆ IFF_RLSE_CHUNK

#define IFF_RLSE_CHUNK FOURCC_CHUNK('R', 'L', 'S', 'E')

## ◆ IFF_SAMP_CHUNK

#define IFF_SAMP_CHUNK FOURCC_CHUNK('S', 'A', 'M', 'P')

## ◆ IFF_SEQN_CHUNK

#define IFF_SEQN_CHUNK FOURCC_CHUNK('S', 'E', 'Q', 'N')

## ◆ IFF_SHDR_CHUNK

#define IFF_SHDR_CHUNK FOURCC_CHUNK('S', 'H', 'D', 'R')

## ◆ IFF_SIGNATURE_SIZE

#define IFF_SIGNATURE_SIZE 12

## ◆ IFF_SMUS_CHUNK

#define IFF_SMUS_CHUNK FOURCC_CHUNK('S', 'M', 'U', 'S')

## ◆ IFF_SPRT_CHUNK

#define IFF_SPRT_CHUNK FOURCC_CHUNK('S', 'P', 'R', 'T')

## ◆ IFF_TEXT_CHUNK

#define IFF_TEXT_CHUNK FOURCC_CHUNK('T', 'E', 'X', 'T')

## ◆ IFF_TINY_CHUNK

#define IFF_TINY_CHUNK FOURCC_CHUNK('T', 'I', 'N', 'Y')

## ◆ IFF_TRAK_CHUNK

#define IFF_TRAK_CHUNK FOURCC_CHUNK('T', 'R', 'A', 'K')

## ◆ IFF_VHDR_CHUNK

#define IFF_VHDR_CHUNK FOURCC_CHUNK('V', 'H', 'D', 'R')

## ◆ LEFT

#define LEFT 2L

## ◆ max_volume

#define max_volume 65536 /* Unity = Fixed 1.0 = maximum volume */

## ◆ MONO

#define MONO 0L

## ◆ PAN

#define PAN 1L

## ◆ PCM_BLOCK_ALIGN

#define PCM_BLOCK_ALIGN 1024

## ◆ PIC_COMPRESSION_BYTERUN1

#define PIC_COMPRESSION_BYTERUN1 1

## ◆ PIC_COMPRESSION_NONE

#define PIC_COMPRESSION_NONE 0

## ◆ PIC_MASK_HASMASK

#define PIC_MASK_HASMASK 1

## ◆ PIC_MASK_HASTRANSPARENTMASK

#define PIC_MASK_HASTRANSPARENTMASK 2

## ◆ PIC_MASK_LASSO

#define PIC_MASK_LASSO 3

## ◆ PIC_MASK_NONE

#define PIC_MASK_NONE 0

## ◆ PIC_MAXAMDEPTH

#define PIC_MAXAMDEPTH 8

## ◆ PIC_MAXSAVEDEPTH

#define PIC_MAXSAVEDEPTH 24

## ◆ PIC_SIZE_OF_COLOR_REGISTER

#define PIC_SIZE_OF_COLOR_REGISTER 3

## ◆ PREAMBLE_SIZE

#define PREAMBLE_SIZE 8

## ◆ RIGHT

#define RIGHT 4L

## ◆ RNG_NORATE

#define RNG_NORATE 36 /* Dpaint uses this rate to mean non-active */

## ◆ SND_COMPRESSION_EXPONENTIAL

#define SND_COMPRESSION_EXPONENTIAL 2

## ◆ SND_COMPRESSION_FIBONACCI

#define SND_COMPRESSION_FIBONACCI 1

## ◆ SND_COMPRESSION_NONE

#define SND_COMPRESSION_NONE 0

## ◆ STEREO

#define STEREO 6L

## ◆ VIDEOBUFSIZE

#define VIDEOBUFSIZE 128*1024

## Typedef Documentation

## ◆ SpritePrecedence

typedef uint16_t SpritePrecedence

## Variable Documentation

## ◆ bitplainoffeset

const int bitplainoffeset[]
| static

Initial value:
= {
1, 2, 4, 8,
16, 32, 64, 128,
1, 2, 4, 8,
16, 32, 64, 128,
1, 2, 4, 8,
16, 32, 64, 128
}

Referenced by bitplane_decode_bitplane(), bitplane_dlta_5(), bitplane_dlta_7_long(), bitplane_dlta_7_short(), bitplane_dlta_8_long(), bitplane_dlta_8_short(), bitplane_sdelta_opt_3(), and bitplane_set_dlta_short().

## ◆ exponential

const int8_t exponential[] = { -128, -64, -32, -16, -8, -4, -2, -1, 0, 1, 2, 4, 8, 16, 32, 64 }
| static

Referenced by demux_iff_send_chunk().

## ◆ fibonacci

const int8_t fibonacci[] = { -34, -21, -13, -8, -5, -3, -2, -1, 0, 1, 2, 3, 5, 8, 13, 21 }
| static

Referenced by demux_iff_send_chunk().