|
Blender V2.27
|
00001 00030 #ifndef _OPENEXR_MULTI_H 00031 #define _OPENEXR_MULTI_H 00032 00033 /* experiment with more advanced exr api */ 00034 00035 /* Note: as for now openexr only supports 32 chars in channel names. 00036 This api also supports max 8 channels per pass now. easy to fix! */ 00037 #define EXR_LAY_MAXNAME 19 00038 #define EXR_PASS_MAXNAME 11 00039 #define EXR_TOT_MAXNAME 32 00040 #define EXR_PASS_MAXCHAN 8 00041 00042 00043 #ifdef WITH_OPENEXR 00044 void * IMB_exr_get_handle (void); 00045 void IMB_exr_add_channel (void *handle, const char *layname, const char *passname, int xstride, int ystride, float *rect); 00046 00047 int IMB_exr_begin_read (void *handle, const char *filename, int *width, int *height); 00048 void IMB_exr_begin_write (void *handle, const char *filename, int width, int height, int compress); 00049 void IMB_exrtile_begin_write (void *handle, const char *filename, int mipmap, int width, int height, int tilex, int tiley); 00050 00051 void IMB_exr_set_channel (void *handle, const char *layname, const char *passname, int xstride, int ystride, float *rect); 00052 00053 void IMB_exr_read_channels (void *handle); 00054 void IMB_exr_write_channels (void *handle); 00055 void IMB_exrtile_write_channels (void *handle, int partx, int party, int level); 00056 void IMB_exrtile_clear_channels (void *handle); 00057 00058 void IMB_exr_multilayer_convert (void *handle, void *base, 00059 void * (*addlayer)(void *base, char *str), 00060 void (*addpass)(void *base, void *lay, char *str, float *rect, int totchan, char *chan_id)); 00061 00062 void IMB_exr_close (void *handle); 00063 00064 00065 #else 00066 00067 /* ugly... but we only use it on pipeline.c, render module, now */ 00068 00069 void * IMB_exr_get_handle (void) {return NULL;} 00070 void IMB_exr_add_channel (void *handle, const char *layname, const char *channame, int xstride, int ystride, float *rect) { (void)handle; (void)layname; (void)channame; (void)xstride; (void)ystride; (void)rect; } 00071 00072 int IMB_exr_begin_read (void *handle, const char *filename, int *width, int *height) { (void)handle; (void)filename; (void)width; (void)height; return 0;} 00073 void IMB_exr_begin_write (void *handle, const char *filename, int width, int height, int compress) { (void)handle; (void)filename; (void)width; (void)height; (void)compress; } 00074 void IMB_exrtile_begin_write (void *handle, const char *filename, int mipmap, int width, int height, int tilex, int tiley) { (void)handle; (void)filename; (void)mipmap; (void)width; (void)height; (void)tilex; (void)tiley; } 00075 00076 void IMB_exr_set_channel (void *handle, char *layname, const char *channame, int xstride, int ystride, float *rect) { (void)handle; (void)layname; (void)channame; (void)xstride; (void)ystride; (void)rect; } 00077 00078 void IMB_exr_read_channels (void *handle) { (void)handle; } 00079 void IMB_exr_write_channels (void *handle) { (void)handle; } 00080 void IMB_exrtile_write_channels (void *handle, int partx, int party, int level) { (void)handle; (void)partx; (void)party; (void)level; } 00081 void IMB_exrtile_clear_channels (void *handle) { (void)handle; } 00082 00083 void IMB_exr_multilayer_convert (void *handle, void *base, 00084 void * (*addlayer)(void *base, char *str), 00085 void (*addpass)(void *base, void *lay, char *str, float *rect, int totchan, char *chan_id)) 00086 { 00087 (void)handle; (void)base; (void)addlayer; (void)addpass; 00088 } 00089 00090 void IMB_exr_close (void *handle) { (void)handle; } 00091 00092 #endif 00093 00094 00095 00096 #endif /* __OPENEXR_MULTI_H */
1.7.3