|
Blender V5.3
|
#include "IMB_filetype.hh"#include <algorithm>#include <cctype>#include <cerrno>#include <cstddef>#include <cstdio>#include <cstdlib>#include <fcntl.h>#include <fstream>#include <iostream>#include <set>#include <string>#include <OpenEXR/OpenEXRConfig.h>#include <OpenEXR/half.h>#include <OpenEXR/Iex.h>#include <OpenEXR/ImfArray.h>#include <OpenEXR/ImfAttribute.h>#include <OpenEXR/ImfChannelList.h>#include <OpenEXR/ImfChromaticities.h>#include <OpenEXR/ImfCompression.h>#include <OpenEXR/ImfCompressionAttribute.h>#include <OpenEXR/ImfIO.h>#include <OpenEXR/ImfInputFile.h>#include <OpenEXR/ImfIntAttribute.h>#include <OpenEXR/ImfOutputFile.h>#include <OpenEXR/ImfPixelType.h>#include <OpenEXR/ImfPreviewImage.h>#include <OpenEXR/ImfRgbaFile.h>#include <OpenEXR/ImfStandardAttributes.h>#include <OpenEXR/ImfStringAttribute.h>#include <OpenEXR/ImfVersion.h>#include <OpenEXR/ImfInputPart.h>#include <OpenEXR/ImfMultiPartInputFile.h>#include <OpenEXR/ImfMultiPartOutputFile.h>#include <OpenEXR/ImfMultiView.h>#include <OpenEXR/ImfOutputPart.h>#include <OpenEXR/ImfPartHelper.h>#include <OpenEXR/ImfPartType.h>#include <OpenEXR/ImfTiledOutputPart.h>#include "DNA_scene_types.h"#include <openexr_api.h>#include <unistd.h>#include "MEM_guardedalloc.h"#include "BLI_fileops.hh"#include "BLI_math_base.hh"#include "BLI_math_color_c.hh"#include "BLI_math_half.hh"#include "BLI_mmap.hh"#include "BLI_string.hh"#include "BLI_string_ref.hh"#include "BLI_string_utf8.hh"#include "BLI_task.hh"#include "BLI_threads.hh"#include "BKE_blender_version.h"#include "BKE_idprop.hh"#include "BKE_image.hh"#include "CLG_log.h"#include "IMB_colormanagement.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "IMB_metadata.hh"#include "IMB_openexr.hh"Go to the source code of this file.
Classes | |
| class | blender::IMemStream |
| class | blender::IMMapStream |
| class | blender::IFileStream |
| struct | blender::OMemStream |
| class | blender::OFileStream |
| struct | blender::RGBAHalf |
| struct | blender::ExrChannel |
| struct | blender::ExrPass |
| struct | blender::ExrLayer |
| struct | blender::ExrReadHandle |
| struct | blender::ExrWriteHandle |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | COMBINED_OPENEXR_VERSION ((10000 * OPENEXR_VERSION_MAJOR) + (100 * OPENEXR_VERSION_MINOR) + OPENEXR_VERSION_PATCH) |
| #define | exr_file_offset_t Int64 |
Functions | |
| static bool | blender::exr_has_multiview (MultiPartInputFile &file) |
| static bool | blender::exr_has_multipart_file (MultiPartInputFile &file) |
| static bool | blender::exr_has_alpha (MultiPartInputFile &file) |
| static bool | blender::exr_has_channels (MultiPartInputFile &file) |
| static bool | blender::imb_exr_is_multi (MultiPartInputFile &file) |
| static const ColorSpace * | blender::imb_exr_part_colorspace (const Header &header) |
| static const Header & | blender::imb_exr_colorspace_header (const MultiPartInputFile &file) |
| bool | blender::imb_is_a_openexr (const uchar *mem, const size_t size) |
| static int | blender::openexr_jpg_like_quality_to_dwa_compression_level (int q) |
| static float | blender::compression_half_max (const int compression, const int quality) |
| static int | blender::openexr_compression_for_data_colorspace (const int compression) |
| static void | blender::openexr_header_compression (Header *header, int compression, int quality) |
| static int | blender::openexr_header_get_compression (const Header &header) |
| static bool | blender::openexr_metadata_skip_read (const char *name, const bool is_multi) |
| static bool | blender::openexr_metadata_skip_write (const char *name, const bool is_multi) |
| static void | blender::openexr_header_metadata_global (Header *header, const IDProperty *metadata) |
| static void | blender::openexr_header_metadata_pixelinfo (Header *header, const double ppm[2]) |
| static void | blender::openexr_header_metadata_colorspace (Header *header, const ColorSpace *colorspace) |
| static void | blender::openexr_header_metadata_colorspace (Header *header, const ImBuf *ibuf) |
| static void | blender::convert_input_to_half_rgba (const ImBuf *ibuf, RGBAHalf *dst) |
| static void | blender::save_setup_header (const ImBuf *ibuf, bool half_precision, bool is_alpha, Header &header) |
| static void | blender::save_setup_framebuffer (const ImBuf *ibuf, bool half_precision, bool is_alpha, Vector< RGBAHalf > &half_pixels, FrameBuffer &frameBuffer) |
| bool | blender::imb_save_openexr (ImBuf *ibuf, const char *filepath, ImBufFlags) |
| Vector< uint8_t > | blender::imb_save_buffer_openexr (ImBuf *ibuf, ImBufFlags) |
| static bool | blender::imb_exr_multilayer_ensure_channels_parsed (ExrReadHandle *handle) |
| static Vector< ExrChannel > | blender::exr_channels_in_multi_part_file (const MultiPartInputFile &file) |
| static void | blender::imb_exr_write_channels (ExrWriteHandle *handle) |
| static int | blender::imb_exr_get_multiView_id (StringVector &views, const std::string &name) |
| static StringVector | blender::imb_exr_get_views (MultiPartInputFile &file) |
| static void | blender::openexr_header_metadata_multi (ExrWriteHandle *handle, Header &header, const StampData *stamp) |
| static void | blender::imb_exr_read_channels (ExrReadHandle *handle) |
| static void | blender::imb_exr_set_ibuf_display_window (MultiPartInputFile &file, ImBuf *ibuf) |
| static bool | blender::imb_exr_multi_read_single_pass (ExrReadHandle *handle, ImBuf *ibuf) |
| static int | blender::imb_exr_split_token (const char *str, const char *end, const char **token) |
| static void | blender::imb_exr_pass_name_from_channel (char *passname, const ExrChannel &echan, const char *channelname, const bool has_xyz_channels) |
| static void | blender::imb_exr_pass_name_from_channel_name (char *passname, const ExrChannel &, const char *channelname, const bool) |
| static int | blender::imb_exr_split_channel_name (ExrChannel &echan, char *layname, char *passname, bool has_xyz_channels) |
| static ExrLayer * | blender::imb_exr_get_layer (ExrReadHandle *handle, const char *layname) |
| static ExrPass * | blender::imb_exr_get_pass (ExrLayer &lay, const char *passname) |
| static bool | blender::exr_has_xyz_channels (ExrReadHandle *exr_handle) |
| static void | blender::exr_print_filecontents (MultiPartInputFile &file) |
| static const char * | blender::exr_rgba_channelname (MultiPartInputFile &file, const char *chan) |
| static int | blender::exr_has_rgb (MultiPartInputFile &file, const char *rgb_channels[3]) |
| static bool | blender::exr_has_luma (MultiPartInputFile &file) |
| static bool | blender::exr_has_chroma (MultiPartInputFile &file) |
| static bool | blender::exr_has_xyz (MultiPartInputFile &file) |
| static const char * | blender::exr_unknown_channel_name (MultiPartInputFile &file) |
| static bool | blender::exr_is_half_float (const Header &header) |
| static bool | blender::imb_exr_is_multilayer_file (MultiPartInputFile &file) |
| static bool | blender::imb_check_chromaticity_val (float test_v, float ref_v) |
| static bool | blender::imb_check_chromaticity_matches (const Imf::Chromaticities &a, const Imf::Chromaticities &b) |
| static void | blender::imb_exr_set_known_colorspace (const Header &header, ImFileColorSpace &r_colorspace) |
| static bool | blender::exr_get_ppm (MultiPartInputFile &file, double ppm[2]) |
| static void | blender::get_exr_display_window (const MultiPartInputFile &file, int display_size[2], int display_offset[2], int data_offset[2]) |
| ImBuf * | blender::imb_load_openexr (const uchar *mem, size_t size, ImBufFlags flags, ImFileColorSpace &r_colorspace) |
| ImBuf * | blender::imb_load_filepath_thumbnail_openexr (const char *filepath, const ImBufFlags, const size_t max_thumb_size, ImFileColorSpace &r_colorspace, size_t *r_width, size_t *r_height) |
| void | blender::imb_initopenexr () |
| void | blender::imb_exitopenexr () |
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) |
| int2 | blender::IMB_exr_get_size (ExrReadHandle *handle) |
| void | blender::IMB_exr_close (ExrReadHandle *handle) |
| 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]) |
| ExrReadHandle * | blender::IMB_exr_open_multilayer (const char *filepath) |
| ExrReadHandle * | blender::IMB_exr_open_multilayer_from_memory (const uchar *mem, size_t size) |
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) |
Variables | |
| const char * | blender::imb_file_extensions_openexr [] = {".exr", nullptr} |
| static CLG_LogRef | blender::LOG = {"image.openexr"} |
| static Imf::Chromaticities | blender::CHROMATICITIES_XYZ_E |
| static Imf::Chromaticities | blender::CHROMATICITIES_ACES_2065_1 |
| #define COMBINED_OPENEXR_VERSION ((10000 * OPENEXR_VERSION_MAJOR) + (100 * OPENEXR_VERSION_MINOR) + OPENEXR_VERSION_PATCH) |
Definition at line 27 of file openexr_api.cpp.
| #define exr_file_offset_t Int64 |
Definition at line 38 of file openexr_api.cpp.
Referenced by blender::OMemStream::ensure_size(), blender::IFileStream::seekg(), blender::IMemStream::seekg(), blender::IMMapStream::seekg(), blender::OFileStream::seekp(), blender::OMemStream::seekp(), blender::IFileStream::tellg(), blender::IMemStream::tellg(), blender::IMMapStream::tellg(), blender::OFileStream::tellp(), and blender::OMemStream::tellp().