-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathzxing_image_class.h
60 lines (45 loc) · 1.48 KB
/
zxing_image_class.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
/*
* Author: shanliu <shan.liu@msn.com>
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef PHP_ZXING_IMAGE_CLASS_H
#define PHP_ZXING_IMAGE_CLASS_H
//read image class
#if PHP_VERSION_ID < 70200
ZEND_BEGIN_ARG_INFO_EX(zxing_image_load_file_arginfo, 0, 0, 1)
#else
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(zxing_image_load_file_arginfo, 0, 1,IS_OBJECT , 1)
#endif
ZEND_ARG_TYPE_INFO(0, file, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, desired_channels, IS_LONG,0)
ZEND_ARG_TYPE_INFO(0, use_include_path, IS_FALSE|IS_TRUE,0)
ZEND_ARG_TYPE_INFO(0, zcontext, IS_RESOURCE,1)
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG,0)
ZEND_ARG_TYPE_INFO(0, maxlen, IS_LONG,1)
ZEND_END_ARG_INFO()
#if PHP_VERSION_ID < 70200
ZEND_BEGIN_ARG_INFO_EX(zxing_image_load_data_arginfo, 0, 0, 1)
#else
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(zxing_image_load_data_arginfo, 0, 1, IS_OBJECT, 1)
#endif
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, desired_channels, IS_LONG,0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(zxing_image_resize_arginfo, 0, 0, 2)
ZEND_ARG_INFO(0, width)
ZEND_ARG_INFO(0, height)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(zxing_image_resize_edge_arginfo, 0, 0, 1)
ZEND_ARG_INFO(0, edge)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(zxing_image_resize_filter_arginfo, 0, 0, 1)
ZEND_ARG_INFO(0, filter)
ZEND_END_ARG_INFO()
extern zend_class_entry *zxing_image_ce_ptr;
void zxing_image_class_init();
#endif
#ifdef __cplusplus
}
#endif