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

« back to all changes in this revision

Viewing changes to source/blender/imbuf/intern/openexr/openexr_multi.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:
35
35
 
36
36
/* experiment with more advanced exr api */
37
37
 
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
44
44
 
45
45
 
46
46
#ifdef __cplusplus
47
47
extern "C" {
48
48
#endif
49
49
 
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);
52
 
 
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);
56
 
 
57
 
void    IMB_exr_set_channel                     (void *handle, const char *layname, const char *passname, int xstride, int ystride, float *rect);
58
 
 
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);
63
 
 
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));
67
 
 
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);
 
52
 
 
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);
 
56
 
 
57
void    IMB_exr_set_channel(void *handle, const char *layname, const char *passname, int xstride, int ystride, float *rect);
 
58
 
 
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);
 
63
 
 
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));
 
67
 
 
68
void    IMB_exr_close(void *handle);
69
69
 
70
70
#ifdef __cplusplus
71
71
} // extern "C"