14#define GD_MAJOR_VERSION 2
15#define GD_MINOR_VERSION 4
16#define GD_RELEASE_VERSION 0
17#define GD_EXTRA_VERSION "-dev"
23#define GDXXX_VERSION_STR(mjr, mnr, rev, ext) mjr "." mnr "." rev ext
24#define GDXXX_STR(s) GDXXX_SSTR(s)
25#define GDXXX_SSTR(s) #s
27#define GD_VERSION_STRING \
28 GDXXX_VERSION_STR(GDXXX_STR(GD_MAJOR_VERSION), GDXXX_STR(GD_MINOR_VERSION), \
29 GDXXX_STR(GD_RELEASE_VERSION), GD_EXTRA_VERSION)
46#if defined(_WIN32) || defined(CYGWIN) || defined(_WIN32_WCE)
49#define BGD_EXPORT_DATA_PROT
52#define BGD_EXPORT_DATA_PROT __attribute__((__dllexport__))
54#define BGD_EXPORT_DATA_PROT __declspec(dllexport)
59#define BGD_EXPORT_DATA_PROT __attribute__((__dllimport__))
61#define BGD_EXPORT_DATA_PROT __declspec(dllimport)
64#define BGD_STDCALL __stdcall
65#define BGD_EXPORT_DATA_IMPL
68#if defined(__GNUC__) || defined(__clang__)
69#define BGD_EXPORT_DATA_PROT __attribute__((__visibility__("default")))
70#define BGD_EXPORT_DATA_IMPL __attribute__((__visibility__("hidden")))
72#define BGD_EXPORT_DATA_PROT
73#define BGD_EXPORT_DATA_IMPL
76#define BGD_MALLOC __attribute__((__malloc__))
79#define BGD_DECLARE(rt) BGD_EXPORT_DATA_PROT rt BGD_STDCALL
85#define _ALLOW_KEYWORD_MACROS
87#define inline __inline
90#define strcasecmp _stricmp
95#define ARG_NOT_USED(arg) (void)arg
117#define gdMaxColors 256
140#define gdAlphaMax 127
141#define gdAlphaOpaque 0
142#define gdAlphaTransparent 127
144#define gdGreenMax 255
162#define gdTrueColorGetAlpha(c) (((c) & 0x7F000000) >> 24)
175#define gdTrueColorGetRed(c) (((c) & 0xFF0000) >> 16)
188#define gdTrueColorGetGreen(c) (((c) & 0x00FF00) >> 8)
201#define gdTrueColorGetBlue(c) ((c) & 0x0000FF)
225#define gdEffectReplace 0
226#define gdEffectAlphaBlend 1
227#define gdEffectNormal 2
228#define gdEffectOverlay 3
229#define gdEffectMultiply 4
234#define GD_EPSILON 1e-6
236#define M_PI 3.14159265358979323846
256BGD_DECLARE(
int) gdAlphaBlend(
int dest,
int src);
268BGD_DECLARE(
int) gdLayerOverlay(
int dest,
int src);
280BGD_DECLARE(
int) gdLayerMultiply(
int dest,
int src);
293#define GD_SCALE_INTERPOLATION_AUTO -1
351typedef double (*interpolation_method)(double, double);
376typedef struct gdImageStruct {
378 unsigned char **pixels;
385 int red[gdMaxColors];
386 int green[gdMaxColors];
387 int blue[gdMaxColors];
388 int open[gdMaxColors];
402 struct gdImageStruct *brush;
403 struct gdImageStruct *tile;
404 int brushColorMap[gdMaxColors];
405 int tileColorMap[gdMaxColors];
420 int alpha[gdMaxColors];
431 int alphaBlendingFlag;
460 int paletteQuantizationMethod;
464 int paletteQuantizationSpeed;
468 int paletteQuantizationMinQuality;
472 int paletteQuantizationMaxQuality;
474 interpolation_method interpolation;
477typedef gdImage *gdImagePtr;
479typedef struct gdImageMetadata gdImageMetadata;
482#define GD_META_ERR_FORMAT -1
483#define GD_META_ERR_PARSE -2
484#define GD_META_ERR_NOMEM -3
485#define GD_META_ERR_LIMIT -4
486#define GD_META_ERR_UNSUPPORTED -5
487#define GD_META_ERR_INVALID -6
489#define GD_METADATA_DEFAULT_MAX_PROFILE_SIZE ((size_t)64 * 1024 * 1024)
490#define GD_METADATA_DEFAULT_MAX_TOTAL_SIZE ((size_t)256 * 1024 * 1024)
492BGD_DECLARE(gdImageMetadata *) gdImageMetadataCreate(
void);
493BGD_DECLARE(
void) gdImageMetadataFree(gdImageMetadata *metadata);
494BGD_DECLARE(
void) gdImageMetadataReset(gdImageMetadata *metadata);
496gdImageMetadataSetLimits(gdImageMetadata *metadata,
size_t max_profile_size,
size_t max_total_size);
498gdImageMetadataGetLimits(
const gdImageMetadata *metadata,
size_t *max_profile_size,
499 size_t *max_total_size);
501gdImageMetadataSetProfile(gdImageMetadata *metadata,
const char *key,
const unsigned char *data,
503BGD_DECLARE(
const unsigned char *)
504gdImageMetadataGetProfile(
const gdImageMetadata *metadata,
const char *key,
size_t *size);
506gdImageMetadataRemoveProfile(gdImageMetadata *metadata,
const char *key);
508gdImageMetadataGetProfileCount(
const gdImageMetadata *metadata);
510gdImageMetadataGetProfileAt(
const gdImageMetadata *metadata,
size_t index,
const char **key,
511 const unsigned char **data,
size_t *size);
577typedef gdFont *gdFontPtr;
579typedef void (*gdErrorMethod)(int,
const char *, va_list);
581BGD_DECLARE(
void) gdSetErrorMethod(gdErrorMethod);
582BGD_DECLARE(
void) gdClearErrorMethod(
void);
617#define gdBrushed (-3)
618#define gdStyledBrushed (-4)
623#define gdTransparent (-6)
625#define gdAntiAliased (-7)
630BGD_DECLARE(gdImagePtr) gdImageCreate(
int sx,
int sy);
633#define gdImageCreatePalette gdImageCreate
636BGD_DECLARE(gdImagePtr) gdImageCreateTrueColor(
int sx,
int sy);
746BGD_DECLARE(
void)
gdImagePngEx(gdImagePtr
im, FILE *out,
int level);
780#define GD_PNG_FILTER_AUTO 0U
782#define GD_PNG_FILTER_NONE (1U << 0)
784#define GD_PNG_FILTER_SUB (1U << 1)
786#define GD_PNG_FILTER_UP (1U << 2)
788#define GD_PNG_FILTER_AVERAGE (1U << 3)
790#define GD_PNG_FILTER_PAETH (1U << 4)
792#define GD_PNG_FILTER_ALL \
793 (GD_PNG_FILTER_NONE | GD_PNG_FILTER_SUB | GD_PNG_FILTER_UP | GD_PNG_FILTER_AVERAGE | \
1186BGD_DECLARE(
void)
gdImageQoiEx(gdImagePtr
im, FILE *out,
int colorspace);
1503#define GD_GIF_DISPOSAL_UNKNOWN gdDisposalUnknown
1505#define GD_GIF_DISPOSAL_NONE gdDisposalNone
1507#define GD_GIF_DISPOSAL_RESTORE_BACKGROUND gdDisposalRestoreBackground
1509#define GD_GIF_DISPOSAL_RESTORE_PREVIOUS gdDisposalRestorePrevious
1546gdImageGifAnimAdd(gdImagePtr
im, FILE *outFile,
int LocalCM,
int LeftOfs,
int TopOfs,
int Delay,
1547 int Disposal, gdImagePtr previm);
1585 int Disposal, gdImagePtr previm);
1629 int Disposal, gdImagePtr previm);
1896BGD_DECLARE(
int) gdJpegGetMetadata(FILE *infile, gdImageMetadata *metadata);
1897BGD_DECLARE(
int) gdJpegGetMetadataCtx(gdIOCtxPtr infile, gdImageMetadata *metadata);
1898BGD_DECLARE(
int) gdJpegGetMetadataPtr(
int size,
const void *data, gdImageMetadata *metadata);
1917BGD_DECLARE(gdImagePtr)
1937BGD_DECLARE(gdImagePtr)
1967BGD_DECLARE(gdImagePtr)
1988BGD_DECLARE(gdImagePtr)
2000BGD_DECLARE(gdImagePtr)
2618BGD_DECLARE(
void)
gdImageJxl(gdImagePtr
im, FILE *outFile);
2634gdImageJxlEx(gdImagePtr
im, FILE *outFile,
int lossless,
float distance,
int effort);
2666gdImageJxlPtrEx(gdImagePtr
im,
int *size,
int lossless,
float distance,
int effort);
2694gdImageJxlCtxEx(gdImagePtr
im, gdIOCtxPtr outfile,
int lossless,
float distance,
int effort);
3106#define GD_HEIF_CHROMA_420 "420"
3108#define GD_HEIF_CHROMA_422 "422"
3110#define GD_HEIF_CHROMA_444 "444"
3140 int top_level_image_count;
3144 gdImageMetadata *metadata;
3234BGD_DECLARE(gdImagePtr)
3471 GD_AVIF_PIXEL_FORMAT_NONE = 0,
3472 GD_AVIF_PIXEL_FORMAT_YUV444 = 1,
3473 GD_AVIF_PIXEL_FORMAT_YUV422 = 2,
3474 GD_AVIF_PIXEL_FORMAT_YUV420 = 3,
3475 GD_AVIF_PIXEL_FORMAT_YUV400 = 4
4410BGD_DECLARE(
void *)
gdImageBmpPtr(gdImagePtr
im,
int *size,
int compression);
4426BGD_DECLARE(
void)
gdImageBmp(gdImagePtr
im, FILE *outFile,
int compression);
4442BGD_DECLARE(
void)
gdImageBmpCtx(gdImagePtr
im, gdIOCtxPtr out,
int compression);
4445#define GD_BMP_COMPRESS_NONE 0
4447#define GD_BMP_COMPRESS_RLE8 1
4449#define GD_BMP_COMPRESS_RLE4 2
4452#define GD_BMP_FLAG_NONE 0
4454#define GD_BMP_FLAG_FORCE_V4HDR (1 << 0)
4456#define GD_BMP_FLAG_QUANTIZE (1 << 1)
4458#define GD_BMP_FLAG_RGB555 (1 << 2)
4554gdImageBmpEx(gdImagePtr
im, FILE *outFile,
int bpp,
int compression,
int flags);
4574gdImageBmpCtxEx(gdImagePtr
im, gdIOCtxPtr out,
int bpp,
int compression,
int flags);
4636#define GD_UHDR_SUCCESS 0
4637#define GD_UHDR_NOT_AVAILABLE -1
4638#define GD_UHDR_E_INVALID -2
4639#define GD_UHDR_E_UNSUPPORTED -3
4640#define GD_UHDR_E_ENCODE -4
4641#define GD_UHDR_E_DECODE -5
4648#define GD_UHDR_MIRROR_HORIZONTAL 0
4650#define GD_UHDR_MIRROR_VERTICAL 1
4778 int (*source)(
void *context,
char *buffer,
int len);
4783BGD_DECLARE(gdImagePtr) gdImageCreateFromPngSource(
gdSourcePtr in);
4786BGD_DECLARE(gdImagePtr) gdImageCreateFromQoiSource(
gdSourcePtr in);
4895BGD_DECLARE(
void)
gdImageGd(gdImagePtr
im, FILE *out);
5003BGD_DECLARE(gdImagePtr)
5021BGD_DECLARE(gdImagePtr)
5039BGD_DECLARE(gdImagePtr)
5168BGD_DECLARE(gdImagePtr) gdImageCreateFromXpm(
char *filename);
5186BGD_DECLARE(
void)
gdImageWBMP(gdImagePtr image,
int fg, FILE *out);
5399BGD_DECLARE(gdImagePtr)
5484#define GD_IMAGE_READ_RESTRICT_CODEC_API 1
5523BGD_DECLARE(
int)
gdImageFile(gdImagePtr
im,
const char *filename);
5548BGD_DECLARE(
void) gdFree(
void *m);
5580BGD_DECLARE(
void)
gdImageJpeg(gdImagePtr
im, FILE *out,
int quality);
5588BGD_DECLARE(
void) gdImageJpegCtx(gdImagePtr
im, gdIOCtxPtr out,
int quality);
5666#define gdWebpLossless 101
5679BGD_DECLARE(
void)
gdImageWebpEx(gdImagePtr
im, FILE *outFile,
int quantization);
5815 int (*sink)(
void *context,
const char *buffer,
int len);
5820BGD_DECLARE(
void) gdImagePngToSink(gdImagePtr
im,
gdSinkPtr out);
5822BGD_DECLARE(
void) gdImageQoiToSink(gdImagePtr
im,
gdSinkPtr out);
5847BGD_DECLARE(
void)
gdImageGd2(gdImagePtr
im, FILE *out,
int cs,
int fmt);
5865BGD_DECLARE(
void *)
gdImageGd2Ptr(gdImagePtr
im,
int cs,
int fmt,
int *size);
5876BGD_DECLARE(
void) gdImageDestroy(gdImagePtr
im);
5893BGD_DECLARE(
int) gdImageColorAllocate(gdImagePtr
im,
int r,
int g,
int b);
5911gdImageColorAllocateAlpha(gdImagePtr
im,
int r,
int g,
int b,
int a);
5928BGD_DECLARE(
int) gdImageColorClosest(gdImagePtr
im,
int r,
int g,
int b);
5945gdImageColorClosestAlpha(gdImagePtr
im,
int r,
int g,
int b,
int a);
5963BGD_DECLARE(
int) gdImageColorClosestHWB(gdImagePtr
im,
int r,
int g,
int b);
5982BGD_DECLARE(
int) gdImageColorExact(gdImagePtr
im,
int r,
int g,
int b);
6003gdImageColorExactAlpha(gdImagePtr
im,
int r,
int g,
int b,
int a);
6016BGD_DECLARE(
int) gdImageColorResolve(gdImagePtr
im,
int r,
int g,
int b);
6032gdImageColorResolveAlpha(gdImagePtr
im,
int r,
int g,
int b,
int a);
6044#define gdTrueColor(r, g, b) (((r) << 16) + ((g) << 8) + (b))
6061#define gdTrueColorAlpha(r, g, b, a) (((a) << 24) + ((r) << 16) + ((g) << 8) + (b))
6078BGD_DECLARE(
void) gdImageColorDeallocate(gdImagePtr
im,
int color);
6088BGD_DECLARE(
int) gdImageColorMatch(gdImagePtr im1, gdImagePtr im2);
6109BGD_DECLARE(
void) gdImageColorTransparent(gdImagePtr
im,
int color);
6117BGD_DECLARE(
void) gdImagePaletteCopy(gdImagePtr dst, gdImagePtr src);
6119typedef int (*gdCallbackImageColor)(gdImagePtr
im,
int src);
6128BGD_DECLARE(
int) gdImageColorReplace(gdImagePtr
im,
int src,
int dst);
6149gdImageColorReplaceThreshold(gdImagePtr
im,
int src,
int dst,
float threshold);
6162gdImageColorReplaceArray(gdImagePtr
im,
int len,
int *src,
int *dst);
6173gdImageColorReplaceCallback(gdImagePtr
im, gdCallbackImageColor callback);
6232gdImageSetResolution(gdImagePtr
im,
const unsigned int res_x,
const unsigned int res_y);
6273BGD_DECLARE(
void)
gdImageChar(gdImagePtr
im, gdFontPtr f,
int x,
int y,
int c,
int color);
6285BGD_DECLARE(
void)
gdImageCharUp(gdImagePtr
im, gdFontPtr f,
int x,
int y,
int c,
int color);
6305gdImageString(gdImagePtr
im, gdFontPtr f,
int x,
int y,
unsigned char *s,
int color);
6318gdImageStringUp(gdImagePtr
im, gdFontPtr f,
int x,
int y,
unsigned char *s,
int color);
6331gdImageString16(gdImagePtr
im, gdFontPtr f,
int x,
int y,
unsigned short *s,
int color);
6381 double angle,
int x,
int y, const
char *
string);
6407gdImageStringFT(gdImagePtr
im,
int *brect,
int fg, const
char *fontlist,
double ptsize,
6408 double angle,
int x,
int y, const
char *
string);
6442#define gdFTEX_LINESPACE 1
6446#define gdFTEX_CHARMAP 2
6450#define gdFTEX_RESOLUTION 4
6454#define gdFTEX_DISABLE_KERNING 8
6456#define gdFTEX_XSHOW 16
6459#define gdFTEX_FONTPATHNAME 32
6463#define gdFTEX_FONTCONFIG 64
6467#define gdFTEX_RETURNFONTPATHNAME 128
6499#define gdFTEX_Unicode 0
6502#define gdFTEX_Shift_JIS 1
6503#define gdFTEX_Big5 2
6504#define gdFTEX_Adobe_Custom 3
6507#define gdFTEX_MacRoman gdFTEX_Adobe_Custom
6705gdImageFilledArc(gdImagePtr
im,
int cx,
int cy,
int w,
int h,
int s,
int e,
int color,
int style);
6722gdImageArc(gdImagePtr
im,
int cx,
int cy,
int w,
int h,
int s,
int e,
int color);
6760BGD_DECLARE(
void) gdImageLine(gdImagePtr
im,
int x1,
int y1,
int x2,
int y2,
int color);
6764BGD_DECLARE(
void) gdImageDashedLine(gdImagePtr
im,
int x1,
int y1,
int x2,
int y2,
int color);
6780BGD_DECLARE(
void)
gdImageRectangle(gdImagePtr
im,
int x1,
int y1,
int x2,
int y2,
int color);
6808BGD_DECLARE(
void)
gdImageSetClip(gdImagePtr
im,
int x1,
int y1,
int x2,
int y2);
6821BGD_DECLARE(
void)
gdImageGetClip(gdImagePtr
im,
int *x1P,
int *y1P,
int *x2P,
int *y2P);
6897gdImageFillToBorder(gdImagePtr
im,
int x,
int y,
int border,
int color);
6907BGD_DECLARE(
void) gdImageFill(gdImagePtr
im,
int x,
int y,
int color);
6927gdImageCopy(gdImagePtr dst, gdImagePtr src,
int dstX,
int dstY,
int srcX,
int srcY,
int w,
int h);
6949gdImageCopyMerge(gdImagePtr dst, gdImagePtr src,
int dstX,
int dstY,
int srcX,
int srcY,
int w,
6974gdImageCopyMergeGray(gdImagePtr dst, gdImagePtr src,
int dstX,
int dstY,
int srcX,
int srcY,
int w,
6998gdImageCopyResized(gdImagePtr dst, gdImagePtr src,
int dstX,
int dstY,
int srcX,
int srcY,
int dstW,
6999 int dstH,
int srcW,
int srcH);
7023 int dstW,
int dstH,
int srcW,
int srcH);
7043gdImageCopyRotated(gdImagePtr dst, gdImagePtr src,
double dstX,
double dstY,
int srcX,
int srcY,
7044 int srcWidth,
int srcHeight,
int angle);
7086BGD_DECLARE(
void) gdImageAlphaBlending(gdImagePtr
im,
int alphaBlendingArg);
7098BGD_DECLARE(
void) gdImageSaveAlpha(gdImagePtr
im,
int saveAlphaArg);
7132BGD_DECLARE(gdImagePtr)
7202BGD_DECLARE(gdImagePtr)
7300BGD_DECLARE(
int)
gdImageScatterColor(gdImagePtr
im,
int sub,
int plus,
int colors[],
unsigned int num_colors);
7430gdImageConvolution(gdImagePtr src,
float filter[3][3],
float filter_div,
float offset);
7446gdImageColor(gdImagePtr src,
const int red,
const int green,
const int blue,
const int alpha);
7558BGD_DECLARE(gdImagePtr)
7577#define gdImageTrueColor(im) ((im)->trueColor)
7587#define gdImageSX(im) ((im)->sx)
7597#define gdImageSY(im) ((im)->sy)
7609#define gdImageColorsTotal(im) ((im)->colorsTotal)
7620#define gdImageRed(im, c) ((im)->trueColor ? gdTrueColorGetRed(c) : (im)->red[(c)])
7631#define gdImageGreen(im, c) ((im)->trueColor ? gdTrueColorGetGreen(c) : (im)->green[(c)])
7642#define gdImageBlue(im, c) ((im)->trueColor ? gdTrueColorGetBlue(c) : (im)->blue[(c)])
7653#define gdImageAlpha(im, c) ((im)->trueColor ? gdTrueColorGetAlpha(c) : (im)->alpha[(c)])
7666#define gdImageGetTransparent(im) ((im)->transparent)
7682#define gdImageGetInterlaced(im) ((im)->interlace)
7701#define gdImagePalettePixel(im, x, y) (im)->pixels[(y)][(x)]
7720#define gdImageTrueColorPixel(im, x, y) (im)->tpixels[(y)][(x)]
7734#define gdImageResolutionX(im) (im)->res_x
7748#define gdImageResolutionY(im) (im)->res_y
7800BGD_DECLARE(
void *) gdDPExtractData(gdIOCtxPtr ctx,
int *size);
7812#define GD2_CHUNKSIZE 128
7814#define GD2_CHUNKSIZE_MIN 64
7816#define GD2_CHUNKSIZE_MAX 4096
7823#define GD2_FMT_RAW 1
7825#define GD2_FMT_COMPRESSED 2
7835#define GD_CMP_IMAGE 1
7836#define GD_CMP_NUM_COLORS 2
7837#define GD_CMP_COLOR 4
7838#define GD_CMP_SIZE_X 8
7839#define GD_CMP_SIZE_Y 16
7840#define GD_CMP_TRANSPARENT 32
7841#define GD_CMP_BACKGROUND 64
7842#define GD_CMP_INTERLACE 128
7843#define GD_CMP_TRUECOLOR 256
7891gdImagePerceptualDiff(gdImagePtr image1, gdImagePtr image2,
double threshold,
7893 gdImagePtr *diff_image,
8009BGD_DECLARE(gdImagePtr)
8033BGD_DECLARE(gdImagePtr)
8105BGD_DECLARE(gdImagePtr)
8106gdImageScale(
const gdImagePtr src,
const unsigned int new_width,
const unsigned int new_height);
8225BGD_DECLARE(gdImagePtr)
8271 unsigned int target_height,
gdRectPtr crop);
8291BGD_DECLARE(gdImagePtr)
8325BGD_DECLARE(
int)
gdAffineInvert(
double dst[6],
const double src[6]);
8338gdAffineFlip(
double dst_affine[6],
const double src_affine[6],
const int flip_h,
const int flip_v);
8353gdAffineConcat(
double dst[6],
const double m1[6],
const double m2[6]);
8373gdAffineScale(
double dst[6],
const double scale_x,
const double scale_y);
8386BGD_DECLARE(
int)
gdAffineRotate(
double dst[6],
const double angle);
8450gdAffineEqual(
const double matrix1[6],
const double matrix2[6]);
8472 const double affine[6]);
8495 gdRectPtr src_region,
const double affine[6]);
8517#define GD_RESOLUTION 96
8520BGD_DECLARE(
int) gdMajorVersion(
void);
8521BGD_DECLARE(
int) gdMinorVersion(
void);
8522BGD_DECLARE(
int) gdReleaseVersion(
void);
8523BGD_DECLARE(
const char *) gdExtraVersion(
void);
8524BGD_DECLARE(
const char *) gdVersionString(
void);
int gdImageTrueColorToPalette(gdImagePtr im, int ditherFlag, int colorsWanted)
Converts a truecolor image to a palette image.
Definition gd_topal.c:1382
int gdImageTrueColorToPaletteSetMethod(gdImagePtr im, int method, int speed)
Selects quantization method used for subsequent gdImageTrueColorToPalette calls.
Definition gd_topal.c:1339
gdImagePtr gdImageCreatePaletteFromTrueColor(gdImagePtr im, int ditherFlag, int colorsWanted)
Converts a truecolor image to a palette-based image.
Definition gd_topal.c:1372
int gdImagePaletteToTrueColor(gdImagePtr src)
Converts a palette-based image to a truecolor image.
Definition gd.c:3611
gdImagePtr gdImageNeuQuant(gdImagePtr im, const int max_color, int sample_factor)
Creates a new palette image from a truecolor image.
Definition gd_nnquant.c:512
void gdImageTrueColorToPaletteSetQuality(gdImagePtr im, int min_quality, int max_quality)
Sets the quality range for subsequent gdImageTrueColorToPalette calls.
Definition gd_topal.c:1359
gdPaletteQuantizationMethod
Definition gd.h:7111
@ GD_QUANT_LIQ
Definition gd.h:7115
@ GD_QUANT_JQUANT
Definition gd.h:7113
@ GD_QUANT_DEFAULT
Definition gd.h:7112
@ GD_QUANT_NEUQUANT
Definition gd.h:7114
void gdImageString(gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color)
Draws a character string.
Definition gd.c:1595
void gdImageCharUp(gdImagePtr im, gdFontPtr f, int x, int y, int c, int color)
Draws a single character rotated 90 degrees counterclockwise.
Definition gd.c:1566
void gdImageStringUp16(gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color)
Draws a string rotated 90 degrees counterclockwise with 16-bit characters.
Definition gd.c:1633
gdFontPtr gdFontGetLarge(void)
Gets the built-in large font.
Definition gdfontl.c:4644
gdFontPtr gdFontGetGiant(void)
Gets the built-in giant font.
Definition gdfontg.c:4387
gdFontPtr gdFontGetTiny(void)
Gets the built-in tiny font.
Definition gdfontt.c:2598
void gdImageStringUp(gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color)
Draws a string rotated 90 degrees counterclockwise.
Definition gd.c:1607
gdFontPtr gdFontGetMediumBold(void)
Gets the built-in medium bold font.
Definition gdfontmb.c:3877
void gdImageString16(gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color)
Draws a character string with 16-bit characters.
Definition gd.c:1621
gdFontPtr gdFontGetSmall(void)
Gets the built-in small font.
Definition gdfonts.c:3877
void gdImageChar(gdImagePtr im, gdFontPtr f, int x, int y, int c, int color)
Draws a single character.
Definition gd.c:1538
int gdImageScatterColor(gdImagePtr im, int sub, int plus, int colors[], unsigned int num_colors)
Scatter an image with specified colors.
Definition gd_filter.c:65
int gdImageScatterEx(gdImagePtr im, gdScatterPtr s)
Scatter an image with extended options.
Definition gd_filter.c:77
int gdImageEdgeDetectQuick(gdImagePtr src)
Edge detection of an image.
Definition gd_filter.c:592
int gdImageNegate(gdImagePtr src)
Invert an image.
Definition gd_filter.c:193
gdPixelateMode
gdImagePixelate options
Definition gd.h:7243
int gdImageConvolution(gdImagePtr src, float filter[3][3], float filter_div, float offset)
Apply a convolution matrix to an image.
Definition gd_filter.c:409
int gdImageGaussianBlur(gdImagePtr im)
Gaussian blur of an image Performs a Gaussian blur of radius 1 on the image. The image is modified in...
Definition gd_filter.c:599
int gdImageEmboss(gdImagePtr im)
Emboss an image.
Definition gd_filter.c:606
int gdImagePixelate(gdImagePtr im, int block_size, const unsigned int mode)
Pixelates an image.
Definition gd_filter.c:137
int gdImageColor(gdImagePtr src, const int red, const int green, const int blue, const int alpha)
Change channel values of an image.
Definition gd_filter.c:366
int gdImageMeanRemoval(gdImagePtr im)
Mean removal of an image.
Definition gd_filter.c:618
int gdImageContrast(gdImagePtr src, double contrast)
Change the contrast of an image.
Definition gd_filter.c:306
gdImagePtr gdImageCopyGaussianBlurred(gdImagePtr src, int radius, double sigma)
Return a copy of the source image src blurred according to the parameters using the Gaussian Blur alg...
Definition gd_filter.c:727
int gdImageBrightness(gdImagePtr src, int brightness)
Change the brightness of an image.
Definition gd_filter.c:262
int gdImageSmooth(gdImagePtr im, float weight)
Smooth an image.
Definition gd_filter.c:625
int gdImageGrayScale(gdImagePtr src)
Convert an image to grayscale.
Definition gd_filter.c:224
int gdImageSelectiveBlur(gdImagePtr src)
Selective blur of an image.
Definition gd_filter.c:471
int gdImageScatter(gdImagePtr im, int sub, int plus)
Scatter an image.
Definition gd_filter.c:53
@ GD_PIXELATE_UPPERLEFT
Definition gd.h:7244
@ GD_PIXELATE_AVERAGE
Definition gd.h:7245
int gdImageGetTrueColorPixel(gdImagePtr im, int x, int y)
Gets the truecolor value of the pixel at the specified coordinates.
Definition gd.c:1153
int gdImageGetPixel(gdImagePtr im, int x, int y)
Gets the color of the pixel at the specified coordinates.
Definition gd.c:1140
void gdImageSetPixel(gdImagePtr im, int x, int y, int color)
Sets the pixel at the specified coordinates to the given color. Replaces or blends with the backgroun...
Definition gd.c:965
void gdImageSetTile(gdImagePtr im, gdImagePtr tile)
Sets the tile for following drawing operations.
Definition gd.c:3189
void gdImageFilledPolygon(gdImagePtr im, gdPointPtr p, int n, int c)
Draws a filled polygon.
Definition gd.c:3017
void gdImageRectangle(gdImagePtr im, int x1, int y1, int x2, int y2, int color)
Draws a rectangle.
Definition gd.c:2239
void gdImageFilledRectangle(gdImagePtr im, int x1, int y1, int x2, int y2, int color)
Draws a filled rectangle.
Definition gd.c:2403
void gdImageSetBrush(gdImagePtr im, gdImagePtr brush)
Sets the brush for following drawing operations.
Definition gd.c:3175
struct gdRect * gdRectPtr
void gdImageFilledArc(gdImagePtr im, int cx, int cy, int w, int h, int s, int e, int color, int style)
Draws a filled arc or a filled chord.
Definition gd.c:1665
void gdImageOpenPolygon(gdImagePtr im, gdPointPtr p, int n, int c)
Draws an open polygon.
Definition gd.c:2992
void gdImageSetAntiAliased(gdImagePtr im, int c)
Set the color for subsequent anti-aliased drawing.
Definition gd.c:3203
void gdImageSetClip(gdImagePtr im, int x1, int y1, int x2, int y2)
Sets the clipping rectangle.
Definition gd.c:3416
void gdImageSetAntiAliasedDontBlend(gdImagePtr im, int c, int dont_blend)
Definition gd.c:3210
void gdImageArc(gdImagePtr im, int cx, int cy, int w, int h, int s, int e, int color)
Draws an arc or a chord.
Definition gd.c:1659
void gdImageEllipse(gdImagePtr im, int cx, int cy, int w, int h, int color)
Draw an ellipse, stroke only.
Definition gd.c:1781
void gdImageSetThickness(gdImagePtr im, int thickness)
Definition gd.c:3173
void gdImageGetClip(gdImagePtr im, int *x1P, int *y1P, int *x2P, int *y2P)
Gets the current clipping rectangle.
Definition gd.c:3448
void gdImagePolygon(gdImagePtr im, gdPointPtr p, int n, int c)
Draws a closed polygon.
Definition gd.c:2982
void gdImageFilledEllipse(gdImagePtr im, int cx, int cy, int w, int h, int color)
Draw a filled ellipse.
Definition gd.c:1828
void gdImageSetStyle(gdImagePtr im, int *style, int noOfPixels)
Sets the style for following drawing operations.
Definition gd.c:3156
struct gdPoint * gdPointPtr
void gdImageAABlend(gdImagePtr im)
Definition gd.c:1173
void gdImageCopyResized(gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH)
Copy a resized area from an image to another image.
Definition gd.c:2693
gdImagePtr gdImageClone(gdImagePtr src)
Clones an image.
Definition gd.c:2412
void gdImageCopyResampled(gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH)
Copy a resampled area from an image to another image.
Definition gd.c:2889
void gdImageCopyMerge(gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h, int pct)
Copy an area of an image to another image ignoring alpha.
Definition gd.c:2589
void gdImageCopyMergeGray(gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h, int pct)
Copy an area of an image to another image ignoring alpha.
Definition gd.c:2634
void gdImageCopy(gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h)
Copy an area of an image to another image.
Definition gd.c:2503
void gdImageCopyRotated(gdImagePtr dst, gdImagePtr src, double dstX, double dstY, int srcX, int srcY, int srcWidth, int srcHeight, int angle)
Copy a rotated area from an image to another image.
Definition gd.c:2809
void gdImageInterlace(gdImagePtr im, int interlaceArg)
Sets whether an image is interlaced.
Definition gd.c:3217
int gdFontCacheSetup(void)
Set up the font cache.
void gdFreeFontCache(void)
Alias of gdFontCacheShutdown.
char * gdImageStringTTF(gdImagePtr im, int *brect, int fg, const char *fontlist, double ptsize, double angle, int x, int y, const char *string)
Draws a string using FreeType 2 fonts. Alias of gdImageStringFT. Provided for backwards compatibility...
void gdFontCacheShutdown(void)
Shut down the font cache and free the allocated resources.
char * gdImageStringFT(gdImagePtr im, int *brect, int fg, const char *fontlist, double ptsize, double angle, int x, int y, const char *string)
Render an UTF-8 string onto a gd image.
Definition gdft.c:62
int gdFTUseFontConfig(int flag)
Enable or disable fontconfig by default.
Definition gdft.c:1670
char * gdImageStringFTEx(gdImagePtr im, int *brect, int fg, const char *fontlist, double ptsize, double angle, int x, int y, const char *string, gdFTStringExtraPtr strex)
Draws a string using FreeType 2 fonts with additional parameters.
Definition gdft.c:44
void gdImageAvifCtx(gdImagePtr im, gdIOCtxPtr outfile, int quality, int speed)
Write a truecolor image as AVIF data to an IO context.
int gdImageAvifWithOptions(gdImagePtr im, FILE *outFile, const gdAvifWriteOptions *options)
Write AVIF data to a stdio stream using write options.
Definition gd_avif.c:769
gdImagePtr gdImageCreateFromAvifCtx(gdIOCtxPtr infile)
Create a truecolor image from AVIF data in an IO context.
void gdAvifWriteOptionsInit(gdAvifWriteOptions *options)
Initialize AVIF write options with gd defaults.
Definition gd_avif.c:674
void * gdImageAvifPtrEx(gdImagePtr im, int *size, int quality, int speed)
Encode a truecolor image as AVIF data in memory.
Definition gd_avif.c:740
int gdAvifGetInfo(FILE *inFile, gdAvifInfo *info)
Read AVIF information from a stdio stream without closing it. *.
Definition gd_avif_metadata.c:253
void gdImageAvif(gdImagePtr im, FILE *outFile)
Write a truecolor image as AVIF data to a stdio stream.
Definition gd_avif.c:724
int gdImageAvifCtxWithOptions(gdImagePtr im, gdIOCtxPtr outfile, const gdAvifWriteOptions *options)
Write AVIF data to a gdIOCtx using write options.
gdImagePtr gdImageCreateFromAvifPtr(int size, void *data)
Create a truecolor image from AVIF data in memory.
Definition gd_avif.c:691
void * gdImageAvifPtrWithOptions(gdImagePtr im, int *size, const gdAvifWriteOptions *options)
Encode a truecolor image as AVIF data in memory using write options.
Definition gd_avif.c:750
void gdImageAvifEx(gdImagePtr im, FILE *outFile, int quality, int speed)
Write a truecolor image as AVIF data to a stdio stream.
Definition gd_avif.c:715
void * gdImageAvifPtr(gdImagePtr im, int *size)
Encode a truecolor image as AVIF data in memory.
Definition gd_avif.c:731
int gdAvifGetInfoCtx(gdIOCtxPtr in, gdAvifInfo *info)
Read AVIF information from a gdIOCtx without closing it.
Definition gd_avif_metadata.c:246
void gdAvifInfoInit(gdAvifInfo *info)
Initialize AVIF information and clear the metadata pointer.
Definition gd_avif_metadata.c:231
int gdAvifGetInfoPtr(int size, const void *data, gdAvifInfo *info)
Read AVIF information from memory without taking ownership.
Definition gd_avif_metadata.c:238
gdImagePtr gdImageCreateFromAvif(FILE *inFile)
Create a truecolor image from AVIF data in a stdio stream.
Definition gd_avif.c:685
@ GD_AVIF_CHROMA_SUBSAMPLING_YUV420
Definition gd.h:3465
@ GD_AVIF_CHROMA_SUBSAMPLING_AUTO
Definition gd.h:3464
@ GD_AVIF_CHROMA_SUBSAMPLING_YUV444
Definition gd.h:3466
void * gdImageBmpPtr(gdImagePtr im, int *size, int compression)
Write an image as BMP data to a newly allocated memory buffer.
Definition gd_bmp.c:269
void gdBmpWriteOptionsInit(gdBmpWriteOptions *options)
Initialize a gdBmpWriteOptions structure to default values.
Definition gd_bmp.c:220
void gdImageBmp(gdImagePtr im, FILE *outFile, int compression)
Write an image as BMP data to a stdio file.
Definition gd_bmp.c:288
gdImagePtr gdImageCreateFromBmpCtx(gdIOCtxPtr infile)
Create an image from BMP data read through a gdIOCtx.
Definition gd_bmp.c:1061
int gdImageBmpCtxWithOptions(gdImagePtr im, gdIOCtxPtr out, const gdBmpWriteOptions *options)
Write an image as BMP data to a gdIOCtx with explicit options.
Definition gd_bmp.c:230
void * gdImageBmpPtrEx(gdImagePtr im, int *size, int bpp, int compression, int flags)
Write an image as BMP data to a newly allocated memory buffer.
Definition gd_bmp.c:278
int gdBmpGetInfoPtr(int size, const void *data, gdBmpInfo *info)
Read BMP file information from a memory buffer.
Definition gd_bmp.c:203
int gdBmpGetInfoCtx(gdIOCtxPtr infile, gdBmpInfo *info)
Read BMP file information from a gdIOCtx.
Definition gd_bmp.c:181
gdImagePtr gdImageCreateFromBmpPtr(int size, void *data)
Create an image from a BMP memory buffer.
Definition gd_bmp.c:1050
void gdBmpInfoInit(gdBmpInfo *info)
Initialize a gdBmpInfo structure to default values.
Definition gd_bmp.c:132
void gdImageBmpCtxEx(gdImagePtr im, gdIOCtxPtr out, int bpp, int compression, int flags)
Write an image as BMP data to a gdIOCtx.
Definition gd_bmp.c:317
gdImagePtr gdImageCreateFromBmp(FILE *inFile)
Create an image from a BMP stdio file.
Definition gd_bmp.c:1039
int gdBmpGetInfo(FILE *infile, gdBmpInfo *info)
Read BMP file information from a stdio file.
Definition gd_bmp.c:186
void gdImageBmpCtx(gdImagePtr im, gdIOCtxPtr out, int compression)
Write an image as BMP data to a gdIOCtx.
Definition gd_bmp.c:308
void * gdImageBmpPtrWithOptions(gdImagePtr im, int *size, const gdBmpWriteOptions *options)
Write an image as BMP data to a newly allocated memory buffer with explicit options.
Definition gd_bmp.c:256
int gdImageBmpWithOptions(gdImagePtr im, FILE *outFile, const gdBmpWriteOptions *options)
Write an image as BMP data to a stdio file with explicit options.
Definition gd_bmp.c:240
void gdImageBmpEx(gdImagePtr im, FILE *outFile, int bpp, int compression, int flags)
Write an image as BMP data to a stdio file.
Definition gd_bmp.c:297
gdImagePtr gdImageCreateFromGd2Ctx(gdIOCtxPtr in)
Create an image from GD2 data read through a gdIOCtx.
Definition gd_gd2.c:969
gdImagePtr gdImageCreateFromGd2Part(FILE *in, int srcx, int srcy, int w, int h)
Create an image from a rectangular region of a GD2 stdio file.
Definition gd_gd2.c:977
gdImagePtr gdImageCreateFromGd2Ptr(int size, void *data)
Create an image from a GD2 memory buffer.
Definition gd_gd2.c:988
gdImagePtr gdImageCreateFromGd2PartCtx(gdIOCtxPtr in, int srcx, int srcy, int w, int h)
Create an image from a rectangular GD2 region read through a gdIOCtx.
gdImagePtr gdImageCreateFromGd2PartPtr(int size, void *data, int srcx, int srcy, int w, int h)
Create an image from a rectangular region of a GD2 memory buffer.
Definition gd_gd2.c:1009
void gdImageGd2(gdImagePtr im, FILE *out, int cs, int fmt)
Write an image as GD2 data to a stdio file.
Definition gd_gd2.c:1021
void * gdImageGd2Ptr(gdImagePtr im, int cs, int fmt, int *size)
Write an image as GD2 data to a newly allocated memory buffer.
Definition gd_gd2.c:1030
gdImagePtr gdImageCreateFromGd2(FILE *in)
Create an image from a GD2 stdio file.
Definition gd_gd2.c:962
void * gdImageGdPtr(gdImagePtr im, int *size)
Write an image as GD data to a newly allocated memory buffer.
Definition gd_gd.c:376
gdImagePtr gdImageCreateFromGdPtr(int size, void *data)
Create an image from a GD memory buffer.
Definition gd_gd.c:354
void gdImageGd(gdImagePtr im, FILE *out)
Write an image as GD data to a stdio file.
Definition gd_gd.c:369
gdImagePtr gdImageCreateFromGdCtx(gdIOCtxPtr in)
Create an image from GD data read through a gdIOCtx.
Definition gd_gd.c:362
gdImagePtr gdImageCreateFromGd(FILE *in)
Create an image from a GD stdio file.
Definition gd_gd.c:347
void gdGifReadClose(gdGifReadPtr gif)
Close an animated GIF reader.
Definition gd_gif_in.c:700
gdImagePtr gdImageCreateFromGifCtx(gdIOCtxPtr in)
Create an image from the first frame of GIF data read through a gdIOCtx.
Definition gd_gif_in.c:979
void * gdImageGifPtr(gdImagePtr im, int *size)
Write an image as GIF data to a newly allocated memory buffer.
Definition gd_gif_out.c:111
int gdGifGetInfo(FILE *file, gdGifInfo *info)
Read logical screen and loop information from a GIF stdio file.
Definition gd_gif_in.c:754
void gdImageGifAnimAdd(gdImagePtr im, FILE *outFile, int LocalCM, int LeftOfs, int TopOfs, int Delay, int Disposal, gdImagePtr previm)
Add a frame to a GIF animation written to a stdio file.
Definition gd_gif_out.c:275
gdImagePtr gdImageCreateFromGif(FILE *fd)
Create an image from the first frame of a GIF stdio file.
Definition gd_gif_in.c:953
void gdImageGifCtx(gdImagePtr im, gdIOCtxPtr out)
Write an image as GIF data to a gdIOCtx.
Definition gd_gif_out.c:135
void * gdImageGifAnimEndPtr(int *size)
Finish a GIF animation into a newly allocated memory buffer.
Definition gd_gif_out.c:518
int gdGifReadGetInfo(gdGifReadPtr gif, gdGifInfo *info)
Read logical screen and loop information from a GIF reader.
Definition gd_gif_in.c:717
int gdGifIsAnimated(FILE *fd)
Test whether a seekable GIF stdio file contains more than one frame.
Definition gd_gif_in.c:580
void gdImageGifAnimEndCtx(gdIOCtxPtr out)
Finish writing a GIF animation to a gdIOCtx.
void gdImageGifAnimBeginCtx(gdImagePtr im, gdIOCtxPtr out, int GlobalCM, int Loops)
Begin writing a GIF animation to a gdIOCtx.
Definition gd_gif_out.c:193
gdGifReadPtr gdGifReadOpenPtr(int size, void *data)
Open an animated GIF reader from a memory buffer.
Definition gd_gif_in.c:656
gdGifReadPtr gdGifReadOpenCtx(gdIOCtxPtr in)
Open an animated GIF reader from a gdIOCtx.
Definition gd_gif_in.c:677
int gdGifReadNextImage(gdGifReadPtr gif, gdGifFrameInfo *info, gdImagePtr *image)
Read the next GIF frame composited onto the logical screen.
Definition gd_gif_in.c:918
int gdGifIsAnimatedCtx(gdIOCtxPtr in)
Test whether a seekable GIF gdIOCtx contains more than one frame.
Definition gd_gif_in.c:604
void gdImageGifAnimBegin(gdImagePtr im, FILE *outFile, int GlobalCM, int Loops)
Begin writing a GIF animation to a stdio file.
Definition gd_gif_out.c:183
gdGifReadPtr gdGifReadOpen(FILE *fd)
Open an animated GIF reader from a stdio file.
Definition gd_gif_in.c:635
void * gdImageGifAnimBeginPtr(gdImagePtr im, int *size, int GlobalCM, int Loops)
Begin writing a GIF animation to a newly allocated memory buffer.
Definition gd_gif_out.c:170
void * gdImageGifAnimAddPtr(gdImagePtr im, int *size, int LocalCM, int LeftOfs, int TopOfs, int Delay, int Disposal, gdImagePtr previm)
Add a GIF animation frame to a newly allocated memory buffer.
Definition gd_gif_out.c:258
int gdGifIsAnimatedPtr(int size, void *data)
Test whether a GIF memory buffer contains more than one frame.
Definition gd_gif_in.c:618
int gdGifGetInfoCtx(gdIOCtxPtr input, gdGifInfo *info)
Read logical screen and loop information from a seekable gdIOCtx.
Definition gd_gif_in.c:734
void gdImageGif(gdImagePtr im, FILE *out)
Write an image as GIF data to a stdio file.
Definition gd_gif_out.c:126
int gdGifReadNextFrame(gdGifReadPtr gif, gdGifFrameInfo *info, gdImagePtr *frame)
Read the next raw GIF frame.
Definition gd_gif_in.c:794
void gdImageGifAnimAddCtx(gdImagePtr im, gdIOCtxPtr out, int LocalCM, int LeftOfs, int TopOfs, int Delay, int Disposal, gdImagePtr previm)
Add a frame to a GIF animation written to a gdIOCtx.
Definition gd_gif_out.c:300
int gdGifGetInfoPtr(int size, const void *data, gdGifInfo *info)
Read logical screen and loop information from a GIF memory buffer.
Definition gd_gif_in.c:771
struct gdGifReadStruct * gdGifReadPtr
Opaque animated GIF reader handle.
Definition gd.h:1330
gdImagePtr gdImageCreateFromGifPtr(int size, void *data)
Create an image from the first frame of a GIF memory buffer.
Definition gd_gif_in.c:967
void gdImageGifAnimEnd(FILE *outFile)
Finish writing a GIF animation to a stdio file.
Definition gd_gif_out.c:505
@ gdDisposalUnknown
Definition gd.h:1496
@ gdDisposalRestorePrevious
Definition gd.h:1499
@ gdDisposalNone
Definition gd.h:1497
@ gdDisposalRestoreBackground
Definition gd.h:1498
gdImagePtr gdImageCreateFromHeif(FILE *inFile)
Create a truecolor image from HEIF data in a stdio stream.
Definition gd_heif.c:580
void gdImageHeifCtx(gdImagePtr im, gdIOCtxPtr outfile, int quality, gdHeifCodec codec, gdHeifChroma chroma)
Write a truecolor image as HEIF data to an IO context.
gdImagePtr gdImageCreateFromHeifPtrWithOptions(int size, void *data, const gdHeifReadOptions *options)
Create a truecolor image from HEIF data in memory using read options.
Definition gd_heif.c:593
void gdHeifReadOptionsInit(gdHeifReadOptions *options)
Initialize HEIF read options with gd defaults.
Definition gd_heif.c:561
int gdImageHeifWithOptions(gdImagePtr im, FILE *outFile, const gdHeifWriteOptions *options)
Write HEIF data to a stdio stream using write options.
Definition gd_heif.c:650
int gdHeifGetInfoCtx(gdIOCtxPtr in, gdHeifInfo *info)
Read HEIF information from a gdIOCtx without closing it.
Definition gd_heif_metadata.c:333
const char * gdHeifChroma
HEIF chroma-subsampling string used by gdHeifWriteOptions::chroma.
Definition gd.h:3103
void gdImageHeifEx(gdImagePtr im, FILE *outFile, int quality, gdHeifCodec codec, gdHeifChroma chroma)
Write a truecolor image as HEIF data to a stdio stream.
Definition gd_heif.c:612
void * gdImageHeifPtrWithOptions(gdImagePtr im, int *size, const gdHeifWriteOptions *options)
Encode a truecolor image as HEIF data in memory using write options.
Definition gd_heif.c:633
gdHeifCodec
HEIF coding formats for gdHeifWriteOptions::codec.
Definition gd.h:3096
void gdImageHeif(gdImagePtr im, FILE *outFile)
Write a truecolor image as HEIF data to a stdio stream.
Definition gd_heif.c:617
int gdImageHeifCtxWithOptions(gdImagePtr im, gdIOCtxPtr outfile, const gdHeifWriteOptions *options)
Write HEIF data to a gdIOCtx using write options.
int gdHeifGetInfo(FILE *inFile, gdHeifInfo *info)
Read HEIF information from a stdio stream.
Definition gd_heif_metadata.c:340
int gdHeifGetInfoPtr(int size, const void *data, gdHeifInfo *info)
Read HEIF information from an in-memory buffer without taking ownership.
Definition gd_heif_metadata.c:325
void * gdImageHeifPtrEx(gdImagePtr im, int *size, int quality, gdHeifCodec codec, gdHeifChroma chroma)
Encode a truecolor image as HEIF data in memory.
Definition gd_heif.c:626
void * gdImageHeifPtr(gdImagePtr im, int *size)
Encode a truecolor image as HEIF data in memory.
Definition gd_heif.c:619
void gdHeifWriteOptionsInit(gdHeifWriteOptions *options)
Initialize HEIF write options with gd defaults.
Definition gd_heif.c:569
gdImagePtr gdImageCreateFromHeifPtr(int size, void *data)
Create a truecolor image from HEIF data in memory.
Definition gd_heif.c:586
gdImagePtr gdImageCreateFromHeifCtx(gdIOCtxPtr infile)
Create a truecolor image from HEIF data in an IO context.
void gdHeifInfoInit(gdHeifInfo *info)
Initialize HEIF information with gd defaults.
Definition gd_heif_metadata.c:318
@ GD_HEIF_CODEC_HEVC
Definition gd.h:3098
@ GD_HEIF_CODEC_UNKNOWN
Definition gd.h:3097
@ GD_HEIF_CODEC_AV1
Definition gd.h:3099
gdImagePtr gdImageCreateFromJpegPtrWithOptions(int size, void *data, const gdJpegReadOptions *options)
Create an image from a JPEG memory buffer using read options.
Definition gd_jpeg.c:1820
void * gdImageJpegPtr(gdImagePtr im, int *size, int quality)
Write an image as JPEG data to a newly allocated memory buffer.
Definition gd_jpeg.c:1738
void gdJpegInfoInit(gdJpegInfo *info)
Initialize a gdJpegInfo structure with default values.
Definition gd_jpeg.c:1654
const char * gdJpegGetVersionString()
Create an image from a JPEG memory buffer and collect metadata.
void * gdImageJpegPtrWithOptions(gdImagePtr im, int *size, const gdJpegWriteOptions *options)
Write an image as JPEG data to a memory buffer with metadata.
Definition gd_jpeg.c:1776
int gdJpegGetInfo(FILE *infile, gdJpegInfo *info)
Read JPEG header information from a stdio file.
Definition gd_jpeg.c:1680
gdImagePtr gdImageCreateFromJpegCtxWithOptions(gdIOCtxPtr infile, const gdJpegReadOptions *options)
Create an image from a JPEG gdIOCtx and collect metadata.
int gdJpegGetInfoCtx(gdIOCtxPtr infile, gdJpegInfo *info)
Read JPEG header information from a gdIOCtx.
Definition gd_jpeg.c:1688
gdImagePtr gdImageCreateFromJpeg(FILE *infile)
Create an image from a JPEG stdio file.
Definition gd_jpeg.c:1785
gdImagePtr gdImageCreateFromJpegPtr(int size, void *data)
Create an image from a JPEG memory buffer.
Definition gd_jpeg.c:1801
int gdImageJpegWithOptions(gdImagePtr im, FILE *out, const gdJpegWriteOptions *options)
Write an image as JPEG data to a gdIOCtx with metadata.
Definition gd_jpeg.c:1756
void gdJpegWriteOptionsInit(gdJpegWriteOptions *options)
Initialize JPEG write options with default values.
Definition gd_jpeg.c:1672
gdImagePtr gdImageCreateFromJpegCtx(gdIOCtxPtr infile)
Create an image from JPEG data read through a gdIOCtx.
gdImagePtr gdImageCreateFromJpegEx(FILE *infile, int ignore_warning)
Create an image from a JPEG stdio file, controlling warning handling.
Definition gd_jpeg.c:1793
void gdImageJpeg(gdImagePtr im, FILE *out, int quality)
Write an image as JPEG data to a stdio file.
Definition gd_jpeg.c:1730
int gdImageJpegCtxWithOptions(gdImagePtr im, gdIOCtxPtr out, const gdJpegWriteOptions *options)
Write an image as JPEG data to a gdIOCtx using write options.
int gdJpegGetInfoPtr(int size, const void *data, gdJpegInfo *info)
Read JPEG header information from a memory buffer.
Definition gd_jpeg.c:1696
gdImagePtr gdImageCreateFromJpegPtrEx(int size, void *data, int ignore_warning)
Create an image from a JPEG memory buffer, controlling warning handling.
Definition gd_jpeg.c:1810
void gdJpegReadOptionsInit(gdJpegReadOptions *options)
Initialize JPEG read options with default values.
Definition gd_jpeg.c:1661
gdImagePtr gdImageCreateFromJpegCtxEx(gdIOCtxPtr infile, int ignore_warning)
Create an image from a JPEG gdIOCtx, controlling warning handling.
@ GD_JPEG_DENSITY_UNIT_NONE
Definition gd.h:1791
@ GD_JPEG_DENSITY_UNIT_DPCM
Definition gd.h:1793
@ GD_JPEG_DENSITY_UNIT_DPI
Definition gd.h:1792
@ GD_JPEG_DCT_FAST
Definition gd.h:1802
@ GD_JPEG_DCT_SLOW
Definition gd.h:1801
@ GD_JPEG_DCT_DEFAULT
Definition gd.h:1800
@ GD_JPEG_DCT_FLOAT
Definition gd.h:1803
@ GD_JPEG_COLOR_SPACE_RGB
Definition gd.h:1781
@ GD_JPEG_COLOR_SPACE_GRAYSCALE
Definition gd.h:1780
@ GD_JPEG_COLOR_SPACE_YCBCR
Definition gd.h:1782
@ GD_JPEG_COLOR_SPACE_UNKNOWN
Definition gd.h:1779
@ GD_JPEG_COLOR_SPACE_CMYK
Definition gd.h:1783
@ GD_JPEG_COLOR_SPACE_YCCK
Definition gd.h:1784
void gdImageJxlCtxEx(gdImagePtr im, gdIOCtxPtr outfile, int lossless, float distance, int effort)
Write an image as JPEG XL data to a gdIOCtx with encoder settings.
Definition gd_jxl.c:1825
void gdJxlReadClose(gdJxlReadPtr reader)
Close a JPEG XL multi-image reader.
Definition gd_jxl.c:1894
gdJxlReadPtr gdJxlReadOpenPtr(int size, void *data, const gdJxlReadOptions *options)
Open a JPEG XL multi-image/animation reader from a memory buffer.
Definition gd_jxl.c:1853
struct gdJxlRead * gdJxlReadPtr
Opaque JPEG XL multi-image/animation reader handle.
Definition gd.h:2764
void gdImageJxl(gdImagePtr im, FILE *outFile)
Write an image as JPEG XL data to a stdio file.
Definition gd_jxl.c:1741
int gdJxlReadGetInfo(gdJxlReadPtr reader, gdJxlInfo *info)
Get JPEG XL image or animation information from a reader.
Definition gd_jxl.c:1862
gdImagePtr gdImageCreateFromJxlPtr(int size, void *data)
Create a truecolor image from a JPEG XL memory buffer.
Definition gd_jxl.c:1726
void gdImageJxlCtx(gdImagePtr im, gdIOCtxPtr outfile)
Write an image as JPEG XL data to a gdIOCtx.
Definition gd_jxl.c:1817
gdImagePtr gdImageCreateFromJxlCtx(gdIOCtxPtr infile)
Create a truecolor image from JPEG XL data read through a gdIOCtx.
void * gdImageJxlPtr(gdImagePtr im, int *size)
Write an image as JPEG XL data to a newly allocated memory buffer.
Definition gd_jxl.c:1797
void gdImageJxlEx(gdImagePtr im, FILE *outFile, int lossless, float distance, int effort)
Write an image as JPEG XL data to a stdio file with encoder settings.
Definition gd_jxl.c:1787
int gdImageJxlWithOptions(gdImagePtr im, FILE *outFile, const gdJxlWriteOptions *options)
Write an image as JPEG XL data to a stdio file with write options.
Definition gd_jxl.c:1749
gdJxlWritePtr gdJxlWriteOpen(FILE *outFile, const gdJxlAnimWriteOptions *options)
Open a JPEG XL multi-image/animation writer for a stdio file.
Definition gd_jxl.c:1900
gdJxlWritePtr gdJxlWriteOpenCtx(gdIOCtxPtr outCtx, const gdJxlAnimWriteOptions *options)
Open a JPEG XL multi-image/animation writer for a gdIOCtx.
Definition gd_jxl.c:1908
void * gdJxlWritePtrFinish(gdJxlWritePtr writer, int *size)
Finish a JPEG XL multi-image/animation memory writer and return the encoded buffer.
Definition gd_jxl.c:1938
void gdJxlReadOptionsInit(gdJxlReadOptions *options)
Initialize JPEG XL multi-image/animation read options with gd defaults.
Definition gd_jxl.c:1690
void gdJxlWriteClose(gdJxlWritePtr writer)
Add a full-canvas image to a JPEG XL multi-image/animation writer.
Definition gd_jxl.c:1932
void gdJxlAnimWriteOptionsInit(gdJxlAnimWriteOptions *options)
Initialize JPEG XL multi-image/animation write options with gd defaults.
Definition gd_jxl.c:1709
gdJxlWritePtr gdJxlWriteOpenPtr(const gdJxlAnimWriteOptions *options)
Open a JPEG XL multi-image/animation writer that returns a memory buffer.
Definition gd_jxl.c:1916
int gdJxlWriteAddImage(gdJxlWritePtr writer, gdImagePtr image, int delay_ms)
Add a full-canvas image to a JPEG XL multi-image/animation writer.
Definition gd_jxl.c:1923
int gdJxlReadNextFrame(gdJxlReadPtr reader, gdJxlFrameInfo *info, gdImagePtr *frame)
Read the next raw JPEG XL frame rectangle.
Definition gd_jxl.c:1883
int gdImageJxlCtxWithOptions(gdImagePtr im, gdIOCtxPtr outfile, const gdJxlWriteOptions *options)
Write an image as JPEG XL data to a gdIOCtx with write options.
Definition gd_jxl.c:1767
gdImagePtr gdImageCreateFromJxl(FILE *inFile)
Create a truecolor image from a JPEG XL stdio file.
Definition gd_jxl.c:1719
struct gdJxlWrite * gdJxlWritePtr
Opaque JPEG XL multi-image/animation writer handle.
Definition gd.h:2773
void * gdImageJxlPtrEx(gdImagePtr im, int *size, int lossless, float distance, int effort)
Write an image as JPEG XL data to a newly allocated memory buffer with encoder settings.
Definition gd_jxl.c:1806
int gdJxlReadNextImage(gdJxlReadPtr reader, int *delay_ms, gdImagePtr *image)
Read the next coalesced JPEG XL image.
Definition gd_jxl.c:1871
gdJxlReadPtr gdJxlReadOpenCtx(gdIOCtxPtr inCtx, const gdJxlReadOptions *options)
Open a JPEG XL multi-image/animation reader from a gdIOCtx.
Definition gd_jxl.c:1844
void gdJxlWriteOptionsInit(gdJxlWriteOptions *options)
Initialize JPEG XL still-image write options with gd defaults.
Definition gd_jxl.c:1699
void * gdImageJxlPtrWithOptions(gdImagePtr im, int *size, const gdJxlWriteOptions *options)
Write an image as JPEG XL data to a newly allocated memory buffer with write options.
Definition gd_jxl.c:1777
int gdJxlReadGetMetadata(gdJxlReadPtr reader, gdImageMetadata *metadata)
Extract supported still-image metadata from a JPEG XL reader.
Definition gd_jxl.c:1758
gdJxlReadPtr gdJxlReadOpen(FILE *inFile, const gdJxlReadOptions *options)
Open a JPEG XL multi-image/animation reader from a stdio file.
Definition gd_jxl.c:1836
@ gdJxlBlendAdd
Definition gd.h:2806
@ gdJxlBlendReplace
Definition gd.h:2805
@ gdJxlBlendMuladd
Definition gd.h:2808
@ gdJxlBlendBlend
Definition gd.h:2807
@ gdJxlBlendMul
Definition gd.h:2809
void * gdImagePngPtrEx(gdImagePtr im, int *size, int level)
Write an image as PNG data to a memory buffer with a compression level.
Definition gd_png.c:1705
void * gdImagePngPtr(gdImagePtr im, int *size)
Write an image as PNG data to a newly allocated memory buffer.
Definition gd_png.c:1698
gdImagePtr gdImageCreateFromPngCtx(gdIOCtxPtr in)
Create an image from PNG data read through a gdIOCtx.
int gdImagePngWithOptions(gdImagePtr im, FILE *out, const gdPngWriteOptions *options)
Write an image as PNG data to a stdio file using write options.
Definition gd_png.c:1633
int gdPngGetInfoPtr(int size, const void *data, gdPngInfo *info)
Read PNG header information from a memory buffer.
Definition gd_png.c:1623
void gdImagePngEx(gdImagePtr im, FILE *out, int level)
Write an image as PNG data to a stdio file with a compression level.
Definition gd_png.c:1683
void gdImagePngCtx(gdImagePtr im, gdIOCtxPtr out)
Write an image as PNG data to a gdIOCtx.
int gdImagePngCtxWithOptions(gdImagePtr im, gdIOCtxPtr out, const gdPngWriteOptions *options)
Write an image as PNG data to a gdIOCtx using write options.
void gdImagePng(gdImagePtr im, FILE *out)
Write an image as PNG data to a stdio file.
Definition gd_png.c:1691
void gdPngInfoInit(gdPngInfo *info)
Initialize a gdPngInfo structure with default values.
Definition gd_png.c:1590
void gdImagePngCtxEx(gdImagePtr im, gdIOCtxPtr out, int level)
Write an image as PNG data to a gdIOCtx with a compression level.
int gdPngGetInfo(FILE *in, gdPngInfo *info)
Read PNG header information from a stdio file.
Definition gd_png.c:1607
void * gdImagePngPtrWithOptions(gdImagePtr im, int *size, const gdPngWriteOptions *options)
Write an image as PNG data to a memory buffer using write options.
Definition gd_png.c:1653
gdImagePtr gdImageCreateFromPngPtr(int size, void *data)
Create an image from a PNG memory buffer.
Definition gd_png.c:1670
const char * gdPngGetVersionString(void)
Return a string describing the linked libpng version.
void gdPngWriteOptionsInit(gdPngWriteOptions *options)
Initialize PNG write options with default values.
Definition gd_png.c:1582
int gdPngGetInfoCtx(gdIOCtxPtr in, gdPngInfo *info)
Read PNG header information from a gdIOCtx.
gdImagePtr gdImageCreateFromPng(FILE *fd)
Create an image from a PNG stdio file.
Definition gd_png.c:1663
@ GD_PNG_COMPRESSION_STRATEGY_DEFAULT
Definition gd.h:800
@ GD_PNG_COMPRESSION_STRATEGY_HUFFMAN_ONLY
Definition gd.h:802
@ GD_PNG_COMPRESSION_STRATEGY_FIXED
Definition gd.h:804
@ GD_PNG_COMPRESSION_STRATEGY_FILTERED
Definition gd.h:801
@ GD_PNG_COMPRESSION_STRATEGY_RLE
Definition gd.h:803
int gdQoiGetInfoPtr(int size, const void *data, gdQoiInfo *info)
Read QOI header information from a memory buffer.
Definition gd_qoi.c:177
gdImagePtr gdImageCreateFromQoi(FILE *fd)
Create an image from a QOI stdio file.
Definition gd_qoi.c:299
void gdImageQoi(gdImagePtr im, FILE *out)
Write an image as QOI data to a memory buffer.
Definition gd_qoi.c:358
void gdImageQoiCtxEx(gdImagePtr im, gdIOCtxPtr out, int colorspace)
Write an image as QOI data to a gdIOCtx with an explicit colorspace flag.
void * gdImageQoiPtr(gdImagePtr im, int *size)
Write an image as QOI data to a newly allocated memory buffer.
Definition gd_qoi.c:394
void gdQoiInfoInit(gdQoiInfo *info)
Initialize a gdQoiInfo structure to default values.
Definition gd_qoi.c:170
void gdImageQoiCtx(gdImagePtr im, gdIOCtxPtr out)
Write an image as QOI data to a gdIOCtx.
int gdImageQoiCtxWithOptions(gdImagePtr im, gdIOCtxPtr out, const gdQoiWriteOptions *options)
Write an image as QOI data to a gdIOCtx with options.
gdImagePtr gdImageCreateFromQoiCtx(gdIOCtxPtr in)
Create an image from QOI data read through a gdIOCtx.
int gdImageQoiWithOptions(gdImagePtr im, FILE *out, const gdQoiWriteOptions *options)
Write an image as QOI data to a stdio file with options.
Definition gd_qoi.c:347
int gdQoiGetInfoCtx(gdIOCtxPtr infile, gdQoiInfo *info)
Read QOI header information from a gdIOCtx.
Definition gd_qoi.c:209
gdImagePtr gdImageCreateFromQoiPtr(int size, void *data)
Create an image from a QOI memory buffer.
Definition gd_qoi.c:311
void gdImageQoiEx(gdImagePtr im, FILE *out, int colorspace)
Write an image as QOI data to a stdio file with an explicit colorspace flag.
Definition gd_qoi.c:363
void * gdImageQoiPtrWithOptions(gdImagePtr im, int *size, const gdQoiWriteOptions *options)
Write an image as QOI data to a newly allocated memory buffer with options.
Definition gd_qoi.c:371
int gdQoiGetInfo(FILE *infile, gdQoiInfo *info)
Read QOI header information from a stdio file.
Definition gd_qoi.c:228
void gdQoiWriteOptionsInit(gdQoiWriteOptions *options)
Initialize a gdQoiWriteOptions structure to default values.
Definition gd_qoi.c:245
void * gdImageQoiPtrEx(gdImagePtr im, int *size, int colorspace)
Write an image as QOI data to a memory buffer with an explicit colorspace flag.
Definition gd_qoi.c:399
@ GD_QOI_LINEAR
Definition gd.h:1160
@ GD_QOI_SRGB
Definition gd.h:1159
gdImagePtr gdImageCreateFromTga(FILE *fp)
Create an image from TGA data in a stdio stream.
Definition gd_tga.c:42
gdImagePtr gdImageCreateFromTgaCtx(gdIOCtxPtr ctx)
Create an image from TGA data in a gdIOCtx.
gdImagePtr gdImageCreateFromTgaPtr(int size, void *data)
Create an image from a TGA memory buffer.
Definition gd_tga.c:56
void gdTiffWriteOptionsInit(gdTiffWriteOptions *options)
Initialize TIFF write options with defaults.
Definition gd_tiff.c:2631
gdTiffWritePtr gdTiffWriteOpen(FILE *outFile, const gdTiffWriteOptions *options)
Open a TIFF writer for a stdio file.
Definition gd_tiff.c:2647
gdTiffPlanarConfig
TIFF planar configuration tag values.
Definition gd.h:3978
int gdTiffReadGetInfo(gdTiffReadPtr tiff, gdTiffInfo *info)
Get TIFF file information from a reader.
Definition gd_tiff.c:2591
void gdTiffReadOptionsInit(gdTiffReadOptions *options)
Initialize TIFF read options with defaults.
Definition gd_tiff.c:2552
void * gdImageTiffPtr(gdImagePtr im, int *size)
Write an image as TIFF data to a newly allocated memory buffer.
Definition gd_tiff.c:2544
gdTiffReadPtr gdTiffReadOpenPtr(int size, void *data, const gdTiffReadOptions *options)
Open a TIFF multi-page reader from a memory buffer.
Definition gd_tiff.c:2576
gdImagePtr gdImageCreateFromTiffPtr(int size, void *data)
Create an image from a TIFF memory buffer.
Definition gd_tiff.c:2529
void gdTiffWriteClose(gdTiffWritePtr write)
Close a file or gdIOCtx TIFF writer.
Definition gd_tiff.c:2680
gdTiffPhotometric
TIFF photometric interpretation tag values.
Definition gd.h:3964
int gdTiffWriteAddImage(gdTiffWritePtr write, gdImagePtr image)
Add an image as the next TIFF page.
Definition gd_tiff.c:2672
void gdImageTiffCtx(gdImagePtr image, gdIOCtxPtr out)
Write an image as TIFF data to a gdIOCtx.
gdTiffWritePtr gdTiffWriteOpenCtx(gdIOCtxPtr out, const gdTiffWriteOptions *options)
Open a TIFF writer for a gdIOCtx.
Definition gd_tiff.c:2656
gdTiffCompression
TIFF compression tag values.
Definition gd.h:3949
int gdTiffIsMultiPageCtx(gdIOCtxPtr in)
Test whether TIFF data read through a seekable gdIOCtx has more than one page.
Definition gd_tiff.c:2616
int gdTiffReadGetMetadata(gdTiffReadPtr tiff, gdImageMetadata *metadata)
gdTiffWritePtr gdTiffWriteOpenPtr(const gdTiffWriteOptions *options)
Open a TIFF writer that returns a memory buffer.
Definition gd_tiff.c:2665
struct gdTiffReadStruct * gdTiffReadPtr
Opaque TIFF multi-page reader handle.
Definition gd.h:3760
gdImagePtr gdImageCreateFromTiffCtx(gdIOCtxPtr infile)
Create an image from TIFF data read through a gdIOCtx.
int gdTiffReadNextImage(gdTiffReadPtr tiff, gdTiffPageInfo *info, gdImagePtr *image)
Read the next TIFF page image.
Definition gd_tiff.c:2600
int gdTiffIsMultiPagePtr(int size, void *data)
Test whether a TIFF memory buffer has more than one page.
Definition gd_tiff.c:2623
struct gdTiffWriteStruct * gdTiffWritePtr
Opaque TIFF writer handle.
Definition gd.h:4032
void gdImageTiff(gdImagePtr im, FILE *outFile)
Write an image as TIFF data to a stdio file.
Definition gd_tiff.c:2537
gdTiffColorSpace
TIFF writer color spaces.
Definition gd.h:3939
gdTiffReadPtr gdTiffReadOpenCtx(gdIOCtxPtr in, const gdTiffReadOptions *options)
Open a TIFF multi-page reader from a gdIOCtx.
Definition gd_tiff.c:2568
gdTiffResolutionUnit
TIFF resolution unit tag values.
Definition gd.h:3986
void * gdTiffWritePtrFinish(gdTiffWritePtr write, int *size)
Finish a TIFF memory writer and return the encoded buffer.
Definition gd_tiff.c:2686
gdImagePtr gdImageCreateFromTiff(FILE *inFile)
Create an image from a TIFF stdio file.
Definition gd_tiff.c:2522
gdTiffAlphaType
TIFF alpha sample types.
Definition gd.h:3995
int gdTiffIsMultiPage(FILE *fd)
Test whether a TIFF stdio file has more than one page.
Definition gd_tiff.c:2609
gdTiffReadPtr gdTiffReadOpen(FILE *fd, const gdTiffReadOptions *options)
Open a TIFF multi-page reader from a stdio file.
Definition gd_tiff.c:2560
void gdTiffReadClose(gdTiffReadPtr tiff)
Close a TIFF multi-page reader.
Definition gd_tiff.c:2585
@ GD_TIFF_PLANARCONFIG_CONTIG
Definition gd.h:3979
@ GD_TIFF_PLANARCONFIG_SEPARATE
Definition gd.h:3980
@ GD_TIFF_PHOTOMETRIC_YCBCR
Definition gd.h:3971
@ GD_TIFF_PHOTOMETRIC_CIELAB
Definition gd.h:3972
@ GD_TIFF_PHOTOMETRIC_RGB
Definition gd.h:3967
@ GD_TIFF_PHOTOMETRIC_SEPARATED
Definition gd.h:3970
@ GD_TIFF_PHOTOMETRIC_MINISWHITE
Definition gd.h:3965
@ GD_TIFF_PHOTOMETRIC_MINISBLACK
Definition gd.h:3966
@ GD_TIFF_PHOTOMETRIC_TRANSPARENCY_MASK
Definition gd.h:3969
@ GD_TIFF_PHOTOMETRIC_PALETTE
Definition gd.h:3968
@ GD_TIFF_COMPRESSION_LZW
Definition gd.h:3954
@ GD_TIFF_COMPRESSION_NONE
Definition gd.h:3950
@ GD_TIFF_COMPRESSION_CCITT_FAX3
Definition gd.h:3952
@ GD_TIFF_COMPRESSION_ADOBE_DEFLATE
Definition gd.h:3956
@ GD_TIFF_COMPRESSION_CCITT_FAX4
Definition gd.h:3953
@ GD_TIFF_COMPRESSION_CCITT_RLE
Definition gd.h:3951
@ GD_TIFF_COMPRESSION_JPEG
Definition gd.h:3955
@ GD_TIFF_COMPRESSION_PACKBITS
Definition gd.h:3958
@ GD_TIFF_COMPRESSION_DEFLATE
Definition gd.h:3957
@ GD_TIFF_GRAY
Definition gd.h:3942
@ GD_TIFF_RGB
Definition gd.h:3940
@ GD_TIFF_BILEVEL
Definition gd.h:3943
@ GD_TIFF_RGBA
Definition gd.h:3941
@ GD_TIFF_RESUNIT_INCH
Definition gd.h:3988
@ GD_TIFF_RESUNIT_NONE
Definition gd.h:3987
@ GD_TIFF_RESUNIT_CENTIMETER
Definition gd.h:3989
@ GD_TIFF_ALPHA_UNASSOCIATED
Definition gd.h:3996
@ GD_TIFF_ALPHA_ASSOCIATED
Definition gd.h:3997
int gdUhdrImageWidth(gdUhdrImagePtr im)
Return the UltraHDR image width.
Definition gd_uhdr.c:695
int gdUhdrImageHasGainMap(gdUhdrImagePtr im)
Return whether the UltraHDR image has a gain map.
Definition gd_uhdr.c:711
void gdUhdrImageDestroy(gdUhdrImagePtr im)
Destroy an UltraHDR image handle.
Definition gd_uhdr.c:684
void * gdUhdrImageWritePtr(gdUhdrImagePtr im, int *size, int format, int quality, gdUhdrErrorPtr err)
Write an UltraHDR image to a newly allocated memory buffer.
Definition gd_uhdr.c:1079
int gdUhdrImageHeight(gdUhdrImagePtr im)
Return the UltraHDR image height.
Definition gd_uhdr.c:703
gdUhdrImage * gdUhdrImagePtr
Pointer to an opaque UltraHDR image handle.
Definition gd.h:4668
gdImagePtr gdUhdrImageGetSdr(gdUhdrImagePtr im, gdUhdrErrorPtr err)
Decode the SDR view of an UltraHDR image as a gdImage.
Definition gd_uhdr.c:1117
int gdUhdrImageMirror(gdUhdrImagePtr im, int axis, gdUhdrErrorPtr err)
Queue an UltraHDR-preserving mirror operation.
Definition gd_uhdr.c:813
int gdUhdrImageRotate(gdUhdrImagePtr im, int degrees, gdUhdrErrorPtr err)
Queue an UltraHDR-preserving right-angle rotation.
Definition gd_uhdr.c:787
int gdUhdrImageCrop(gdUhdrImagePtr im, int left, int top, int width, int height, gdUhdrErrorPtr err)
Queue an UltraHDR-preserving crop operation.
Definition gd_uhdr.c:747
gdUhdrFormat
UltraHDR container format selector.
Definition gd.h:4658
gdUhdrImagePtr gdUhdrImageCreateFromFile(const char *filename, int format, gdUhdrErrorPtr err)
Create an UltraHDR image handle from a file path.
Definition gd_uhdr.c:597
gdUhdrImagePtr gdUhdrImageCreateFromCtx(gdIOCtxPtr ctx, int format, gdUhdrErrorPtr err)
Create an UltraHDR image handle from an IO context.
Definition gd_uhdr.c:635
int gdUhdrImageFile(gdUhdrImagePtr im, const char *filename, int format, int quality, gdUhdrErrorPtr err)
Write an UltraHDR image to a file path.
Definition gd_uhdr.c:839
int gdUhdrImageResize(gdUhdrImagePtr im, int width, int height, gdUhdrErrorPtr err)
Queue an UltraHDR-preserving resize operation.
Definition gd_uhdr.c:720
int gdUhdrIsAvailable(void)
Return whether UltraHDR support is available in this build.
Definition gd_uhdr.c:587
int gdUhdrImageCtx(gdUhdrImagePtr im, gdIOCtxPtr ctx, int format, int quality, gdUhdrErrorPtr err)
Write an UltraHDR image to an IO context.
Definition gd_uhdr.c:880
gdUhdrError * gdUhdrErrorPtr
Pointer to a gdUhdrError structure.
Definition gd.h:4678
struct gdUhdrImageStruct gdUhdrImage
Opaque UltraHDR image handle.
Definition gd.h:4665
gdUhdrImagePtr gdUhdrImageCreateFromPtr(int size, void *data, int format, gdUhdrErrorPtr err)
Create an UltraHDR image handle from memory.
Definition gd_uhdr.c:666
@ GD_UHDR_FORMAT_JPEG
Definition gd.h:4659
@ GD_UHDR_FORMAT_WEBP
Definition gd.h:4660
@ GD_UHDR_FORMAT_HEIF
Definition gd.h:4661
void * gdImageWBMPPtr(gdImagePtr im, int *size, int fg)
Write an image as WBMP data to a newly allocated memory buffer.
Definition gd_wbmp.c:198
gdImagePtr gdImageCreateFromWBMPCtx(gdIOCtxPtr infile)
Create an image from WBMP data read through a gdIOCtx.
void gdImageWBMPCtx(gdImagePtr image, int fg, gdIOCtxPtr out)
Write an image as WBMP data to a gdIOCtx.
gdImagePtr gdImageCreateFromWBMP(FILE *inFile)
Create an image from a WBMP stdio file.
Definition gd_wbmp.c:166
void gdImageWBMP(gdImagePtr image, int fg, FILE *out)
Write an image as WBMP data to a stdio file.
Definition gd_wbmp.c:189
gdImagePtr gdImageCreateFromWBMPPtr(int size, void *data)
Create an image from a WBMP memory buffer.
Definition gd_wbmp.c:177
void gdImageWebpCtx(gdImagePtr im, gdIOCtxPtr outfile, int quantization)
Write an image as WebP data to a gdIOCtx with a quality setting.
gdWebpReadPtr gdWebpReadOpenCtx(gdIOCtxPtr in, const gdWebpReadOptions *options)
Open a WebP animation reader from a gdIOCtx.
Definition gd_webp.c:1376
void gdWebpAnimWriteOptionsInit(gdWebpAnimWriteOptions *options)
Initialize WebP multi-image/animation write options with gd defaults.
Definition gd_webp.c:1243
struct gdWebpWrite * gdWebpWritePtr
Opaque WebP animation writer handle.
Definition gd.h:2169
int gdWebpReadGetMetadata(gdWebpReadPtr webp, gdImageMetadata *metadata)
Extract opaque EXIF, XMP, and ICC metadata from a WebP reader.
Definition gd_webp.c:1408
int gdWebpIsAnimated(FILE *fd)
Test whether a WebP stdio file contains animation.
Definition gd_webp.c:1345
int gdWebpWriteAddImage(gdWebpWritePtr webp, gdImagePtr image, int durationMs)
Add an image to a WebP animation writer.
Definition gd_webp.c:1467
void gdImageWebpEx(gdImagePtr im, FILE *outFile, int quantization)
Write an image as WebP data to a stdio file with a quality setting.
Definition gd_webp.c:1283
void gdImageWebp(gdImagePtr im, FILE *outFile)
Write an image as WebP data to a stdio file with default quality.
Definition gd_webp.c:1291
int gdImageWebpWithOptions(gdImagePtr im, FILE *outFile, const gdWebpWriteOptions *options)
Write an image as WebP data to a stdio file using write options.
Definition gd_webp.c:1316
void * gdImageWebpPtrWithOptions(gdImagePtr im, int *size, const gdWebpWriteOptions *options)
Write an image as WebP data to a newly allocated memory buffer using write options.
Definition gd_webp.c:1336
int gdWebpReadNextFrame(gdWebpReadPtr webp, gdWebpFrameInfo *info, gdImagePtr *frame)
Read the next raw WebP animation frame rectangle.
Definition gd_webp.c:1417
gdImagePtr gdImageCreateFromWebpCtx(gdIOCtxPtr infile)
Create a truecolor image from WebP data read through a gdIOCtx.
void gdWebpReadClose(gdWebpReadPtr webp)
Close a WebP animation reader.
Definition gd_webp.c:1394
struct gdWebpRead * gdWebpReadPtr
Opaque WebP animation reader handle.
Definition gd.h:2160
void gdWebpWriteOptionsInit(gdWebpWriteOptions *options)
Initialize WebP still-image write options with gd defaults.
Definition gd_webp.c:1233
int gdImageWebpCtxWithOptions(gdImagePtr im, gdIOCtxPtr outfile, const gdWebpWriteOptions *options)
Write an image as WebP data to a gdIOCtx using write options.
Definition gd_webp.c:1326
int gdWebpReadNextImage(gdWebpReadPtr webp, gdWebpFrameInfo *info, gdImagePtr *image)
Read the next coalesced WebP animation image.
Definition gd_webp.c:1429
void * gdWebpWritePtrFinish(gdWebpWritePtr webp, int *size)
Finish a WebP memory writer and return the encoded buffer.
Definition gd_webp.c:1482
int gdWebpIsAnimatedPtr(int size, void *data)
Test whether a WebP memory buffer contains animation.
Definition gd_webp.c:1359
gdWebpReadPtr gdWebpReadOpenPtr(int size, void *data, const gdWebpReadOptions *options)
Open a WebP animation reader from a memory buffer.
Definition gd_webp.c:1385
gdImagePtr gdImageCreateFromWebp(FILE *inFile)
Create a truecolor image from a WebP stdio file.
Definition gd_webp.c:1253
gdImagePtr gdImageCreateFromWebpPtr(int size, void *data)
Create a truecolor image from a WebP memory buffer.
Definition gd_webp.c:1260
void gdWebpReadOptionsInit(gdWebpReadOptions *options)
Initialize WebP multi-image/animation read options with gd defaults.
Definition gd_webp.c:1224
gdWebpWritePtr gdWebpWriteOpenCtx(gdIOCtxPtr out, const gdWebpAnimWriteOptions *options)
Open a WebP animation writer for a gdIOCtx.
Definition gd_webp.c:1450
void gdWebpWriteClose(gdWebpWritePtr webp)
Finish, write, and close a WebP animation writer.
Definition gd_webp.c:1476
gdWebpReadPtr gdWebpReadOpen(FILE *fd, const gdWebpReadOptions *options)
Open a WebP animation reader from a stdio file.
Definition gd_webp.c:1367
void * gdImageWebpPtr(gdImagePtr im, int *size)
Write an image as WebP data to a newly allocated memory buffer.
Definition gd_webp.c:1298
int gdWebpIsAnimatedCtx(gdIOCtxPtr in)
Test whether a seekable gdIOCtx contains animated WebP data.
Definition gd_webp.c:1352
int gdWebpReadGetInfo(gdWebpReadPtr webp, gdWebpInfo *info)
Get WebP container information from a WebP reader.
Definition gd_webp.c:1400
gdWebpWritePtr gdWebpWriteOpenPtr(const gdWebpAnimWriteOptions *options)
Open a WebP animation writer that returns a memory buffer.
Definition gd_webp.c:1459
void * gdImageWebpPtrEx(gdImagePtr im, int *size, int quantization)
Write an image as WebP data to a newly allocated memory buffer with a quality setting.
Definition gd_webp.c:1306
gdWebpWritePtr gdWebpWriteOpen(FILE *outFile, const gdWebpAnimWriteOptions *options)
Open a WebP animation writer for a stdio file.
Definition gd_webp.c:1441
@ gdWebpDisposeNone
Definition gd.h:2268
@ gdWebpDisposeBackground
Definition gd.h:2269
@ gdWebpBlendNone
Definition gd.h:2277
@ gdWebpBlendAlpha
Definition gd.h:2276
void gdImageXbmCtx(gdImagePtr image, char *file_name, int fg, gdIOCtxPtr out)
Write an image to an IO context in X11 bitmap format.
gdImagePtr gdImageCreateFromXbm(FILE *in)
Create an image from XBM data in a stdio stream.
Definition gd_xbm.c:23
gdIOCtxPtr gdNewDynamicCtxEx(int size, void *data, int freeFlag)
Creates a new I/O context for reading/writing to a dynamic memory buffer with control over memory man...
Definition gd_io_dp.c:80
gdIOCtxPtr gdNewSSCtx(gdSourcePtr in, gdSinkPtr out)
Definition gd_io_ss.c:54
gdIOCtxPtr gdNewDynamicCtx(int size, void *data)
Creates a new I/O context for reading/writing to a dynamic memory buffer.
Definition gd_io_dp.c:70
gdIOCtxPtr gdNewFileCtx(FILE *)
Creates a new I/O context for reading/writing to a file.
Definition gd_io_file.c:50
gdImageReadStatus
Status values for extended automatic image readers.
Definition gd.h:5475
gdImagePtr gdImageReadCtxEx(gdIOCtxPtr ctx, int flags, gdImageReadStatus *status, const char **format_name)
Read an image from a gdIOCtx with extended status information.
Definition gd_readimage.c:214
gdImagePtr gdImageReadFile(const char *filename)
Read an image file by probing its binary signature.
Definition gd_readimage.c:274
gdImagePtr gdImageCreateFromFile(const char *filename)
Create an image from a file using the filename extension.
Definition gd_filename.c:125
int gdSupportsFileType(const char *filename, int writing)
Test if a given file type is supported by GD.
Definition gd_filename.c:118
int gdImageFile(gdImagePtr im, const char *filename)
Write an image to a file in the format indicated by the filename.
Definition gd_filename.c:150
gdImagePtr gdImageReadCtx(gdIOCtxPtr ctx)
Read an image from a gdIOCtx by probing its binary signature.
Definition gd_readimage.c:193
@ gdImageReadStatusOk
Definition gd.h:5476
@ gdImageReadStatusCodecUnavailable
Definition gd.h:5479
@ gdImageReadStatusDecodeFailed
Definition gd.h:5480
@ gdImageReadStatusUnsupportedFormat
Definition gd.h:5478
@ gdImageReadStatusUnrecognized
Definition gd.h:5477
gdImageDiffMode
Options for perceptual image comparison mode.
Definition gd.h:7860
int gdImageCompare(gdImagePtr im1, gdImagePtr im2)
Compare two images.
Definition gd.c:3222
@ GD_IMAGE_DIFF_NONE
Definition gd.h:7861
@ GD_IMAGE_DIFF_MASK
Definition gd.h:7863
@ GD_IMAGE_DIFF_OVERLAY
Definition gd.h:7862
Write an image as JPEG data to a gdIOCtx.
Options for automatic cropping.
Definition gd.h:8017
int color
Definition gd.h:8020
float threshold
Definition gd.h:8019
enum gdCropMode mode
Definition gd.h:8018
Information extracted from the AVIF image and container.
Definition gd.h:3496
int width
Definition gd.h:3497
int bit_depth
Definition gd.h:3504
int is_animation
Definition gd.h:3499
int height
Definition gd.h:3498
int has_alpha
Definition gd.h:3503
gdImageMetadata * metadata
Definition gd.h:3506
int frame_count
Definition gd.h:3501
double duration
Definition gd.h:3502
int is_progressive
Definition gd.h:3500
int yuv_format
Definition gd.h:3505
AVIF encoder options used by gdImageAvifPtrWithOptions().
Definition gd.h:3479
int lossless
Definition gd.h:3482
int speed
Definition gd.h:3481
const gdImageMetadata * metadata
Definition gd.h:3484
int chroma_subsampling
Definition gd.h:3483
int quality
Definition gd.h:3480
int planes
Definition gd.h:4341
unsigned int red_mask
Definition gd.h:4351
int compression
Definition gd.h:4343
int colors_used
Definition gd.h:4347
unsigned int green_mask
Definition gd.h:4352
int image_size
Definition gd.h:4344
int important_colors
Definition gd.h:4348
int bits_per_pixel
Definition gd.h:4342
int width
Definition gd.h:4338
int header_type
Definition gd.h:4337
unsigned int alpha_mask
Definition gd.h:4354
unsigned int blue_mask
Definition gd.h:4353
int horizontal_resolution
Definition gd.h:4345
int top_down
Definition gd.h:4340
int vertical_resolution
Definition gd.h:4346
int palette_entries
Definition gd.h:4350
int palette_type
Definition gd.h:4349
int height
Definition gd.h:4339
Structured BMP writer options.
Definition gd.h:4463
int flags
Definition gd.h:4466
int bits_per_pixel
Definition gd.h:4464
int compression
Definition gd.h:4465
const gdImageMetadata * metadata
Definition gd.h:4467
Per-frame information read from a GIF animation.
Definition gd.h:1350
int x
Definition gd.h:1352
int delay
Definition gd.h:1356
int frame_index
Definition gd.h:1351
int width
Definition gd.h:1354
int y
Definition gd.h:1353
int transparent_index
Definition gd.h:1358
int local_color_table
Definition gd.h:1359
int interlace
Definition gd.h:1360
int height
Definition gd.h:1355
int disposal
Definition gd.h:1357
Basic information read from a GIF stream.
Definition gd.h:1335
int background_index
Definition gd.h:1339
double pixel_aspect_ratio
Definition gd.h:1342
int global_color_table
Definition gd.h:1340
int height
Definition gd.h:1338
int color_resolution
Definition gd.h:1341
int loop_count_present
Definition gd.h:1344
int width
Definition gd.h:1337
int loop_count
Definition gd.h:1343
Information extracted from a HEIF image and its container.
Definition gd.h:3137
HEIF decoder options used by gdImageCreateFromHeifPtrWithOptions().
Definition gd.h:3113
int ignore_transformations
Definition gd.h:3114
HEIF encoder options used by gdImageHeifPtrWithOptions().
Definition gd.h:3118
int lossless
Definition gd.h:3120
gdHeifCodec codec
Definition gd.h:3121
int quality
Definition gd.h:3119
const gdImageMetadata * metadata
Definition gd.h:3123
gdHeifChroma chroma
Definition gd.h:3122
Options for perceptual image comparison.
Definition gd.h:7867
gdImageDiffMode mode
Definition gd.h:7868
int highlight_color
Definition gd.h:7869
Result of perceptual image comparison.
Definition gd.h:7873
unsigned int pixels_changed
Definition gd.h:7874
double maximum_delta
Definition gd.h:7876
Basic information read from a JPEG header.
Definition gd.h:1809
int bits_per_sample
Definition gd.h:1812
int progressive
Definition gd.h:1815
int components
Definition gd.h:1813
int height
Definition gd.h:1811
int width
Definition gd.h:1810
int y_density
Definition gd.h:1818
int density_unit
Definition gd.h:1816
int x_density
Definition gd.h:1817
int color_space
Definition gd.h:1814
Options for reading JPEG data.
Definition gd.h:1826
int dct_method
Definition gd.h:1830
int ignore_warning
Definition gd.h:1827
unsigned int scale_num
Definition gd.h:1828
unsigned int scale_denom
Definition gd.h:1829
Options for writing JPEG data.
Definition gd.h:1836
int force_no_subsampling
Definition gd.h:1839
const gdImageMetadata * metadata
Definition gd.h:1840
int quality
Definition gd.h:1837
int progressive
Definition gd.h:1838
JPEG XL animation writer options.
Definition gd.h:2822
int canvas_height
Definition gd.h:2824
int lossless
Definition gd.h:2825
int canvas_width
Definition gd.h:2823
float distance
Definition gd.h:2826
int loop_count
Definition gd.h:2828
int effort
Definition gd.h:2827
JPEG XL raw frame information.
Definition gd.h:2791
int width
Definition gd.h:2795
int height
Definition gd.h:2796
int blend_mode
Definition gd.h:2797
int delay_ms
Definition gd.h:2792
int is_last
Definition gd.h:2798
int x_offset
Definition gd.h:2793
int y_offset
Definition gd.h:2794
JPEG XL top-level file information.
Definition gd.h:2781
int width
Definition gd.h:2782
int height
Definition gd.h:2783
int animated
Definition gd.h:2784
int loop_count
Definition gd.h:2785
JPEG XL multi-image/animation reader options.
Definition gd.h:2815
int coalesced
Definition gd.h:2816
JPEG XL still-image writer options.
Definition gd.h:2699
float distance
Definition gd.h:2701
const gdImageMetadata * metadata
Definition gd.h:2703
int lossless
Definition gd.h:2700
int effort
Definition gd.h:2702
Basic information read from a PNG stream.
Definition gd.h:829
int bit_depth
Definition gd.h:832
int has_alpha
Definition gd.h:834
int decoded_truecolor
Definition gd.h:842
int x_pixels_per_unit
Definition gd.h:838
int y_pixels_per_unit
Definition gd.h:839
int width
Definition gd.h:830
int has_transparency
Definition gd.h:835
gdImageMetadata * metadata
Definition gd.h:841
int color_type
Definition gd.h:833
int palette_entries
Definition gd.h:836
int resolution_x
Definition gd.h:843
int resolution_y
Definition gd.h:844
int height
Definition gd.h:831
int physical_unit
Definition gd.h:840
int interlace_method
Definition gd.h:837
Options for writing PNG data.
Definition gd.h:810
int compression_strategy
Definition gd.h:813
unsigned int filters
Definition gd.h:812
int compression_level
Definition gd.h:811
unsigned int resolution_y
Definition gd.h:816
unsigned int resolution_x
Definition gd.h:815
const gdImageMetadata * metadata
Definition gd.h:814
Defines a point in a 2D coordinate system using floating point values.
Definition gd.h:518
double y
Definition gd.h:519
A point in the coordinate space of the image.
Definition gd.h:6614
int y
Definition gd.h:6615
Information read from a QOI data.
Definition gd.h:1007
int colorspace
Definition gd.h:1011
int channels
Definition gd.h:1010
unsigned int height
Definition gd.h:1009
unsigned int width
Definition gd.h:1008
Options for writing QOI data.
Definition gd.h:1058
const gdImageMetadata * metadata
Definition gd.h:1060
int colorspace
Definition gd.h:1059
A rectangle in the coordinate space of the image.
Definition gd.h:6621
int height
Definition gd.h:6623
int y
Definition gd.h:6622
gdScaleStrategy strategy
Definition gd.h:8199
gdScaleGravity gravity
Definition gd.h:8198
int interpolation
Definition gd.h:8201
gdScaleFit fit
Definition gd.h:8197
int background_color
Definition gd.h:8200
Options to Scatter an image.
Definition gd.h:7266
int sub
Definition gd.h:7267
unsigned int seed
Definition gd.h:7271
int * colors
Definition gd.h:7270
unsigned int num_colors
Definition gd.h:7269
int plus
Definition gd.h:7268
TIFF file information from the first page and container.
Definition gd.h:3774
int bits_per_sample
Definition gd.h:3778
int samples_per_pixel
Definition gd.h:3779
int photometric
Definition gd.h:3781
int height
Definition gd.h:3776
float x_resolution
Definition gd.h:3782
int compression
Definition gd.h:3780
float y_resolution
Definition gd.h:3783
int page_count
Definition gd.h:3777
int width
Definition gd.h:3775
int resolution_unit
Definition gd.h:3784
TIFF page information returned while reading pages.
Definition gd.h:3790
int has_alpha
Definition gd.h:3799
int photometric
Definition gd.h:3797
int width
Definition gd.h:3792
int page_index
Definition gd.h:3791
int planar
Definition gd.h:3798
int resolution_unit
Definition gd.h:3803
float y_resolution
Definition gd.h:3802
int is_tiled
Definition gd.h:3800
int bits_per_sample
Definition gd.h:3794
float x_resolution
Definition gd.h:3801
int height
Definition gd.h:3793
int compression
Definition gd.h:3796
int samples_per_pixel
Definition gd.h:3795
Options for reading TIFF data with the gdTiffRead*() API.
Definition gd.h:3767
int notused
Definition gd.h:3768
Options for writing TIFF data with the gdTiffWrite*() API.
Definition gd.h:4012
int minIsWhite
Definition gd.h:4017
float xResolution
Definition gd.h:4019
int jpegQuality
Definition gd.h:4016
gdTiffCompression compression
Definition gd.h:4015
gdTiffResolutionUnit resolutionUnit
Definition gd.h:4018
const gdImageMetadata * metadata
Definition gd.h:4022
gdTiffAlphaType alphaType
Definition gd.h:4021
int bitDepth
Definition gd.h:4013
gdTiffColorSpace colorspace
Definition gd.h:4014
float yResolution
Definition gd.h:4020
Structured error details for UltraHDR APIs.
Definition gd.h:4671
int code
Definition gd.h:4672
int provider_code
Definition gd.h:4673
WebP animation writer options.
Definition gd.h:2219
int loop_count
Definition gd.h:2222
int quality
Definition gd.h:2224
int background_color
Definition gd.h:2223
int canvas_width
Definition gd.h:2220
int lossless
Definition gd.h:2225
int kmin
Definition gd.h:2228
int kmax
Definition gd.h:2229
int minimize_size
Definition gd.h:2227
int canvas_height
Definition gd.h:2221
int allow_mixed
Definition gd.h:2230
int method
Definition gd.h:2226
WebP animation frame information.
Definition gd.h:2187
int has_alpha
Definition gd.h:2197
int frame_index
Definition gd.h:2188
int height
Definition gd.h:2192
int x
Definition gd.h:2189
int complete
Definition gd.h:2198
int dispose
Definition gd.h:2195
int duration
Definition gd.h:2193
int timestamp
Definition gd.h:2194
int width
Definition gd.h:2191
int y
Definition gd.h:2190
int blend
Definition gd.h:2196
WebP container information.
Definition gd.h:2174
int format_flags
Definition gd.h:2180
int background_color
Definition gd.h:2179
int frame_count
Definition gd.h:2177
int loop_count
Definition gd.h:2178
int height
Definition gd.h:2176
int width
Definition gd.h:2175
int is_animation
Definition gd.h:2181
WebP multi-image/animation reader options.
Definition gd.h:2204
int coalesced
Definition gd.h:2205
WebP still-image writer options.
Definition gd.h:2211
int quality
Definition gd.h:2212
const gdImageMetadata * metadata
Definition gd.h:2213