| 83 | }; |
| 84 | |
| 85 | bool 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 |
no test coverage detected