mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Removed non-working ICC profile support code. There was too much
code for too little gain; implementing full ICC color correction is maybe desireable but is left up to applications.
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
7f912dbeb5
commit
520803d57e
@@ -151,7 +151,7 @@ logunsupported = 1
|
||||
# These are currently experimental features; define them if you want (NOTE:
|
||||
# experimental options must be disabled before they are defined in this file!)
|
||||
|
||||
option ICC disabled
|
||||
# NONE
|
||||
|
||||
# Note that PNG_USR_CONFIG only has an effect when building
|
||||
# pnglibconf.h
|
||||
@@ -318,20 +318,6 @@ setting USER_CHUNK_MALLOC_MAX
|
||||
option SAFE_LIMITS enables USER_LIMITS disabled
|
||||
= SAFE_LIMITS SAFE_LIMITS
|
||||
|
||||
# ICC profile support; basic ICC profile support is enabled if iCCP chunk read
|
||||
# or write is enabled. The application must perform all iCCP profile handling
|
||||
# itself. If full support is enabled with the option below libpng will attempt
|
||||
# to do more processing using the profile data itself, this includes setting
|
||||
# appropriate values for cHRM and gAMA chunks if not present in the stream.
|
||||
#
|
||||
# ICC profile support is not build in to core libpng because of the size of the
|
||||
# code required; an external ICC implementation must be passed to libpng to
|
||||
# enable it.
|
||||
#
|
||||
# WARNING: this option is CURRENTLY UNTESTED because a test CMS implementation
|
||||
# has not yet been written, as a result it is disabled in current beta builds.
|
||||
option ICC requires iCCP enables SAVE_INT_32
|
||||
|
||||
# All of the following options relate to code capabilities for
|
||||
# processing image data before creating a PNG or after reading one.
|
||||
# You can remove these capabilities safely and still be PNG
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
/* pnglibconf.h - library build configuration */
|
||||
|
||||
/* Libpng 1.6.0beta31 - October 26, 2012 */
|
||||
/* Libpng 1.6.0beta31 - November 1, 2012 */
|
||||
|
||||
/* Copyright (c) 1998-2012 Glenn Randers-Pehrson */
|
||||
|
||||
@@ -63,7 +63,6 @@
|
||||
#define PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
||||
#define PNG_hIST_SUPPORTED
|
||||
#define PNG_iCCP_SUPPORTED
|
||||
/*#undef PNG_ICC_SUPPORTED*/
|
||||
#define PNG_INCH_CONVERSIONS_SUPPORTED
|
||||
#define PNG_INFO_IMAGE_SUPPORTED
|
||||
#define PNG_IO_STATE_SUPPORTED
|
||||
|
||||
@@ -247,5 +247,3 @@ EXPORTS
|
||||
png_image_write_to_stdio @240
|
||||
png_convert_to_rfc1123_buffer @241
|
||||
png_set_check_for_invalid_index @242
|
||||
png_set_cms @243
|
||||
png_set_cms_output @244
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#define PNG_READ_BIG_ENDIAN_SUPPORTED /* should do nothing! */
|
||||
#define PNG_INCH_CONVERSIONS_SUPPORTED
|
||||
#define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
|
||||
#define PNG_ICC_SUPPORTED /* currently disabled */
|
||||
|
||||
#undef PNG_H
|
||||
#include "../png.h"
|
||||
|
||||
Reference in New Issue
Block a user