OSDN Git Service

add bitmap_id parameter into apply factor method.
[swfed/swfed.git] / src / php_swfed.h
1 /*
2   +----------------------------------------------------------------------+
3   | PHP Version 5                                                        |
4   +----------------------------------------------------------------------+
5   | Copyright (c) 1997-2008 The PHP Group                                |
6   +----------------------------------------------------------------------+
7   | This source file is subject to version 3.01 of the PHP license,      |
8   | that is bundled with this package in the file LICENSE, and is        |
9   | available through the world-wide-web at the following url:           |
10   | http://www.php.net/license/3_01.txt                                  |
11   | If you did not receive a copy of the PHP license and are unable to   |
12   | obtain it through the world-wide-web, please send a note to          |
13   | license@php.net so we can mail you a copy immediately.               |
14   +----------------------------------------------------------------------+
15   | Author: Yoshihiro Yamazaki <yoya@awm.jp>                             |
16   +----------------------------------------------------------------------+
17 */
18
19 /* $Id:$ */
20
21 #ifndef PHP_SWFED_H
22 #define PHP_SWFED_H
23
24 extern zend_module_entry swfed_module_entry;
25 #define phpext_swfed_ptr &swfed_module_entry
26
27 #ifdef PHP_WIN32
28 #define PHP_SWFED_API __declspec(dllexport)
29 #else
30 #define PHP_SWFED_API
31 #endif
32
33 #ifdef ZTS
34 #include "TSRM.h"
35 #endif
36
37 PHP_MINIT_FUNCTION(swfed);
38 PHP_MSHUTDOWN_FUNCTION(swfed);
39 PHP_RINIT_FUNCTION(swfed);
40 PHP_RSHUTDOWN_FUNCTION(swfed);
41 PHP_MINFO_FUNCTION(swfed);
42
43 PHP_FUNCTION(confirm_swfed_compiled);   /* For testing, remove later. */
44
45 static zend_class_entry *swfeditor_ce;
46
47 PHP_METHOD(swfed, __construct);
48 PHP_METHOD(swfed, input);
49 PHP_METHOD(swfed, output);
50 PHP_METHOD(swfed, swfInfo);
51 PHP_METHOD(swfed, _destroy_and_exit); // for debug
52 //
53 PHP_METHOD(swfed, getHeaderInfo);
54 PHP_METHOD(swfed, setHeaderInfo);
55 PHP_METHOD(swfed, getTagList);
56 PHP_METHOD(swfed, getTagDetail);
57 PHP_METHOD(swfed, getTagInfo);
58 PHP_METHOD(swfed, getTagData);
59 PHP_METHOD(swfed, replaceTagData);
60 PHP_METHOD(swfed, getTagDataByCID);
61 PHP_METHOD(swfed, replaceTagDataByCID);
62 PHP_METHOD(swfed, getTagContentsByCID);
63 PHP_METHOD(swfed, replaceTagContentsByCID);
64 PHP_METHOD(swfed, removeTag);
65 PHP_METHOD(swfed, printTagData);
66 //
67 PHP_METHOD(swfed, getShapeData);
68 PHP_METHOD(swfed, replaceShapeData);
69 PHP_METHOD(swfed, setShapeAdjustMode);
70 PHP_METHOD(swfed, getShapeIdListByBitmapRef);
71 PHP_METHOD(swfed, getBitmapSize);
72 //
73 PHP_METHOD(swfed, getJpegData);
74 PHP_METHOD(swfed, getJpegAlpha);
75 PHP_METHOD(swfed, replaceJpegData);
76 PHP_METHOD(swfed, getPNGData);
77 PHP_METHOD(swfed, replacePNGData);
78 PHP_METHOD(swfed, replaceGIFData);
79 PHP_METHOD(swfed, replaceBitmapData);
80 PHP_METHOD(swfed, convertBitmapDataToJpegTag);
81 PHP_METHOD(swfed, applyShapeMatrixFactor);
82 PHP_METHOD(swfed, applyShapeRectFactor);
83 PHP_METHOD(swfed, getSoundData);
84 PHP_METHOD(swfed, replaceMLDData);
85 PHP_METHOD(swfed, getEditString);
86 PHP_METHOD(swfed, replaceEditString);
87 PHP_METHOD(swfed, getActionData);
88 PHP_METHOD(swfed, disasmActionData);
89 PHP_METHOD(swfed, setActionVariables);
90 PHP_METHOD(swfed, replaceActionStrings);
91 PHP_METHOD(swfed, replaceMovieClip);
92
93 PHP_METHOD(swfed, setCompressLevel);
94 PHP_METHOD(swfed, rebuild);
95 PHP_METHOD(swfed, purgeUselessContents);
96
97 PHP_METHOD(swfed, isShapeTagData);
98 PHP_METHOD(swfed, isBitmapTagData);
99 /* 
100         Declare any global variables you may need between the BEGIN
101         and END macros here:     
102
103 ZEND_BEGIN_MODULE_GLOBALS(swfed)
104         long  global_value;
105         char *global_string;
106 ZEND_END_MODULE_GLOBALS(swfed)
107 */
108
109 /* In every utility function you add that needs to use variables 
110    in php_swfed_globals, call TSRMLS_FETCH(); after declaring other 
111    variables used by that function, or better yet, pass in TSRMLS_CC
112    after the last function argument and declare your utility function
113    with TSRMLS_DC after the last declared argument.  Always refer to
114    the globals in your function as SWFED_G(variable).  You are 
115    encouraged to rename these macros something shorter, see
116    examples in any other php module directory.
117 */
118
119 #ifdef ZTS
120 #define SWFED_G(v) TSRMG(swfed_globals_id, zend_swfed_globals *, v)
121 #else
122 #define SWFED_G(v) (swfed_globals.v)
123 #endif
124
125 #define REGISTER_SWFED_CLASS_CONST_LONG(const_name, value) \
126     zend_declare_class_constant_long(swfeditor_ce, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
127
128
129 #endif  /* PHP_SWFED_H */
130
131
132 /*
133  * Local variables:
134  * tab-width: 4
135  * c-basic-offset: 4
136  * End:
137  * vim600: noet sw=4 ts=4 fdm=marker
138  * vim<600: noet sw=4 ts=4
139  */