forked from buaazp/zimg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zimg.h
42 lines (33 loc) · 831 Bytes
/
zimg.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
/*
* zimg - high performance image storage and processing system.
* http://zimg.buaa.us
*
* Copyright (c) 2013, Peter Zhao <[email protected]>.
* All rights reserved.
*
* Use and distribution licensed under the BSD license.
* See the LICENSE file for full text.
*
*/
/**
* @file zimg.h
* @brief Processing images header.
* @author 招牌疯子 [email protected]
* @version 1.0
* @date 2013-07-19
*/
#ifndef ZIMG_H
#define ZIMG_H
#include "zcommon.h"
typedef struct zimg_req_s {
char *md5;
int width;
int height;
bool proportion;
bool gray;
char *rsp_path;
} zimg_req_t;
int save_img(const char *buff, const int len, char *md5);
int new_img(const char *buff, const size_t len, const char *save_name);
int get_img(zimg_req_t *req, char **buff_ptr, size_t *img_size);
#endif