~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/blenloader/intern/readfile.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
struct MemFile;
40
40
struct bheadsort;
41
41
struct ReportList;
 
42
struct Object;
 
43
struct PartEff;
 
44
struct View3D;
 
45
struct bNodeTree;
42
46
 
43
47
typedef struct FileData {
44
48
        // linked list of BHeadN's
65
69
        char headerdone;
66
70
        int inbuffer;
67
71
        
 
72
        // gzip stream for memory decompression
 
73
        z_stream strm;
 
74
        
68
75
        // general reading variables
69
76
        struct SDNA *filesdna;
70
77
        struct SDNA *memsdna;
71
78
        char *compflags;
72
79
        
73
80
        int fileversion;
74
 
        int id_name_offs;               /* used to retrieve ID names from (bhead+1) */
75
 
        int globalf, fileflags; /* for do_versions patching */
 
81
        int id_name_offs;       /* used to retrieve ID names from (bhead+1) */
 
82
        int globalf, fileflags; /* for do_versions patching */
76
83
        
77
84
        struct OldNewMap *datamap;
78
85
        struct OldNewMap *globmap;
79
86
        struct OldNewMap *libmap;
80
87
        struct OldNewMap *imamap;
81
88
        struct OldNewMap *movieclipmap;
 
89
        struct OldNewMap *packedmap;
82
90
        
83
 
        struct bheadsort *bheadmap;
 
91
        struct BHeadSort *bheadmap;
84
92
        int tot_bheadmap;
85
93
        
86
 
        ListBase mainlist;
 
94
        ListBase *mainlist;
87
95
        
88
 
                /* ick ick, used to return
89
 
                 * data through streamglue.
90
 
                 */
 
96
        /* ick ick, used to return
 
97
         * data through streamglue.
 
98
         */
91
99
        BlendFileData **bfd_r;
92
100
        struct ReportList *reports;
93
101
} FileData;
98
106
} BHeadN;
99
107
 
100
108
 
101
 
#define FD_FLAGS_SWITCH_ENDIAN             (1<<0)
102
 
#define FD_FLAGS_FILE_POINTSIZE_IS_4       (1<<1)
103
 
#define FD_FLAGS_POINTSIZE_DIFFERS         (1<<2)
104
 
#define FD_FLAGS_FILE_OK                   (1<<3)
105
 
#define FD_FLAGS_NOT_MY_BUFFER                     (1<<4)
106
 
#define FD_FLAGS_NOT_MY_LIBMAP                     (1<<5)
 
109
#define FD_FLAGS_SWITCH_ENDIAN             (1 << 0)
 
110
#define FD_FLAGS_FILE_POINTSIZE_IS_4       (1 << 1)
 
111
#define FD_FLAGS_POINTSIZE_DIFFERS         (1 << 2)
 
112
#define FD_FLAGS_FILE_OK                   (1 << 3)
 
113
#define FD_FLAGS_NOT_MY_BUFFER             (1 << 4)
 
114
#define FD_FLAGS_NOT_MY_LIBMAP             (1 << 5)
107
115
 
108
116
#define SIZEOFBLENDERHEADER 12
109
117
 
110
 
        /***/
 
118
/***/
111
119
struct Main;
112
120
void blo_join_main(ListBase *mainlist);
113
121
void blo_split_main(ListBase *mainlist, struct Main *main);
123
131
void blo_end_image_pointer_map(FileData *fd, Main *oldmain);
124
132
void blo_make_movieclip_pointer_map(FileData *fd, Main *oldmain);
125
133
void blo_end_movieclip_pointer_map(FileData *fd, Main *oldmain);
 
134
void blo_make_packed_pointer_map(FileData *fd, Main *oldmain);
 
135
void blo_end_packed_pointer_map(FileData *fd, Main *oldmain);
126
136
void blo_add_library_pointer_map(ListBase *mainlist, FileData *fd);
127
137
 
128
 
void blo_freefiledata( FileData *fd);
 
138
void blo_freefiledata(FileData *fd);
129
139
 
130
140
BHead *blo_firstbhead(FileData *fd);
131
141
BHead *blo_nextbhead(FileData *fd, BHead *thisblock);
133
143
 
134
144
char *bhead_id_name(FileData *fd, BHead *bhead);
135
145
 
 
146
/* do versions stuff */
 
147
 
 
148
void blo_do_versions_oldnewmap_insert(struct OldNewMap *onm, void *oldaddr, void *newaddr, int nr);
 
149
void *blo_do_versions_newlibadr(struct FileData *fd, void *lib, void *adr);
 
150
void *blo_do_versions_newlibadr_us(struct FileData *fd, void *lib, void *adr);
 
151
 
 
152
struct PartEff *blo_do_version_give_parteff_245(struct Object *ob);
 
153
void blo_do_version_old_trackto_to_constraints(struct Object *ob);
 
154
void blo_do_versions_view3d_split_250(struct View3D *v3d, struct ListBase *regions);
 
155
void blo_do_versions_nodetree_default_value(struct bNodeTree *ntree);
 
156
 
 
157
void blo_do_versions_pre250(struct FileData *fd, struct Library *lib, struct Main *main);
 
158
void blo_do_versions_250(struct FileData *fd, struct Library *lib, struct Main *main);
 
159
 
136
160
#endif
137
161