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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Lukas Fittl
  • Date: 2006-09-20 01:57:27 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060920015727-gmoqlxwstx9wwqs3
Tags: 2.42a-1ubuntu1
* Merge from Debian unstable (Closes: Malone #55903). Remaining changes:
  - debian/genpot: Add python scripts from Lee June <blender@eyou.com> to
    generate a reasonable PO template from the sources. Since gettext is used
    in a highly nonstandard way, xgettext does not work for this job.
  - debian/rules: Call the scripts, generate po/blender.pot, and clean it up
    in the clean target.
  - Add a proper header to the generated PO template.
* debian/control: Build depend on libavformat-dev >= 3:0.cvs20060823-3.1,
  otherwise this package will FTBFS

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 * ***** END GPL/BL DUAL LICENSE BLOCK *****
30
30
 * iris.c
31
31
 *
32
 
 * $Id: iris.c,v 1.12 2005/04/27 11:52:50 sirdude Exp $
 
32
 * $Id: iris.c,v 1.13 2006/01/28 18:33:09 hos Exp $
33
33
 */
34
34
 
35
35
#include <string.h>
398
398
        
399
399
        if (ibuf) {
400
400
                if (ibuf->rect) 
401
 
                        IMB_convert_rgba_to_abgr(ibuf->x*ibuf->y, ibuf->rect);
 
401
                        IMB_convert_rgba_to_abgr(ibuf);
402
402
        }
403
403
 
404
404
        return(ibuf);
639
639
        zsize = (ibuf->depth + 7) >> 3;
640
640
        if (flags & IB_zbuf &&  ibuf->zbuf != 0) zsize = 8;
641
641
        
642
 
        IMB_convert_rgba_to_abgr(ibuf->x*ibuf->y, ibuf->rect);
 
642
        IMB_convert_rgba_to_abgr(ibuf);
643
643
        test_endian_zbuf(ibuf);
644
644
 
645
645
        ret = output_iris(ibuf->rect, ibuf->x, ibuf->y, zsize, name, ibuf->zbuf);
646
646
 
647
647
        /* restore! Quite clumsy, 2 times a switch... maybe better a malloc ? */
648
 
        IMB_convert_rgba_to_abgr(ibuf->x*ibuf->y, ibuf->rect);
 
648
        IMB_convert_rgba_to_abgr(ibuf);
649
649
        test_endian_zbuf(ibuf);
650
650
 
651
651
        return(ret);