Annotation of embedaddon/php/ext/gd/libgd/gd_compat.h, revision 1.1.1.2

1.1       misho       1: #ifndef GD_COMPAT_H
                      2: #define GD_COMPAT_H 1
                      3: 
                      4: #if HAVE_GD_BUNDLED
                      5: # include "gd.h"
                      6: #else
                      7: # include <gd.h>
                      8: #endif
                      9: 
                     10: const char * gdPngGetVersionString();
                     11: const char * gdJpegGetVersionString();
                     12: int gdJpegGetVersionInt();
                     13: int overflow2(int a, int b);
                     14: 
                     15: /* filters section
                     16:  *
                     17:  * Negate the imag src, white becomes black,
                     18:  * The red, green, and blue intensities of an image are negated.
                     19:  * White becomes black, yellow becomes blue, etc.
                     20:  */
                     21: int gdImageNegate(gdImagePtr src);
                     22: 
                     23: /* Convert the image src to a grayscale image */
                     24: int gdImageGrayScale(gdImagePtr src);
                     25: 
                     26: /* Set the brightness level <brightness> for the image src */
                     27: int gdImageBrightness(gdImagePtr src, int brightness);
                     28: 
                     29: /* Set the contrast level <contrast> for the image <src> */
                     30: int gdImageContrast(gdImagePtr src, double contrast);
                     31: 
                     32: /* Simply adds or substracts respectively red, green or blue to a pixel */
                     33: int gdImageColor(gdImagePtr src, const int red, const int green, const int blue, const int alpha);
                     34: 
1.1.1.2 ! misho      35: #if !defined(HAVE_GD_IMAGE_CONVOLUTION)
1.1       misho      36: /* Image convolution by a 3x3 custom matrix */
                     37: int gdImageConvolution(gdImagePtr src, float ft[3][3], float filter_div, float offset);
                     38: int gdImageEdgeDetectQuick(gdImagePtr src);
                     39: int gdImageGaussianBlur(gdImagePtr im);
                     40: int gdImageSelectiveBlur( gdImagePtr src);
                     41: int gdImageEmboss(gdImagePtr im);
                     42: int gdImageMeanRemoval(gdImagePtr im);
                     43: int gdImageSmooth(gdImagePtr im, float weight);
1.1.1.2 ! misho      44: #endif
        !            45: 
        !            46: #if !defined(HAVE_GD_IMAGE_PIXELATE)
1.1       misho      47: enum gdPixelateMode {
                     48:        GD_PIXELATE_UPPERLEFT,
                     49:        GD_PIXELATE_AVERAGE
                     50: };
                     51: 
                     52: int gdImagePixelate(gdImagePtr im, int block_size, const unsigned int mode);
1.1.1.2 ! misho      53: #endif
        !            54: 
        !            55: int gdImagePixelate(gdImagePtr im, int block_size, const unsigned int mode);
1.1       misho      56: 
                     57: #if !HAVE_GD_IMAGEELLIPSE
                     58: void gdImageEllipse(gdImagePtr im, int cx, int cy, int w, int h, int c);
                     59: #endif
                     60: 
                     61: gdImagePtr gdImageRotate (gdImagePtr src, double dAngle, int clrBack, int ignoretransparent);
                     62: 
                     63: int gdImageColorMatch (gdImagePtr im1, gdImagePtr im2);
                     64: 
                     65: #endif
                     66: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>