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

« back to all changes in this revision

Viewing changes to source/blender/imbuf/intern/anim5.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
 * anim5.c
3
3
 *
4
 
 * $Id: anim5.c,v 1.2 2003/07/17 13:47:58 sirdude Exp $
 
4
 * $Id: anim5.c,v 1.4 2005/03/09 19:45:54 lukep Exp $
5
5
 *
6
6
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
7
7
 *
47
47
 
48
48
#include "IMB_anim.h"
49
49
 
 
50
#include "IMB_anim5.h"
50
51
 
51
52
typedef struct Anhd{
52
53
        unsigned char type, mask;
170
171
                        for(i=ibuf->x * ibuf->y ; i>0 ; i--){
171
172
                                col = *rect;
172
173
                                col = ((col & 0x3f000) << 6) + ((col & 0xfc0) << 4)
173
 
                                    + ((col & 0x3f) << 2);
 
174
                                        + ((col & 0x3f) << 2);
174
175
                                col += (col & 0xc0c0c0) >> 6;
175
176
                                *rect++ = col;
176
177
                        }
235
236
                        do{
236
237
                                uchar noop;
237
238
 
238
 
                                if (noop = *(point++)){
 
239
                                if ( (noop = *(point++)) ){
239
240
                                        uchar *plane;
240
241
                                        uchar code;
241
242
 
308
309
                        do{
309
310
                                uchar noop;
310
311
 
311
 
                                if (noop = *(point++)){
 
312
                                if ( (noop = *(point++)) ){
312
313
                                        uchar *plane;
313
314
                                        uchar code;
314
315
 
418
419
        }
419
420
 
420
421
        if ((GET_ID(buf) != FORM) || (GET_ID(buf + 2) != ANIM)
421
 
            || (GET_ID(buf + 3) != FORM) || (GET_ID(buf + 5) != ILBM)){
 
422
                || (GET_ID(buf + 3) != FORM) || (GET_ID(buf + 5) != ILBM)){
422
423
                printf("No anim5 file %s\n",anim->name);
423
424
                close(file);
424
425
                return (-1);