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,
                                             guint32 flags);
gpointer    g3d_iff_handle_chunk            (g3d_iff_gdata *global,
                                             g3d_iff_ldata *plocal,
                                             g3d_iff_chunk_info *chunks,
                                             guint32 flags);
gboolean    g3d_iff_read_ctnr               (g3d_iff_gdata *global,
                                             g3d_iff_ldata *local,
                                             g3d_iff_chunk_info *chunks,
                                             guint32 flags);
gchar*      g3d_iff_id_to_text              (guint32 id);

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,
                                             guint32 flags);

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

g3d_iff_handle_chunk ()

gpointer    g3d_iff_handle_chunk            (g3d_iff_gdata *global,
                                             g3d_iff_ldata *plocal,
                                             g3d_iff_chunk_info *chunks,
                                             guint32 flags);

global :
plocal :
chunks :
flags :
Returns :

g3d_iff_read_ctnr ()

gboolean    g3d_iff_read_ctnr               (g3d_iff_gdata *global,
                                             g3d_iff_ldata *local,
                                             g3d_iff_chunk_info *chunks,
                                             guint32 flags);

global :
local :
chunks :
flags :
Returns :

g3d_iff_id_to_text ()

gchar*      g3d_iff_id_to_text              (guint32 id);

id :
Returns :