|
fukasawa |
e60969 |
# read.dfa
|
|
fukasawa |
e60969 |
# Build time configuration of libpng
|
|
fukasawa |
e60969 |
#
|
|
fukasawa |
e60969 |
# Author: John Bowler
|
|
fukasawa |
e60969 |
# Copyright: (c) John Bowler, 2013
|
|
fukasawa |
e60969 |
# Usage rights:
|
|
fukasawa |
e60969 |
# To the extent possible under law, the author has waived all copyright and
|
|
fukasawa |
e60969 |
# related or neighboring rights to this work. This work is published from:
|
|
fukasawa |
e60969 |
# United States.
|
|
fukasawa |
e60969 |
#
|
|
fukasawa |
e60969 |
# Build libpng with basic read support. This enables the lowest level libpng
|
|
fukasawa |
e60969 |
# read API - the one where the calling code has to use a loop to read each row.
|
|
fukasawa |
e60969 |
# At present this is the API used by most programs.
|
|
fukasawa |
e60969 |
#
|
|
fukasawa |
e60969 |
# Support is enabled only for those chunks and transformations that are
|
|
fukasawa |
e60969 |
# typically required - others can be added easily.
|
|
fukasawa |
e60969 |
#
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
everything = off
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# The sequential read code is enabled here; the progressive code can be used
|
|
fukasawa |
e60969 |
# instead but there is no point enabling both.
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
option SEQUENTIAL_READ on
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# Likewise it is pointless enabling both fixed and floating point APIs. Choose
|
|
fukasawa |
e60969 |
# one or the other for both the API and the internal math.
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
#Fixed point:
|
|
fukasawa |
e60969 |
#option FIXED_POINT on
|
|
fukasawa |
e60969 |
#option FLOATING_ARITHMETIC off
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
#Floating point:
|
|
fukasawa |
e60969 |
option FLOATING_POINT on
|
|
fukasawa |
e60969 |
option FLOATING_ARITHMETIC on
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# Basic error handling, IO and user memory support. The latter allows the
|
|
fukasawa |
e60969 |
# application program to provide its own implementations of 'malloc' and 'free'.
|
|
fukasawa |
e60969 |
option SETJMP on
|
|
fukasawa |
e60969 |
option STDIO on
|
|
fukasawa |
e60969 |
option USER_MEM on
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# To read the full set of PNG images correctly interlace, transparency and
|
|
fukasawa |
e60969 |
# 16-bit support is required. The application can implement interlace itself,
|
|
fukasawa |
e60969 |
# but very few do and it's no longer possible to disable it when READ is
|
|
fukasawa |
e60969 |
# enabled.
|
|
fukasawa |
e60969 |
option READ_tRNS on
|
|
fukasawa |
e60969 |
option READ_16BIT on
|
|
fukasawa |
e60969 |
|
|
fukasawa |
e60969 |
# Everything else is application dependent. This file assumes the app handles
|
|
fukasawa |
e60969 |
# all the native PNG bit layouts, so it doesn't need any of layout change
|
|
fukasawa |
e60969 |
# transforms, but needs libpng to perform gamma correction. It doesn't do any
|
|
fukasawa |
e60969 |
# colorspace stuff and ignores the 'significant bit' information.
|
|
fukasawa |
e60969 |
#
|
|
fukasawa |
e60969 |
# If your app always expands the image to a limited set of bit layouts you
|
|
fukasawa |
e60969 |
# probably want to consider using the simplified API instead of the low level
|
|
fukasawa |
e60969 |
# one - see png.h and s_read.dfa.
|
|
fukasawa |
e60969 |
option READ_GAMMA on
|