Navigation
API > API/Plugins > API/Plugins/OpenExrWrapper > API/Plugins/OpenExrWrapper/FExrInputFile
Description
Read specific channels into an RGBA half-float (uint16) interleaved buffer.
Each channel parameter is a full EXR channel name (e.g., "R", "beauty.G", "Zdepth.Z"). Empty string means fill with a default value (0 for RGB slots, 1 for A slot). The same channel name may be used for multiple slots (e.g., all RGB = "Zdepth.Z" for grayscale).
| Name | ReadPixels |
| Type | function |
| Header File | /Engine/Plugins/Media/ImgMedia/Source/OpenExrWrapper/Public/OpenExrWrapper.h |
| Include Path | #include "OpenExrWrapper.h" |
| Source | /Engine/Plugins/Media/ImgMedia/Source/OpenExrWrapper/Private/OpenExrWrapper.cpp |
void ReadPixels
(
void * Buffer,
const FIntPoint & BufferDim,
const FString & ChannelR,
const FString & ChannelG,
const FString & ChannelB,
const FString & ChannelA,
int32 StartY,
int32 EndY
)
Parameters
| Name | Remarks |
|---|---|
| Buffer | Destination buffer, must hold BufferDim.X BufferDim.Y 4 * sizeof(uint16) bytes. |
| BufferDim | Width and height of the buffer (used for stride calculation). |
| ChannelR | EXR channel name to read into the R slot. |
| ChannelG | EXR channel name to read into the G slot. |
| ChannelB | EXR channel name to read into the B slot. |
| ChannelA | EXR channel name to read into the A slot. |
| StartY | First scanline to read (0-based, relative to data window). |
| EndY | Last scanline to read (inclusive, 0-based, relative to data window). |