MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / isFloat16Exr

Function isFloat16Exr

Source/Falcor/Utils/Image/Bitmap.cpp:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83};
84
85bool isFloat16Exr(const MemoryMappedFile& inputFile)
86{
87 OpenExrStream stream(inputFile);
88 Imf::InputFile imfFile(stream);
89 const Imf::ChannelList& channels = imfFile.header().channels();
90 for (auto it = channels.begin(); it != channels.end(); ++it)
91 if (it.channel().type != Imf::HALF)
92 return false;
93 return true;
94}
95
96} // namespace
97

Callers 1

createFromFileMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected