mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

This backports avif support from upstream libgd into bundled libgd and exposes the functionality through new imagecreatefromavif() and imageavif() functions. Closes GH-7026. Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
14 lines
348 B
C
14 lines
348 B
C
#ifndef GD_INTERN_H
|
|
#define GD_INTERN_H
|
|
#ifndef MIN
|
|
#define MIN(a,b) ((a)<(b)?(a):(b))
|
|
#endif
|
|
#define MIN3(a,b,c) ((a)<(b)?(MIN(a,c)):(MIN(b,c)))
|
|
#ifndef MAX
|
|
#define MAX(a,b) ((a)<(b)?(b):(a))
|
|
#endif
|
|
#define MAX3(a,b,c) ((a)<(b)?(MAX(b,c)):(MAX(a,c)))
|
|
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
|
|
|
|
#endif
|
|
|