iff

iff — IFF file helper functions

Synopsis




#define     G3D_IFF_MKID                    (a,b,c,d)
FILE*       g3d_iff_open                    (const gchar *filename,
                                             guint32 *id,
                                             guint32 *len);
int         g3d_iff_readchunk               (FILE *f,
                                             guint32 *id,
                                             guint32 *len);

Description

Details

G3D_IFF_MKID()

#define     G3D_IFF_MKID(a,b,c,d)

a :
b :
c :
d :

g3d_iff_open ()

FILE*       g3d_iff_open                    (const gchar *filename,
                                             guint32 *id,
                                             guint32 *len);

Opens an IFF file, checks it and reads its top level container.

filename : file name of IFF file
id : top level ID (out)
len : length of top level container (out)
Returns : the file pointer of open file or NULL in case of an error

g3d_iff_readchunk ()

int         g3d_iff_readchunk               (FILE *f,
                                             guint32 *id,
                                             guint32 *len);

Reads one chunk header from an IFF file.

f : the open IFF file pointer
id : ID of chunk (out)
len : length of chunk (excluding header) (out)
flags : flags
Returns : real length of chunk including header and possible padding byte