Lines 1293-1301
Link Here
|
1293 |
if(rgb_error) |
1293 |
if(rgb_error) |
1294 |
{ |
1294 |
{ |
1295 |
png_ptr->rgb_to_gray_status=1; |
1295 |
png_ptr->rgb_to_gray_status=1; |
1296 |
if(png_ptr->transformations & PNG_RGB_TO_GRAY_WARN) |
1296 |
if((png_ptr->transformations & PNG_RGB_TO_GRAY) == |
|
|
1297 |
PNG_RGB_TO_GRAY_WARN) |
1297 |
png_warning(png_ptr, "png_do_rgb_to_gray found nongray pixel"); |
1298 |
png_warning(png_ptr, "png_do_rgb_to_gray found nongray pixel"); |
1298 |
if(png_ptr->transformations & PNG_RGB_TO_GRAY_ERR) |
1299 |
if((png_ptr->transformations & PNG_RGB_TO_GRAY) == |
|
|
1300 |
PNG_RGB_TO_GRAY_ERR) |
1299 |
png_error(png_ptr, "png_do_rgb_to_gray found nongray pixel"); |
1301 |
png_error(png_ptr, "png_do_rgb_to_gray found nongray pixel"); |
1300 |
} |
1302 |
} |
1301 |
} |
1303 |
} |