Blender V5.3
IMB_openexr.hh File Reference
#include "BLI_math_vector_types.hh"
#include "BLI_span.hh"
#include "BLI_string_ref.hh"
#include "BLI_sys_types.hh"
#include "BLI_vector.hh"

Go to the source code of this file.

Classes

struct  blender::ExrPassInfo

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define EXR_LAY_MAXNAME   64
#define EXR_PASS_MAXNAME   64
#define EXR_VIEW_MAXNAME   64
#define EXR_TOT_MAXNAME   64
#define EXR_PASS_MAXCHAN   24

Functions

Write

Wrapper for writing EXR files, used for single and multi-layer, single and multi-view.

ExrWriteHandle * blender::IMB_exr_write_begin (bool write_multipart=false)
void blender::IMB_exr_write_view (ExrWriteHandle *handle, const char *viewname)
void blender::IMB_exr_write_pass (ExrWriteHandle *handle, StringRefNull layerpassname, StringRefNull channelnames, StringRefNull viewname, StringRefNull colorspace, size_t xstride, size_t ystride, const float *rect, bool use_half_float)
bool blender::IMB_exr_write_end (ExrWriteHandle *handle, const char *filepath, int width, int height, const double ppm[2], int compress, int quality, const StampData *stamp)
Read
ExrReadHandle * blender::IMB_exr_open (const char *filepath)
ExrReadHandle * blender::IMB_exr_open_multilayer (const char *filepath)
ExrReadHandle * blender::IMB_exr_open_multilayer_from_memory (const uchar *mem, size_t size)
bool blender::IMB_exr_get_ppm (ExrReadHandle *handle, double ppm[2])
void blender::IMB_exr_get_display_window (ExrReadHandle *handle, int display_size[2], int display_offset[2], int data_offset[2])
int2 blender::IMB_exr_get_size (ExrReadHandle *handle)
void blender::IMB_exr_close (ExrReadHandle *handle)
Read passes
Vector< ExrPassInfo > blender::IMB_exr_get_passes (ExrReadHandle *handle)
Vector< StringRefNull > blender::IMB_exr_get_views (ExrReadHandle *handle)
void blender::IMB_exr_read_passes (ExrReadHandle *handle, MutableSpan< ExrPassInfo > entries, const char *src_colorspace=nullptr, bool predivide=false)

Detailed Description

API for reading and writing multi-layer EXR files.

Definition in file IMB_openexr.hh.

Macro Definition Documentation

◆ EXR_LAY_MAXNAME

#define EXR_LAY_MAXNAME   64

Definition at line 24 of file IMB_openexr.hh.

Referenced by blender::render_result_new_from_exr().

◆ EXR_PASS_MAXCHAN

#define EXR_PASS_MAXCHAN   24

Number of supported channels per pass (easy to change).

Definition at line 29 of file IMB_openexr.hh.

Referenced by blender::IMB_exr_get_passes(), and blender::imb_exr_multilayer_ensure_channels_parsed().

◆ EXR_PASS_MAXNAME

◆ EXR_TOT_MAXNAME

◆ EXR_VIEW_MAXNAME

#define EXR_VIEW_MAXNAME   64

Definition at line 26 of file IMB_openexr.hh.