freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] GSoC-2017-kushal 523d710 25/52: Adding requred headers


From: Kushal K S V S
Subject: [freetype2] GSoC-2017-kushal 523d710 25/52: Adding requred headers
Date: Fri, 25 Aug 2017 15:09:37 -0400 (EDT)

branch: GSoC-2017-kushal
commit 523d71063c6bdd2f33c48c2805f7bbc0e96e772c
Author: Kushal K S V S <address@hidden>
Commit: Kushal K S V S <address@hidden>

    Adding requred headers
---
 tests/make_png/bitmap.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/make_png/bitmap.h b/tests/make_png/bitmap.h
index be23460..837de5e 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]