49#define env_img_initializer { {0,0}, 0 }
58 static inline void env_img_init_empty(
struct env_image* img);
64 static inline int env_img_initialized(
const struct env_image* img);
72 static inline const intg32* env_img_pixels(
const struct env_image* img);
78 static inline int env_dims_equal(
const struct env_dims d1,
const struct env_dims d2);
85static inline void env_img_init_empty(
struct env_image* img)
98static inline int env_img_initialized(
const struct env_image* img)
116static inline int env_dims_equal(
const struct env_dims d1,
const struct env_dims d2)
118 return d1.
w == d2.
w && d1.
h == d2.
h;
void env_img_swap(struct env_image *img1, struct env_image *img2)
void env_img_resize_dims(struct env_image *img, const struct env_dims d)
void env_img_make_empty(struct env_image *img)
void env_img_init(struct env_image *img, const struct env_dims d)
void env_img_copy_src_dst(const struct env_image *src, struct env_image *dst)
ENV_INTG32_TYPE intg32
32-bit signed integer
A simple struct to hold a pair of width/height dimensions.