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

Function WebPFileLoader

common/Image.cpp:725–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725bool WebPFileLoader(RGBA8Image* image, const char* filename, std::FILE* fp)
726{
727 std::optional<std::vector<u8>> data = FileSystem::ReadBinaryFile(fp);
728 if (!data.has_value())
729 return false;
730
731 return WebPBufferLoader(image, data->data(), data->size());
732}
733
734bool WebPFileSaver(const RGBA8Image& image, const char* filename, std::FILE* fp, u8 quality)
735{

Callers

nothing calls this directly

Calls 3

WebPBufferLoaderFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected