Resolve "16 bit PNG images are stored as big endian"
Compare changes
+ 73
− 6
@@ -120,6 +120,27 @@ static void im_peek(const std::string& path, bob::io::base::array::typeinfo& inf
@@ -120,6 +120,27 @@ static void im_peek(const std::string& path, bob::io::base::array::typeinfo& inf
@@ -134,16 +155,19 @@ void im_load_gray(png_structp png_ptr, bob::io::base::array::interface& b)
@@ -134,16 +155,19 @@ void im_load_gray(png_structp png_ptr, bob::io::base::array::interface& b)
@@ -159,6 +183,18 @@ void imbuffer_to_rgb(const size_t size, const T* im, T* r, T* g, T* b)
@@ -159,6 +183,18 @@ void imbuffer_to_rgb(const size_t size, const T* im, T* r, T* g, T* b)
@@ -300,6 +336,22 @@ static void im_load(const std::string& filename, bob::io::base::array::interface
@@ -300,6 +336,22 @@ static void im_load(const std::string& filename, bob::io::base::array::interface
@@ -308,13 +360,16 @@ static void im_save_gray(const bob::io::base::array::interface& b, png_structp p
@@ -308,13 +360,16 @@ static void im_save_gray(const bob::io::base::array::interface& b, png_structp p
@@ -330,6 +385,18 @@ void rgb_to_imbuffer(const size_t size, const T* r, const T* g, const T* b, T* i
@@ -330,6 +385,18 @@ void rgb_to_imbuffer(const size_t size, const T* r, const T* g, const T* b, T* i