MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GetFormatHandler

Function GetFormatHandler

common/Image.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54static 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
65RGBA8Image::RGBA8Image() = default;
66

Callers 4

LoadFromFileMethod · 0.85
LoadFromBufferMethod · 0.85
SaveToFileMethod · 0.85
SaveToBufferMethod · 0.85

Calls 3

StrncasecmpFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected