~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/imbuf/intern/amiga.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
2
 * amiga.c
3
3
 *
4
 
 * $Id: amiga.c,v 1.9 2003/12/04 18:18:05 sirdude Exp $
 
4
 * $Id: amiga.c,v 1.12 2005/03/20 20:48:37 zuster Exp $
5
5
 *
6
6
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
7
7
 *
32
32
 * ***** END GPL/BL DUAL LICENSE BLOCK *****
33
33
 */
34
34
 
 
35
#ifdef WIN32
 
36
#include <io.h>
 
37
#endif
35
38
#include "imbuf.h"
36
39
#include "imbuf_patch.h"
37
40
 
43
46
#include "IMB_bitplanes.h"
44
47
#include "IMB_amiga.h"
45
48
 
46
 
#ifdef HAVE_CONFIG_H
47
 
#include <config.h>
48
 
#endif
49
 
 
50
49
/* actually hard coded endianness */
51
50
#define GET_BIG_LONG(x) (((uchar *) (x))[0] << 24 | ((uchar *) (x))[1] << 16 | ((uchar *) (x))[2] << 8 | ((uchar *) (x))[3])
52
51
#define GET_LITTLE_LONG(x) (((uchar *) (x))[3] << 24 | ((uchar *) (x))[2] << 16 | ((uchar *) (x))[1] << 8 | ((uchar *) (x))[0])
392
391
 
393
392
struct ImBuf *imb_loadamiga(int *iffmem,int flags)
394
393
{
395
 
        int chunk,totlen,len,*cmap=0,cmaplen,*mem,ftype=0;
 
394
        int chunk,totlen,len,*cmap=0,cmaplen =0,*mem,ftype=0;
396
395
        uchar *body=0;
397
396
        struct BitMapHeader bmhd;
398
397
        struct ImBuf *ibuf=0;