updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / opencv-old / libpng-1.4.patch
blobc34c5a58a81b32aef6d6f2b09a2e7dc539025c4e
1 diff -Naur OpenCV-2.0.0-orig/src/highgui/grfmt_png.cpp OpenCV-2.0.0/src/highgui/grfmt_png.cpp
2 --- OpenCV-2.0.0-orig/src/highgui/grfmt_png.cpp 2010-01-21 01:08:46.000000000 -0500
3 +++ OpenCV-2.0.0/src/highgui/grfmt_png.cpp 2010-01-21 01:13:11.000000000 -0500
4 @@ -223,7 +223,7 @@
5 png_set_palette_to_rgb( png_ptr );
7 if( m_color_type == PNG_COLOR_TYPE_GRAY && m_bit_depth < 8 )
8 - png_set_gray_1_2_4_to_8( png_ptr );
9 + png_set_expand_gray_1_2_4_to_8( png_ptr );
11 if( CV_MAT_CN(m_type) > 1 && color )
12 png_set_bgr( png_ptr ); // convert RGB to BGR