dc75279b36
Copy from KDE:KDE4:Factory:Desktop/opencv based on submit request 37230 from user coolo OBS-URL: https://build.opensuse.org/request/show/37230 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/opencv?expand=0&rev=4
14 lines
692 B
Diff
14 lines
692 B
Diff
Index: OpenCV-2.0.0/src/highgui/grfmt_png.cpp
|
|
===================================================================
|
|
--- OpenCV-2.0.0.orig/src/highgui/grfmt_png.cpp 2009-10-01 02:20:58.000000000 +0200
|
|
+++ OpenCV-2.0.0/src/highgui/grfmt_png.cpp 2010-04-07 15:57:36.000000000 +0200
|
|
@@ -223,7 +223,7 @@ bool PngDecoder::readData( Mat& img )
|
|
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
|