summaryrefslogtreecommitdiff
path: root/tests/make_png/bitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/make_png/bitmap.h')
-rw-r--r--tests/make_png/bitmap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/make_png/bitmap.h b/tests/make_png/bitmap.h
index be23460e6..837de5e99 100644
--- a/tests/make_png/bitmap.h
+++ b/tests/make_png/bitmap.h
@@ -12,6 +12,7 @@
#include <png.h>
#include <dlfcn.h>
+#include <math.h>
#include FT_FREETYPE_H
#include FT_MODULE_H
@@ -19,6 +20,7 @@
#include FT_BITMAP_H
#define BITS_PER_PIXEL_RGBA 32
+#define MAX(a, b) ((a) > (b) ? (a) : (b))
typedef struct { // To store 32bit Hash
FT_UInt32 hash[1];
@@ -73,3 +75,7 @@ void Read_PNG(char *filename, IMAGE * after_effect);
void Add_effect(IMAGE* base, IMAGE* test, IMAGE* out, int Effect_ID);
// Stitch 2 PNG files
void Stitch(IMAGE* left, IMAGE* right, IMAGE* result);
+// Make the Height of both the PNG(s) same by filling with white pixels
+IMAGE* Adjust_Height(IMAGE* small, IMAGE* big );
+// Make the Width of both the PNG(s) same by filling with white pixels
+IMAGE* Adjust_Width(IMAGE* small, IMAGE* big ); \ No newline at end of file