|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Wrapper for EXR file header information with owned data. More...
#include <ExrLoader.h>
Public Member Functions | |
| ExrHeader ()=default | |
| ExrHeader (EXRHeader header) | |
| Construct from native EXRHeader, performing deep copy. | |
Public Attributes | |
| std::string | name |
| int | num_channels = 0 |
| < Image name/identifier std::string name; | |
| int | compression_type = 0 |
| < Number of color channels int num_channels = 0; | |
| std::vector< ExrChannelInfo > | channels |
| < Compression type used int compression_type = 0; | |
| bool | valid = false |
| < Channel information for each channel std::vector<ExrChannelInfo> channels; | |
Wrapper for EXR file header information with owned data.
This struct deep-copies header data from the native EXRHeader structure, allowing safe use with ECS systems like flecs. The original EXRHeader can be freed after creating this wrapper.
Definition at line 42 of file ExrLoader.h.
|
default |
|
explicit |
Construct from native EXRHeader, performing deep copy.
Construct ExrHeader from native EXRHeader.
| header | The native EXRHeader to copy from |
Performs a deep copy of all channel information from the native EXRHeader. This allows the original EXRHeader to be freed safely after construction.
Definition at line 15 of file ExrLoader.cpp.
References channels, compression_type, EngineCore::ExrChannelInfo::name, name, num_channels, EngineCore::ExrChannelInfo::p_linear, EngineCore::ExrChannelInfo::pixel_type, valid, EngineCore::ExrChannelInfo::x_sampling, and EngineCore::ExrChannelInfo::y_sampling.
| std::vector<ExrChannelInfo> EngineCore::ExrHeader::channels |
< Compression type used int compression_type = 0;
int compression_type = 0; *
Definition at line 61 of file ExrLoader.h.
Referenced by ExrHeader().
| int EngineCore::ExrHeader::compression_type = 0 |
< Number of color channels int num_channels = 0;
int num_channels = 0; *
Definition at line 58 of file ExrLoader.h.
Referenced by ExrHeader().
| std::string EngineCore::ExrHeader::name |
Definition at line 52 of file ExrLoader.h.
Referenced by ExrHeader().
| int EngineCore::ExrHeader::num_channels = 0 |
< Image name/identifier std::string name;
std::string name; *
Definition at line 55 of file ExrLoader.h.
Referenced by ExrHeader().
| bool EngineCore::ExrHeader::valid = false |
< Channel information for each channel std::vector<ExrChannelInfo> channels;
std::vector<ExrChannelInfo> channels; *
Definition at line 65 of file ExrLoader.h.
Referenced by ExrHeader().