Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ExrFileReader.h
Go to the documentation of this file.
1#pragma once
2
4#include "Frame/frame_fwd.h"
5
6#include <string_view>
7
8namespace ph
9{
10
12{
13public:
14 explicit ExrFileReader(const Path& filePath);
15
16 void load(HdrRgbFrame* out_frame);
17
19 HdrRgbFrame* out_frame,
20 std::string_view redChannelName = "R",
21 std::string_view greenChannelName = "G",
22 std::string_view blueChannelName = "B");
23
24private:
25 static void loadStandaloneImageData(
26 const Path filePath,
27 HdrRgbFrame* out_frame,
28 std::string_view redChannelName,
29 std::string_view greenChannelName,
30 std::string_view blueChannelName);
31
32 Path m_filePath;
33};
34
35}// end namespace ph
Definition ExrFileReader.h:12
ExrFileReader(const Path &filePath)
Definition ExrFileReader.cpp:22
void loadFromFilesystem(HdrRgbFrame *out_frame, std::string_view redChannelName="R", std::string_view greenChannelName="G", std::string_view blueChannelName="B")
Definition ExrFileReader.cpp:31
void load(HdrRgbFrame *out_frame)
Definition ExrFileReader.cpp:26
General path representation. Does not check whether the target actually exists (e....
Definition Path.h:21
The root for all renderer implementations.
Definition EEngineProject.h:6