mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Bug 208607 - reconfigure libpng for smaller imglib2. r=pavlov, sr=blizzard
This commit is contained in:
parent
592a5a8875
commit
ba311c5f24
@ -5,3 +5,6 @@ Changes made to pristine png source by mozilla.org developers.
|
||||
|
||||
2002/10/06 -- OS/2 bustage fix. IBM compiler defines __IBMCPP__ instead
|
||||
of IBMCPP__ (pngconf.h).
|
||||
|
||||
2003/06/11 -- add mozpngconf.h (bug 208607)
|
||||
|
||||
|
@ -54,7 +54,7 @@ CSRCS = \
|
||||
pngwutil.c \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS = png.h pngconf.h
|
||||
EXPORTS = png.h pngconf.h mozpngconf.h
|
||||
|
||||
LOCAL_INCLUDES = -I$(srcdir)
|
||||
|
||||
|
75
modules/libimg/png/mozpngconf.h
Normal file
75
modules/libimg/png/mozpngconf.h
Normal file
@ -0,0 +1,75 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is mozilla libpng configuration.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Tim Rowley.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2003
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Tim Rowley <tor@cs.brown.edu>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#ifndef MOZPNGCONF_H
|
||||
#define MOZPNGCONF_H
|
||||
|
||||
#define PNG_NO_INFO_IMAGE
|
||||
#define PNG_NO_READ_BACKGROUND
|
||||
#define PNG_NO_READ_DITHER
|
||||
#define PNG_NO_READ_INVERT
|
||||
#define PNG_NO_READ_SHIFT
|
||||
#define PNG_NO_READ_PACK
|
||||
#define PNG_NO_READ_PACKSWAP
|
||||
#define PNG_NO_READ_FILLER
|
||||
#define PNG_NO_READ_SWAP_ALPHA
|
||||
#define PNG_NO_READ_INVERT_ALPHA
|
||||
#define PNG_NO_READ_RGB_TO_GRAY
|
||||
#define PNG_NO_READ_USER_TRANSFORM
|
||||
#define PNG_NO_READ_bKGD
|
||||
#define PNG_NO_READ_cHRM
|
||||
#define PNG_NO_READ_hIST
|
||||
#define PNG_NO_READ_iCCP
|
||||
#define PNG_NO_READ_pCAL
|
||||
#define PNG_NO_READ_pHYs
|
||||
#define PNG_NO_READ_sBIT
|
||||
#define PNG_NO_READ_sCAL
|
||||
#define PNG_NO_READ_sPLT
|
||||
#define PNG_NO_READ_TEXT
|
||||
#define PNG_NO_READ_tIME
|
||||
#define PNG_NO_READ_UNKNOWN_CHUNKS
|
||||
#define PNG_NO_READ_USER_CHUNKS
|
||||
#define PNG_NO_USER_MEM
|
||||
#define PNG_NO_READ_EMPTY_PLTE
|
||||
#define PNG_NO_FIXED_POINT_SUPPORTED
|
||||
#define PNG_NO_READ_OPT_PLTE
|
||||
#define PNG_NO_MNG_FEATURES
|
||||
|
||||
#define PNG_NO_WRITE_TRANSFORMS
|
||||
#define PNG_NO_WRITE_EMPTY_PLTE
|
||||
#define PNG_NO_WRITE_ANCILLARY_CHUNKS
|
||||
|
||||
#endif
|
@ -16,6 +16,11 @@
|
||||
#ifndef PNGCONF_H
|
||||
#define PNGCONF_H
|
||||
|
||||
/* This include defines the subset of the libpng library that
|
||||
* mozilla utilizes.
|
||||
*/
|
||||
#include "mozpngconf.h"
|
||||
|
||||
/* This is the size of the compression buffer, and thus the size of
|
||||
* an IDAT chunk. Make this whatever size you feel is best for your
|
||||
* machine. One of these will be allocated per png_struct. When this
|
||||
|
Loading…
x
Reference in New Issue
Block a user