~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/makesdna/DNA_image_types.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * blenlib/DNA_image_types.h (mar-2001 nzc)
3
 
 *
4
 
 * $Id: DNA_image_types.h 28651 2010-05-07 15:18:04Z blendix $ 
5
 
 *
 
1
/*
6
2
 * ***** BEGIN GPL LICENSE BLOCK *****
7
3
 *
8
4
 * This program is free software; you can redistribute it and/or
28
24
 *
29
25
 * ***** END GPL LICENSE BLOCK *****
30
26
 */
31
 
#ifndef DNA_IMAGE_TYPES_H
32
 
#define DNA_IMAGE_TYPES_H
 
27
 
 
28
/** \file DNA_image_types.h
 
29
 *  \ingroup DNA
 
30
 */
 
31
 
 
32
#ifndef __DNA_IMAGE_TYPES_H__
 
33
#define __DNA_IMAGE_TYPES_H__
33
34
 
34
35
#include "DNA_ID.h"
35
36
 
44
45
/* ImageUser is in Texture, in Nodes, Background Image, Image Window, .... */
45
46
/* should be used in conjunction with an ID * to Image. */
46
47
typedef struct ImageUser {
 
48
        struct Scene *scene;            /* to retrieve render result */
 
49
 
47
50
        int framenr;                            /* movies, sequences: current to display */
48
51
        int frames;                                     /* total amount of frames to use */
49
52
        int offset, sfra;                       /* offset within movie, start frame in global time */
50
 
        short fie_ima, cycl;            /* fields/image in movie, cyclic flag */
51
 
        short flag, ok;
52
 
        
 
53
        char fie_ima, cycl;             /* fields/image in movie, cyclic flag */
 
54
        char ok, pad;
 
55
 
53
56
        short multi_index, layer, pass;  /* listbase indices, for menu browsing or retrieve buffer */
54
 
        short menunr;                                   /* localized menu entry, for handling browse event */
 
57
 
 
58
        short flag;
55
59
        
56
 
        struct Scene *scene;            /* to retrieve render result */
 
60
        int pad2;
 
61
 
57
62
} ImageUser;
58
63
 
59
64
/* iuser->flag */
64
69
typedef struct Image {
65
70
        ID id;
66
71
        
67
 
        char name[240];                 /* file path */
 
72
        char name[1024];                        /* file path, 1024 = FILE_MAX */
68
73
        
69
74
        ListBase ibufs;                                 /* not written in file */
70
75
        struct GPUTexture *gputexture;  /* not written in file */
96
101
        short animspeed;
97
102
        
98
103
        /* for generated images */
99
 
        short gen_x, gen_y, gen_type;
 
104
        short gen_x, gen_y;
 
105
        char gen_type, gen_flag;
100
106
        
101
107
        /* display aspect - for UV editing images resized for faster openGL display */
102
108
        float aspx, aspy;
105
111
 
106
112
/* **************** IMAGE ********************* */
107
113
 
108
 
/* flag */
109
 
#define IMA_FIELDS              1
110
 
#define IMA_STD_FIELD   2
111
 
#define IMA_DO_PREMUL   4
112
 
 
113
 
#define IMA_REFLECT             16
114
 
#define IMA_NOCOLLECT   32
115
 
#define IMA_DEPRECATED  64
116
 
#define IMA_OLD_PREMUL  128
117
 
 
118
 
/* tpageflag */
 
114
/* Image.flag */
 
115
#define IMA_FIELDS                      1
 
116
#define IMA_STD_FIELD           2
 
117
#define IMA_DO_PREMUL           4
 
118
#define IMA_REFLECT                     16
 
119
#define IMA_NOCOLLECT           32
 
120
#define IMA_DEPRECATED          64
 
121
#define IMA_OLD_PREMUL          128
 
122
#define IMA_CM_PREDIVIDE        256
 
123
#define IMA_USED_FOR_RENDER     512
 
124
 
 
125
/* Image.tpageflag */
119
126
#define IMA_TILES                       1
120
127
#define IMA_TWINANIM            2
121
128
#define IMA_COLCYCLE            4       /* Depreciated */
130
137
#define IMA_MAX_RENDER_TEXT             512
131
138
#define IMA_MAX_RENDER_SLOT             8
132
139
 
 
140
/* gen_flag */
 
141
#define IMA_GEN_FLOAT           1
 
142
 
133
143
#endif
134
144