MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / getCachePath

Function getCachePath

lib/Epub/Epub/blocks/ImageBlock.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace {
22
23std::string getCachePath(const std::string& imagePath) {
24 // Replace extension with .pxc (pixel cache)
25 size_t dotPos = imagePath.rfind('.');
26 if (dotPos != std::string::npos) {
27 return imagePath.substr(0, dotPos) + ".pxc";
28 }
29 return imagePath + ".pxc";
30}
31
32bool renderFromCache(GfxRenderer& renderer, const std::string& cachePath, int x, int y, int expectedWidth,
33 int expectedHeight) {

Callers 7

parseContentOpfMethod · 0.85
parseTocNcxFileMethod · 0.85
parseTocNavFileMethod · 0.85
parseCssFilesMethod · 0.85
generateCoverBmpMethod · 0.85
generateThumbBmpMethod · 0.85
renderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected