summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlvandeve <lvandeve@gmail.com>2014-11-20 15:15:15 +0100
committerlvandeve <lvandeve@gmail.com>2014-11-20 15:15:15 +0100
commit33f25078705fa73ad87a01d58a933460cc4092a9 (patch)
tree28a36b31540ebba2f15272fd0db17747400992c4
parent76577a213aead1da174b3afb234720438261a533 (diff)
Update lodepng.cpp
Rename function because all exported symbol names should start with lodepng to avoid clashes
-rw-r--r--lodepng.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lodepng.cpp b/lodepng.cpp
index 0c60dc2..09bb5e6 100644
--- a/lodepng.cpp
+++ b/lodepng.cpp
@@ -3504,9 +3504,9 @@ unsigned getValueRequiredBits(unsigned char value)
/*profile must already have been inited with mode.
It's ok to set some parameters of profile to done already.*/
-unsigned get_color_profile(LodePNGColorProfile* profile,
- const unsigned char* in, unsigned w, unsigned h,
- const LodePNGColorMode* mode)
+unsigned lodepng_get_color_profile(LodePNGColorProfile* profile,
+ const unsigned char* in, unsigned w, unsigned h,
+ const LodePNGColorMode* mode)
{
unsigned error = 0;
size_t i;
@@ -3675,7 +3675,7 @@ unsigned lodepng_auto_choose_color(LodePNGColorMode* mode_out,
unsigned i, n, palettebits, grey_ok, palette_ok;
lodepng_color_profile_init(&prof);
- error = get_color_profile(&prof, image, w, h, mode_in);
+ error = lodepng_get_color_profile(&prof, image, w, h, mode_in);
if(error) return error;
mode_out->key_defined = 0;