Blender  V3.3
IMB_openexr.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2006 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 /* API for reading and writing multilayer EXR files. */
11 
12 /* XXX layer+pass name max 64? */
13 /* This api also supports max 8 channels per pass now. easy to fix! */
14 #define EXR_LAY_MAXNAME 64
15 #define EXR_PASS_MAXNAME 64
16 #define EXR_VIEW_MAXNAME 64
17 #define EXR_TOT_MAXNAME 64
18 #define EXR_PASS_MAXCHAN 24
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 struct StampData;
25 
26 void *IMB_exr_get_handle(void);
27 void *IMB_exr_get_handle_name(const char *name);
28 
34 void IMB_exr_add_channel(void *handle,
35  const char *layname,
36  const char *passname,
37  const char *view,
38  int xstride,
39  int ystride,
40  float *rect,
41  bool use_half_float);
42 
47  void *handle, const char *filepath, int *width, int *height, bool parse_channels);
51 bool IMB_exr_begin_write(void *handle,
52  const char *filepath,
53  int width,
54  int height,
55  int compress,
56  const struct StampData *stamp);
62  void *handle, const char *filepath, int mipmap, int width, int height, int tilex, int tiley);
63 
69 void IMB_exr_set_channel(void *handle,
70  const char *layname,
71  const char *passname,
72  int xstride,
73  int ystride,
74  float *rect);
75 float *IMB_exr_channel_rect(void *handle,
76  const char *layname,
77  const char *passname,
78  const char *view);
79 
80 void IMB_exr_read_channels(void *handle);
81 void IMB_exr_write_channels(void *handle);
87  void *handle, int partx, int party, int level, const char *viewname, bool empty);
88 void IMB_exr_clear_channels(void *handle);
89 
90 void IMB_exr_multilayer_convert(void *handle,
91  void *base,
92  void *(*addview)(void *base, const char *str),
93  void *(*addlayer)(void *base, const char *str),
94  void (*addpass)(void *base,
95  void *lay,
96  const char *str,
97  float *rect,
98  int totchan,
99  const char *chan_id,
100  const char *view));
101 
102 void IMB_exr_close(void *handle);
103 
104 void IMB_exr_add_view(void *handle, const char *name);
105 
106 bool IMB_exr_has_multilayer(void *handle);
107 
108 #ifdef __cplusplus
109 } /* extern "C" */
110 #endif
static AppView * view
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei height
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei width
bool IMB_exr_begin_write(void *handle, const char *filepath, int width, int height, int compress, const struct StampData *stamp)
void IMB_exr_add_channel(void *handle, const char *layname, const char *passname, const char *view, int xstride, int ystride, float *rect, bool use_half_float)
void IMB_exr_add_view(void *handle, const char *name)
bool IMB_exr_has_multilayer(void *handle)
void IMB_exr_close(void *handle)
void IMB_exrtile_begin_write(void *handle, const char *filepath, int mipmap, int width, int height, int tilex, int tiley)
bool IMB_exr_begin_read(void *handle, const char *filepath, int *width, int *height, bool parse_channels)
void IMB_exr_clear_channels(void *handle)
void * IMB_exr_get_handle_name(const char *name)
void IMB_exr_write_channels(void *handle)
void IMB_exr_read_channels(void *handle)
float * IMB_exr_channel_rect(void *handle, const char *layname, const char *passname, const char *view)
void IMB_exrtile_write_channels(void *handle, int partx, int party, int level, const char *viewname, bool empty)
void IMB_exr_set_channel(void *handle, const char *layname, const char *passname, int xstride, int ystride, float *rect)
void * IMB_exr_get_handle(void)
void IMB_exr_multilayer_convert(void *handle, void *base, void *(*addview)(void *base, const char *str), void *(*addlayer)(void *base, const char *str), void(*addpass)(void *base, void *lay, const char *str, float *rect, int totchan, const char *chan_id, const char *view))
#define str(s)
static bool parse_channels(const ImageSpec &in_spec, vector< MergeImageLayer > &layers, string &error)
Definition: merge.cpp:134