36
36
/* experiment with more advanced exr api */
38
/* Note: as for now openexr only supports 32 chars in channel names.
39
* This api also supports max 8 channels per pass now. easy to fix! */
40
#define EXR_LAY_MAXNAME 19
41
#define EXR_PASS_MAXNAME 11
42
#define EXR_TOT_MAXNAME 32
43
#define EXR_PASS_MAXCHAN 8
38
/* XXX layer+pass name max 64? */
39
/* This api also supports max 8 channels per pass now. easy to fix! */
40
#define EXR_LAY_MAXNAME 64
41
#define EXR_PASS_MAXNAME 64
42
#define EXR_TOT_MAXNAME 64
43
#define EXR_PASS_MAXCHAN 8
50
void * IMB_exr_get_handle (void);
51
void IMB_exr_add_channel (void *handle, const char *layname, const char *passname, int xstride, int ystride, float *rect);
53
int IMB_exr_begin_read (void *handle, const char *filename, int *width, int *height);
54
int IMB_exr_begin_write (void *handle, const char *filename, int width, int height, int compress);
55
void IMB_exrtile_begin_write (void *handle, const char *filename, int mipmap, int width, int height, int tilex, int tiley);
57
void IMB_exr_set_channel (void *handle, const char *layname, const char *passname, int xstride, int ystride, float *rect);
59
void IMB_exr_read_channels (void *handle);
60
void IMB_exr_write_channels (void *handle);
61
void IMB_exrtile_write_channels (void *handle, int partx, int party, int level);
62
void IMB_exrtile_clear_channels (void *handle);
64
void IMB_exr_multilayer_convert (void *handle, void *base,
65
void * (*addlayer)(void *base, char *str),
66
void (*addpass)(void *base, void *lay, char *str, float *rect, int totchan, char *chan_id));
68
void IMB_exr_close (void *handle);
50
void *IMB_exr_get_handle(void);
51
void IMB_exr_add_channel(void *handle, const char *layname, const char *passname, int xstride, int ystride, float *rect);
53
int IMB_exr_begin_read(void *handle, const char *filename, int *width, int *height);
54
int IMB_exr_begin_write(void *handle, const char *filename, int width, int height, int compress);
55
void IMB_exrtile_begin_write(void *handle, const char *filename, int mipmap, int width, int height, int tilex, int tiley);
57
void IMB_exr_set_channel(void *handle, const char *layname, const char *passname, int xstride, int ystride, float *rect);
59
void IMB_exr_read_channels(void *handle);
60
void IMB_exr_write_channels(void *handle);
61
void IMB_exrtile_write_channels(void *handle, int partx, int party, int level);
62
void IMB_exrtile_clear_channels(void *handle);
64
void IMB_exr_multilayer_convert(void *handle, void *base,
65
void * (*addlayer)(void *base, const char *str),
66
void (*addpass)(void *base, void *lay, const char *str, float *rect, int totchan, const char *chan_id));
68
void IMB_exr_close(void *handle);