Lines Matching +full:- +full:- +full:option

1 # scripts/pnglibconf.dfa - library build configuration control
3 @/*- pnglibconf.dfn intermediate file
7 com pnglibconf.h - library build configuration
11 com Copyright (c) 1998-2017 Glenn Randers-Pehrson
21 # C compiler to generate 'pnglibconf.h' - a list of all the
32 # option <name> [requires ...] [if ...] [enables ...] [disabled]
42 # "," may be used to separate options on an 'option' line and is ignored; it
44 # part of the setting!) A comma at the end of an option line causes a
45 # continuation (the next line is included in the option too.)
47 # Note that the 'on' and 'off' keywords, while valid on both option
51 #----------------------------------------------------------------------
53 # The following setting, option and chunk values can all be changed
59 # option: change 'option' lines to remove or add capabilities from
70 # detailed below and #define PNG_NO_<option> for each option you
72 # using PNG_<option>_SUPPORTED. When you have finished rerun
73 # configure and rebuild pnglibconf.h file with -DPNG_USER_CONFIG:
76 # CPPFLAGS='-DPNG_USER_CONFIG' ./configure
80 # is safer to ensure that -DPNG_USER_CONFIG is specified throughout
86 # -DPNG_DEFAULT_READ_MACROS=0
95 # provide override values for setting entries and turn option or
99 # option BAR [on|off]
109 #----------------------------------------------------------------------
128 # macros in the file 'pngusr.h' and set -DPNG_USER_CONFIG for
133 # #define PNG_USER_DLLFNAME_POSTFIX <two-letter postfix that serve to
142 # - PNG_USER_VERSIONINFO_COMMENTS
143 # - PNG_USER_VERSIONINFO_COMPANYNAME
144 # - PNG_USER_VERSIONINFO_LEGALTRADEMARKS
195 # by causing a similar build-time only file, pngprefix.h, to be generated.
200 # hardware or software options that need it (typically when run-time choices
202 option SET_OPTION disabled
205 # these optimizations depend on GCC specific pre-processing of an assembler (.S)
210 # CC="gcc -mfpu=neon".)
213 # 2: switch on unconditionally (inadvisable - instead pass
214 # -mfpu=neon to GCC in CC)
217 # '2' should not be necessary as -mfpu=neon will achieve the same
223 # ARM_NEON_CHECK: (PNG_ARM_NEON == 1) compile a run-time check to see if Neon
225 # deprecated - use the png_set_option API.
227 option ARM_NEON_API disabled requires ALIGNED_MEMORY enables SET_OPTION,
229 option ARM_NEON_CHECK disabled requires ALIGNED_MEMORY,
237 # "-mvsx -maltivec" compiler flags)
240 # 2: switch on unconditionally (inadvisable - instead pass
241 # -mvsx -maltivec to compiler options)
244 # '2' should not be necessary as "-mvsx -maltivec" will achieve the same
249 # POWERPC_VSX_CHECK: (PNG_POWERPC_VSX == 1) compile a run-time check to see if VSX
253 option POWERPC_VSX_API disabled enables SET_OPTION,
255 option POWERPC_VSX_CHECK disabled,
259 # These settings configure the default compression level (0-9) and 'strategy';
263 # the zlib.h defaults - the apparently recursive definition does not arise
282 # CALLBACK: internal non-file-local callbacks
283 # FUNCTION: internal non-file-local functions
284 # DATA: internal non-file-local (const) data
300 # USE_READ_MACROS option on (see pngconf.h)
302 option READ_INT_FUNCTIONS requires READ
305 # is required at all - hence the use of a 'disabled', not a 'requires'.
309 option WRITE_INT_FUNCTIONS disabled
330 option WARNINGS
331 option ERROR_TEXT
332 option ERROR_NUMBERS disabled
334 option BENIGN_ERRORS
335 option BENIGN_WRITE_ERRORS requires BENIGN_ERRORS disabled
336 option BENIGN_READ_ERRORS requires BENIGN_ERRORS
339 # Generic options - affect both read and write.
341 option MNG_FEATURES
344 # floating and fixed point arithmetic implementations - it does not affect any
351 option FLOATING_ARITHMETIC
352 option FLOATING_POINT
353 option FIXED_POINT
364 option STDIO
365 option CONSOLE_IO requires STDIO
367 # Note: prior to 1.5.0 this option could not be disabled if STDIO
368 # was enabled. Prior to 1.5.3 this option required STDIO
370 option TIME_RFC1123
374 option SETJMP
381 option EASY_ACCESS
383 # Added at libpng-1.2.0
385 option USER_MEM
387 # Added at libpng-1.4.0
389 option IO_STATE
393 # If this option is disabled all the limit checking code will be disabled:
395 option USER_LIMITS requires READ
404 # USER_CHUNK_MALLOC_MAX: maximum in-memory (decompressed) size of a single chunk
417 # If this option is enabled APIs to set the above limits at run time are added;
419 option SET_USER_LIMITS requires USER_LIMITS
424 # conformant, however the library that results is still non-standard.
430 # versions. In some cases turning off an option turned off other options, in
432 # Libpng 1.6 changes this: in general if you turn off an option that affects
442 option READ enables READ_INTERLACING SET_OPTION
444 # Disabling READ_16BIT does not disable reading 16-bit PNG files, but it
445 # forces them to be chopped down to 8-bit, and disables any 16-bit
448 # this to work properly. You should disable the other option if you need to
451 option READ_16BIT requires READ enables 16BIT
453 option READ_QUANTIZE requires READ
455 option READ_TRANSFORMS requires READ
473 option READ_GAMMA requires READ_TRANSFORMS, READ_gAMA, READ_sRGB
475 option READ_ALPHA_MODE requires READ_TRANSFORMS, READ_GAMMA
476 option READ_BACKGROUND requires READ_TRANSFORMS, READ_STRIP_ALPHA, READ_GAMMA
477 option READ_BGR requires READ_TRANSFORMS
478 option READ_EXPAND_16 requires READ_TRANSFORMS, READ_16BIT, READ_EXPAND
479 option READ_EXPAND requires READ_TRANSFORMS
480 option READ_FILLER requires READ_TRANSFORMS
481 option READ_GRAY_TO_RGB requires READ_TRANSFORMS
482 option READ_INVERT_ALPHA requires READ_TRANSFORMS
483 option READ_INVERT requires READ_TRANSFORMS
484 option READ_PACK requires READ_TRANSFORMS
485 option READ_PACKSWAP requires READ_TRANSFORMS
486 option READ_RGB_TO_GRAY requires READ_TRANSFORMS, READ_GAMMA enables COLORSPACE
487 option READ_SCALE_16_TO_8 requires READ_TRANSFORMS
488 option READ_SHIFT requires READ_TRANSFORMS
489 option READ_STRIP_16_TO_8 requires READ_TRANSFORMS
490 option READ_STRIP_ALPHA requires READ_TRANSFORMS
491 option READ_SWAP_ALPHA requires READ_TRANSFORMS
492 option READ_SWAP requires READ_TRANSFORMS, READ_16BIT
493 option READ_USER_TRANSFORM requires READ_TRANSFORMS
495 option PROGRESSIVE_READ requires READ
496 option SEQUENTIAL_READ requires READ
501 # for PNG-compliant decoders. (In other words, do not do this - in
503 #option READ_INTERLACING requires READ
505 option READ_COMPOSITE_NODIV requires READ
510 option INCH_CONVERSIONS
516 option BUILD_GRAYSCALE_PALETTE
520 option WRITE enables WRITE_INT_FUNCTIONS
522 # Disabling WRITE_16BIT prevents 16-bit PNG files from being
524 option WRITE_16BIT requires WRITE enables 16BIT
526 option WRITE_TRANSFORMS requires WRITE
529 option WRITE_SHIFT requires WRITE_TRANSFORMS
530 option WRITE_PACK requires WRITE_TRANSFORMS
531 option WRITE_BGR requires WRITE_TRANSFORMS
532 option WRITE_SWAP requires WRITE_TRANSFORMS, WRITE_16BIT
533 option WRITE_PACKSWAP requires WRITE_TRANSFORMS
534 option WRITE_INVERT requires WRITE_TRANSFORMS
535 option WRITE_FILLER requires WRITE_TRANSFORMS
536 option WRITE_SWAP_ALPHA requires WRITE_TRANSFORMS
537 option WRITE_INVERT_ALPHA requires WRITE_TRANSFORMS
538 option WRITE_USER_TRANSFORM requires WRITE_TRANSFORMS
540 # This is not required for PNG-compliant encoders, but can cause
543 option WRITE_INTERLACING requires WRITE
546 option WRITE_WEIGHTED_FILTER requires WRITE
548 option WRITE_FLUSH requires WRITE
552 option USER_TRANSFORM_PTR if READ_USER_TRANSFORM, WRITE_USER_TRANSFORM
553 option USER_TRANSFORM_INFO if READ_USER_TRANSFORM, WRITE_USER_TRANSFORM
556 # non-IDAT chunks (zTXt, iTXt, iCCP, and unknown chunks). This feature
557 # was added at libpng-1.5.3.
558 option WRITE_CUSTOMIZE_ZTXT_COMPRESSION requires WRITE
559 option WRITE_CUSTOMIZE_COMPRESSION requires WRITE
566 # The size of the png_text structure changed in libpng-1.0.6 when
568 # libpng-1.2.x, to support old apps that malloc the png_text structure
570 # was turned on by default in libpng-1.4.0.
572 option READ_ANCILLARY_CHUNKS requires READ
576 option WRITE_ANCILLARY_CHUNKS requires WRITE
582 option TEXT disabled
583 option READ_TEXT requires READ_ANCILLARY_CHUNKS enables TEXT
584 option WRITE_TEXT requires WRITE_ANCILLARY_CHUNKS enables TEXT
586 # Moved to pnglibconf.h at libpng-1.5.0
591 # the library-only settings.)
602 # code - do this for applications that do their own gamma processing)
608 option GAMMA disabled
609 option COLORSPACE enables GAMMA disabled
616 # -1: Don't do any sRGB profile checking.
619 # the checks in option 1.
641 # round this problem. Selecting an option other than option '0' will cause such
654 # Artificially align memory - the code typically aligns to 8 byte
659 option ALIGNED_MEMORY
664 option POINTER_INDEXING
734 # once - it has to read and process each one in turn. There is no point setting
765 option READ_OPT_PLTE requires READ_ANCILLARY_CHUNKS
769 # 'UNKNOWN_CHUNKS' is a global option to disable all unknown chunk handling on
771 option UNKNOWN_CHUNKS
774 # chunks. If either read option is turned on then unknown chunks will be read,
775 # otherwise they are skipped. If the write option is turned on unknown chunks
778 option WRITE_UNKNOWN_CHUNKS requires WRITE requires UNKNOWN_CHUNKS
779 option WRITE_UNKNOWN_CHUNKS enables STORE_UNKNOWN_CHUNKS
784 option SAVE_UNKNOWN_CHUNKS requires READ requires SET_UNKNOWN_CHUNKS
785 option SAVE_UNKNOWN_CHUNKS enables READ_UNKNOWN_CHUNKS, STORE_UNKNOWN_CHUNKS
798 # Note that there is no 'WRITE_USER_CHUNKS' so the USER_CHUNKS option is always
800 option READ_USER_CHUNKS requires READ, UNKNOWN_CHUNKS
801 option READ_USER_CHUNKS enables READ_UNKNOWN_CHUNKS, USER_CHUNKS
805 # changed from discarding unknown chunks and allows per-chunk control. This is
806 # required to use the SAVE_UNKNOWN_CHUNKS option. If enabled this option also
810 # The second option extends the unknown handling to allow known chunks to be
811 # handled as though they were unknown. This option doesn't change any APIs, it
814 # This option no longer affects the write code. It can be safely disabled and
816 option SET_UNKNOWN_CHUNKS requires UNKNOWN_CHUNKS
817 option HANDLE_AS_UNKNOWN requires SET_UNKNOWN_CHUNKS
821 option READ_UNKNOWN_CHUNKS requires UNKNOWN_CHUNKS disabled
822 option STORE_UNKNOWN_CHUNKS requires UNKNOWN_CHUNKS disabled
824 option CONVERT_tIME requires WRITE_ANCILLARY_CHUNKS
831 option WRITE_FILTER requires WRITE
833 option SAVE_INT_32 disabled
838 # added at libpng-1.5.4
840 option WRITE_OPTIMIZE_CMF requires WRITE
842 option READ_COMPRESSED_TEXT disabled
843 option READ_iCCP enables READ_COMPRESSED_TEXT
844 option READ_iTXt enables READ_COMPRESSED_TEXT
845 option READ_zTXt enables READ_COMPRESSED_TEXT
847 option WRITE_oFFs enables SAVE_INT_32
848 option WRITE_pCAL enables SAVE_INT_32
849 option WRITE_cHRM enables SAVE_INT_32
851 option WRITE_COMPRESSED_TEXT disabled
852 option WRITE_iCCP enables WRITE_COMPRESSED_TEXT
853 option WRITE_iTXt enables WRITE_COMPRESSED_TEXT
854 option WRITE_zTXt enables WRITE_COMPRESSED_TEXT
859 option INFO_IMAGE
861 # added at libpng-1.5.10
865 option CHECK_FOR_INVALID_INDEX enables READ_CHECK_FOR_INVALID_INDEX
866 option CHECK_FOR_INVALID_INDEX enables WRITE_CHECK_FOR_INVALID_INDEX
867 option READ_CHECK_FOR_INVALID_INDEX requires READ, CHECK_FOR_INVALID_INDEX
868 option WRITE_CHECK_FOR_INVALID_INDEX requires WRITE, CHECK_FOR_INVALID_INDEX
870 # added at libpng-1.5.15
871 option GET_PALETTE_MAX enables READ_GET_PALETTE_MAX WRITE_GET_PALETTE_MAX
872 option READ_GET_PALETTE_MAX requires READ_CHECK_FOR_INVALID_INDEX disabled
873 option WRITE_GET_PALETTE_MAX requires WRITE_CHECK_FOR_INVALID_INDEX disabled
875 # Simplified API options (added at libpng-1.6.0)
885 option SIMPLIFIED_READ,
897 option SIMPLIFIED_READ_AFIRST enables FORMAT_AFIRST,
900 option SIMPLIFIED_READ_BGR enables FORMAT_BGR,
904 option SIMPLIFIED_WRITE,
909 option SIMPLIFIED_WRITE_STDIO requires SIMPLIFIED_WRITE STDIO
911 option SIMPLIFIED_WRITE_AFIRST enables FORMAT_AFIRST,
914 option SIMPLIFIED_WRITE_BGR enables FORMAT_BGR,
918 option FORMAT_AFIRST disabled
919 option FORMAT_BGR disabled