diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-07-15 17:15:11 +0200 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-07-15 17:15:11 +0200 |
commit | 5ad3f4a8c8e491105f821c9503acc93081296288 (patch) | |
tree | 65b658b9a1b270a47463aa45bf9a9f8feed8174b /extra/opencv/libpng-1.4.patch | |
parent | 4d359d4ade9b2e39e6adfef878adf8b0eef02b62 (diff) | |
parent | 120443897fc2c4994a9ab50672593a765e41bb7e (diff) | |
download | nutyx-pakxe-5ad3f4a8c8e491105f821c9503acc93081296288.tar.gz nutyx-pakxe-5ad3f4a8c8e491105f821c9503acc93081296288.tar.bz2 nutyx-pakxe-5ad3f4a8c8e491105f821c9503acc93081296288.tar.xz nutyx-pakxe-5ad3f4a8c8e491105f821c9503acc93081296288.zip |
Merge branch 'master' of ssh://kiao.no-ip.info:443/~/attapu
Diffstat (limited to 'extra/opencv/libpng-1.4.patch')
-rw-r--r-- | extra/opencv/libpng-1.4.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/opencv/libpng-1.4.patch b/extra/opencv/libpng-1.4.patch new file mode 100644 index 000000000..c34c5a58a --- /dev/null +++ b/extra/opencv/libpng-1.4.patch @@ -0,0 +1,12 @@ +diff -Naur OpenCV-2.0.0-orig/src/highgui/grfmt_png.cpp OpenCV-2.0.0/src/highgui/grfmt_png.cpp +--- OpenCV-2.0.0-orig/src/highgui/grfmt_png.cpp 2010-01-21 01:08:46.000000000 -0500 ++++ OpenCV-2.0.0/src/highgui/grfmt_png.cpp 2010-01-21 01:13:11.000000000 -0500 +@@ -223,7 +223,7 @@ + png_set_palette_to_rgb( png_ptr ); + + if( m_color_type == PNG_COLOR_TYPE_GRAY && m_bit_depth < 8 ) +- png_set_gray_1_2_4_to_8( png_ptr ); ++ png_set_expand_gray_1_2_4_to_8( png_ptr ); + + if( CV_MAT_CN(m_type) > 1 && color ) + png_set_bgr( png_ptr ); // convert RGB to BGR |