-
Notifications
You must be signed in to change notification settings - Fork 0
/
resize.h
59 lines (53 loc) · 1.1 KB
/
resize.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* @file: resize.h
* @subject: 48430 Embedded C - Assignment 3
* @developers:
* @name: Daniel Bui @student_id: 12518371
* @name: Daniel Selmes @student_id: 12545253
* @name: @student_id:
* @name: @student_id:
*
* @date: 08-09-2017
*
* @achieved:
*
* @pending:
*
* @note:
*
* @TODO:
*
*/
/* Include Guard. */
#ifndef RESIZE_H
#define RESIZE_H
/**
* @name ratioCalculator
* @brief accepts the current image width and height and returns a new height
* proportional to the new width.
*
* @developer:
*
* @param width
* @param height
* @param targetWidth
* @param newWidth
* @param newHeight
*
*/
float ratioCalculator(int width, int height, int targetWidth, int *newWidth_p, int *newHeight_p);
/**
* @name imageResizer
* @brief accepts an rgba pixel buffer and returns a resized one
*
* @developer:
*
* @param rgbaBufferIn
* @param rgbaBufferOut
* @param width
* @param height
*/
void imageResizer(const char *rgbaBufferIn, int widthIn, int heightIn,
char **rgbaBufferOut_p, int *widthOut_p, int *heightOut_p,
int targetWidth);
#endif