summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Image.h
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2021-10-01 17:56:46 -0700
committerPokechu22 <Pokechu022@gmail.com>2021-11-18 13:10:22 -0800
commit94ccf765af5264ecc2173b103e97f73cc55e128d (patch)
treead9342ebb6311ae22bceb8d840c1a200acaf06d2 /Source/Core/Common/Image.h
parent6f4bbac528682389e34a1a4985820ee5137619c7 (diff)
Add option for setting the PNG zlib compression level
Diffstat (limited to 'Source/Core/Common/Image.h')
-rw-r--r--Source/Core/Common/Image.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Image.h b/Source/Core/Common/Image.h
index 1aa1bd4741..df6c30a3ad 100644
--- a/Source/Core/Common/Image.h
+++ b/Source/Core/Common/Image.h
@@ -20,9 +20,9 @@ enum class ImageByteFormat
};
bool SavePNG(const std::string& path, const u8* input, ImageByteFormat format, u32 width,
- u32 height, int stride = 0);
+ u32 height, int stride, int level = 6);
bool ConvertRGBAToRGBAndSavePNG(const std::string& path, const u8* input, u32 width, u32 height,
- int stride = 0);
+ int stride, int level);
std::vector<u8> RGBAToRGB(const u8* input, u32 width, u32 height, int row_stride = 0);