1 /* swfc- Compiles swf code (.sc) files into .swf files.
3 Part of the swftools package.
5 Copyright (c) 2007 Huub Schaeks <huub@h-schaeks.speedlinq.nl>
6 Copyright (c) 2007 Matthias Kramm <kramm@quiss.org>
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
25 #include "../lib/types.h"
26 #include "../lib/rfxswf.h"
28 #include "swfc-feedback.h"
29 #include "swfc-interpolation.h"
42 #define SF_SCALEX 0x0004
43 #define SF_SCALEY 0x0008
44 #define SF_CX_R 0x0010
45 #define SF_CX_G 0x0020
46 #define SF_CX_B 0x0040
47 #define SF_CX_A 0x0080
48 #define SF_ROTATE 0x0100
49 #define SF_SHEAR 0x0200
50 #define SF_PIVOT 0x0400
52 #define SF_BLEND 0x1000
53 #define SF_FILTER 0x2000
58 FILTER_BEVEL* noBevel;
59 FILTER_DROPSHADOW* noDropshadow;
60 FILTER_GRADIENTGLOW* noGradientGlow;
62 typedef struct _spline
67 typedef struct _change
72 interpolation_t* interpolation;
77 change_t* change_new(U16 frame, int function, float value, interpolation_t* inter);
78 void change_free(change_t* change);
79 void change_init(change_t* change);
80 void change_append(change_t* first, change_t* newChange);
81 float change_value(change_t* first, U16 frame);
83 typedef struct _changeFilter
88 interpolation_t* interpolation;
89 struct _changeFilter* next;
93 changeFilter_t* changeFilter_new(U16 frame, int function, FILTERLIST* value, interpolation_t* inter);
94 void changeFilter_free(changeFilter_t* change);
95 void changeFilter_init(changeFilter_t* change);
96 void changeFilter_append(changeFilter_t* first, changeFilter_t* newChange);
97 FILTERLIST* changeFilter_value(changeFilter_t* first, U16 frame);
99 typedef struct _history
103 dictionary_t* changes;
106 history_t* history_new();
107 void history_free(history_t* past);
108 void history_init(history_t* past);
109 void history_begin(history_t* past, char* parameter, U16 frame, TAG* tag, float value);
110 void history_beginFilter(history_t* past, U16 frame, TAG* tag, FILTERLIST* value);
111 void history_remember(history_t* past, char* parameter, U16 frame, int function, float value, interpolation_t* inter);
112 void history_rememberFilter(history_t* past, U16 frame, int function, FILTERLIST* value, interpolation_t* inter);
113 int history_change(history_t* past, U16 frame, char* parameter);
114 float history_value(history_t* past, U16 frame, char* parameter);
115 int history_changeFilter(history_t* past, U16 frame);
116 FILTERLIST* history_valueFilter(history_t* past, U16 frame);