| 52 | }; |
| 53 | |
| 54 | static const FormatHandler* GetFormatHandler(const std::string_view extension) |
| 55 | { |
| 56 | for (const FormatHandler& handler : s_format_handlers) |
| 57 | { |
| 58 | if (StringUtil::Strncasecmp(extension.data(), handler.extension, extension.size()) == 0) |
| 59 | return &handler; |
| 60 | } |
| 61 | |
| 62 | return nullptr; |
| 63 | } |
| 64 | |
| 65 | RGBA8Image::RGBA8Image() = default; |
| 66 |
no test coverage detected