summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal K S V S <kkushal32@gmail.com>2017-07-14 18:02:40 +0530
committerKushal K S V S <kkushal32@gmail.com>2017-07-14 18:02:40 +0530
commit0fb8a0f8d9eed969a4a21c2e7b0d1746d96ad2a7 (patch)
tree13b16b15363ca2d680bdf8002c786b4c14351806
parent9da27cf41c9a10297e47629aa7ac021596e805ec (diff)
downloadfreetype2-0fb8a0f8d9eed969a4a21c2e7b0d1746d96ad2a7.tar.gz
Adding requred headers
-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