]>
Commit | Line | Data |
---|---|---|
95daeb66 AM |
1 | http://www.libpng.org/pub/png/src/libpng-1.2.x-to-1.4.x-summary.txt |
2 | ||
8b3c9310 | 3 | --- modules/highgui/src/grfmt_png.cpp |
4 | +++ modules/highgui/srcgrfmt_png.cpp | |
95daeb66 AM |
5 | @@ -223,7 +223,7 @@ |
6 | png_set_palette_to_rgb( png_ptr ); | |
7 | ||
8 | if( m_color_type == PNG_COLOR_TYPE_GRAY && m_bit_depth < 8 ) | |
9 | - png_set_gray_1_2_4_to_8( png_ptr ); | |
10 | + png_set_expand_gray_1_2_4_to_8( png_ptr ); | |
11 | ||
12 | if( CV_MAT_CN(m_type) > 1 && color ) | |
13 | png_set_bgr( png_ptr ); // convert RGB to BGR |