2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
35 static gint boxes_1b[][7] = {
37 {BOX_VERTICAL, 0, 0, 0, 1, 1, 1},
39 {BOX_HORIZONTAL, 0, 0, 0, 1, 1, 1}
42 static gint boxes_2b[][7 * 2] = {
44 {BOX_VERTICAL, 0, 0, 1, 1, 2, 0,
45 BOX_VERTICAL, 1, 0, 0, 2, 2, 1},
47 {BOX_HORIZONTAL, 0, 0, 1, 2, 1, 0,
48 BOX_HORIZONTAL, 0, 1, 0, 2, 2, 1},
51 static gint box_clock_1b[][1 * 10] = {
53 {BOX_CLOCK, 0, 0, 0, 1, 0, 0, 0, 1, 1},
55 {BOX_CLOCK, 0, 1, 0, 1, 1, 0, 0, 0, 1},
57 {BOX_CLOCK, 1, 1, 0, 0, 1, 0, 1, 0, 1},
59 {BOX_CLOCK, 1, 0, 0, 0, 0, 0, 1, 1, 1},
63 static gint box_clock_2b[][2 * 10] = {
65 {BOX_CLOCK, 1, 0, 0, 2, 0, 0, 1, 2, 1,
66 BOX_CLOCK, 1, 0, 0, 1, 2, 1, 0, 0, 2},
68 {BOX_CLOCK, 2, 1, 0, 2, 2, 0, 0, 1, 1,
69 BOX_CLOCK, 2, 1, 0, 0, 1, 1, 2, 0, 2},
71 {BOX_CLOCK, 1, 2, 0, 0, 2, 0, 1, 0, 1,
72 BOX_CLOCK, 1, 2, 0, 1, 0, 1, 2, 2, 2},
74 {BOX_CLOCK, 0, 1, 0, 0, 0, 0, 2, 1, 1,
75 BOX_CLOCK, 0, 1, 0, 2, 1, 1, 0, 2, 2},
77 {BOX_CLOCK, 1, 0, 0, 2, 0, 0, 1, 2, 1,
78 BOX_CLOCK, 1, 2, 0, 0, 2, 0, 1, 0, 1},
80 {BOX_CLOCK, 0, 1, 0, 0, 0, 0, 2, 1, 1,
81 BOX_CLOCK, 2, 1, 0, 2, 2, 0, 0, 1, 1},
83 {BOX_CLOCK, 1, 0, 0, 1, 2, 0, 2, 0, 1,
84 BOX_CLOCK, 1, 0, 0, 1, 2, 0, 0, 0, 1},
86 {BOX_CLOCK, 2, 1, 0, 0, 1, 0, 2, 0, 1,
87 BOX_CLOCK, 2, 1, 0, 0, 1, 0, 2, 2, 1},
89 {BOX_CLOCK, 1, 2, 0, 1, 0, 0, 2, 2, 1,
90 BOX_CLOCK, 1, 2, 0, 1, 0, 0, 0, 2, 1},
92 {BOX_CLOCK, 0, 1, 0, 2, 1, 0, 0, 0, 1,
93 BOX_CLOCK, 0, 1, 0, 2, 1, 0, 0, 2, 1},
94 #define WIPE_B2_251 10
95 {BOX_CLOCK, 0, 0, 0, 1, 0, 0, 0, 2, 1,
96 BOX_CLOCK, 2, 0, 0, 1, 0, 0, 2, 2, 1},
97 #define WIPE_B2_252 11
98 {BOX_CLOCK, 0, 0, 0, 0, 1, 0, 2, 0, 1,
99 BOX_CLOCK, 0, 2, 0, 0, 1, 0, 2, 2, 1},
100 #define WIPE_B2_253 12
101 {BOX_CLOCK, 0, 2, 0, 1, 2, 0, 0, 0, 1,
102 BOX_CLOCK, 2, 2, 0, 1, 2, 0, 2, 0, 1},
103 #define WIPE_B2_254 13
104 {BOX_CLOCK, 2, 0, 0, 2, 1, 0, 0, 0, 1,
105 BOX_CLOCK, 2, 2, 0, 2, 1, 0, 0, 2, 1},
108 static gint box_clock_4b[][4 * 10] = {
109 #define WIPE_B4_201 0
110 {BOX_CLOCK, 1, 1, 0, 1, 0, 0, 2, 1, 1,
111 BOX_CLOCK, 1, 1, 0, 2, 1, 1, 1, 2, 2,
112 BOX_CLOCK, 1, 1, 0, 1, 2, 2, 0, 1, 3,
113 BOX_CLOCK, 1, 1, 0, 0, 1, 3, 1, 0, 4},
114 #define WIPE_B4_202 1
115 {BOX_CLOCK, 1, 1, 0, 1, 0, 3, 2, 1, 4,
116 BOX_CLOCK, 1, 1, 0, 2, 1, 0, 1, 2, 1,
117 BOX_CLOCK, 1, 1, 0, 1, 2, 1, 0, 1, 2,
118 BOX_CLOCK, 1, 1, 0, 0, 1, 2, 1, 0, 3},
119 #define WIPE_B4_203 2
120 {BOX_CLOCK, 1, 1, 0, 1, 0, 2, 2, 1, 3,
121 BOX_CLOCK, 1, 1, 0, 2, 1, 3, 1, 2, 4,
122 BOX_CLOCK, 1, 1, 0, 1, 2, 0, 0, 1, 1,
123 BOX_CLOCK, 1, 1, 0, 0, 1, 1, 1, 0, 2},
124 #define WIPE_B4_204 3
125 {BOX_CLOCK, 1, 1, 0, 1, 0, 1, 2, 1, 2,
126 BOX_CLOCK, 1, 1, 0, 2, 1, 2, 1, 2, 3,
127 BOX_CLOCK, 1, 1, 0, 1, 2, 3, 0, 1, 4,
128 BOX_CLOCK, 1, 1, 0, 0, 1, 0, 1, 0, 1},
129 #define WIPE_B4_205 4
130 {BOX_CLOCK, 1, 1, 0, 1, 0, 0, 2, 1, 1,
131 BOX_CLOCK, 1, 1, 0, 2, 1, 1, 1, 2, 2,
132 BOX_CLOCK, 1, 1, 0, 1, 2, 0, 0, 1, 1,
133 BOX_CLOCK, 1, 1, 0, 0, 1, 1, 1, 0, 2},
134 #define WIPE_B4_206 5
135 {BOX_CLOCK, 1, 1, 0, 1, 0, 1, 2, 1, 2,
136 BOX_CLOCK, 1, 1, 0, 2, 1, 0, 1, 2, 1,
137 BOX_CLOCK, 1, 1, 0, 1, 2, 1, 0, 1, 2,
138 BOX_CLOCK, 1, 1, 0, 0, 1, 0, 1, 0, 1},
139 #define WIPE_B4_207 6
140 {BOX_CLOCK, 1, 1, 0, 1, 0, 0, 2, 1, 1,
141 BOX_CLOCK, 1, 1, 0, 2, 1, 0, 1, 2, 1,
142 BOX_CLOCK, 1, 1, 0, 1, 2, 0, 0, 1, 1,
143 BOX_CLOCK, 1, 1, 0, 0, 1, 0, 1, 0, 1},
144 #define WIPE_B4_211 7
145 {BOX_CLOCK, 1, 1, 0, 1, 0, 0, 2, 1, 1,
146 BOX_CLOCK, 1, 1, 0, 2, 1, 1, 1, 2, 2,
147 BOX_CLOCK, 1, 1, 0, 1, 0, 0, 0, 1, 1,
148 BOX_CLOCK, 1, 1, 0, 0, 1, 1, 1, 2, 2},
149 #define WIPE_B4_212 8
150 {BOX_CLOCK, 1, 1, 0, 2, 1, 0, 1, 0, 1,
151 BOX_CLOCK, 1, 1, 0, 1, 0, 1, 0, 1, 2,
152 BOX_CLOCK, 1, 1, 0, 2, 1, 0, 1, 2, 1,
153 BOX_CLOCK, 1, 1, 0, 1, 2, 1, 0, 1, 2},
154 #define WIPE_B4_213 9
155 {BOX_CLOCK, 1, 1, 0, 1, 0, 0, 2, 1, 1,
156 BOX_CLOCK, 1, 1, 0, 1, 0, 0, 0, 1, 1,
157 BOX_CLOCK, 1, 1, 0, 1, 2, 0, 2, 1, 1,
158 BOX_CLOCK, 1, 1, 0, 1, 2, 0, 0, 1, 1},
159 #define WIPE_B4_214 10
160 {BOX_CLOCK, 1, 1, 0, 2, 1, 0, 1, 0, 1,
161 BOX_CLOCK, 1, 1, 0, 2, 1, 0, 1, 2, 1,
162 BOX_CLOCK, 1, 1, 0, 0, 1, 0, 1, 0, 1,
163 BOX_CLOCK, 1, 1, 0, 0, 1, 0, 1, 2, 1},
164 #define WIPE_B4_227 11
165 {BOX_CLOCK, 1, 0, 0, 2, 0, 0, 1, 1, 1,
166 BOX_CLOCK, 1, 0, 0, 1, 1, 1, 0, 0, 2,
167 BOX_CLOCK, 1, 2, 0, 2, 2, 0, 1, 1, 1,
168 BOX_CLOCK, 1, 2, 0, 1, 1, 1, 0, 2, 2},
169 #define WIPE_B4_228 12
170 {BOX_CLOCK, 0, 1, 0, 0, 0, 0, 1, 1, 1,
171 BOX_CLOCK, 0, 1, 0, 1, 1, 1, 0, 2, 2,
172 BOX_CLOCK, 2, 1, 0, 2, 0, 0, 1, 1, 1,
173 BOX_CLOCK, 2, 1, 0, 1, 1, 1, 2, 2, 2},
174 #define WIPE_B4_235 13
175 {BOX_CLOCK, 1, 0, 0, 1, 1, 0, 0, 0, 1,
176 BOX_CLOCK, 1, 0, 0, 1, 1, 0, 2, 0, 1,
177 BOX_CLOCK, 1, 2, 0, 1, 1, 0, 2, 2, 1,
178 BOX_CLOCK, 1, 2, 0, 1, 1, 0, 0, 2, 1},
179 #define WIPE_B4_236 14
180 {BOX_CLOCK, 0, 1, 0, 1, 1, 0, 0, 0, 1,
181 BOX_CLOCK, 0, 1, 0, 1, 1, 0, 0, 2, 1,
182 BOX_CLOCK, 2, 1, 0, 1, 1, 0, 2, 0, 1,
183 BOX_CLOCK, 2, 1, 0, 1, 1, 0, 2, 2, 1},
186 static gint box_clock_8b[][8 * 10] = {
187 #define WIPE_B8_261 0
188 {BOX_CLOCK, 2, 1, 0, 2, 2, 0, 4, 1, 1,
189 BOX_CLOCK, 2, 1, 0, 4, 1, 1, 2, 0, 2,
190 BOX_CLOCK, 2, 1, 0, 2, 0, 2, 0, 1, 3,
191 BOX_CLOCK, 2, 1, 0, 0, 1, 3, 2, 2, 4,
192 BOX_CLOCK, 2, 3, 0, 2, 2, 0, 4, 3, 1,
193 BOX_CLOCK, 2, 3, 0, 4, 3, 1, 2, 4, 2,
194 BOX_CLOCK, 2, 3, 0, 2, 4, 2, 0, 3, 3,
195 BOX_CLOCK, 2, 3, 0, 0, 3, 3, 2, 2, 4},
196 #define WIPE_B8_262 1
197 {BOX_CLOCK, 1, 2, 0, 2, 2, 0, 1, 0, 1,
198 BOX_CLOCK, 1, 2, 0, 1, 0, 1, 0, 2, 2,
199 BOX_CLOCK, 1, 2, 0, 0, 2, 2, 1, 4, 3,
200 BOX_CLOCK, 1, 2, 0, 1, 4, 3, 2, 2, 4,
201 BOX_CLOCK, 3, 2, 0, 2, 2, 0, 3, 0, 1,
202 BOX_CLOCK, 3, 2, 0, 3, 0, 1, 4, 2, 2,
203 BOX_CLOCK, 3, 2, 0, 4, 2, 2, 3, 4, 3,
204 BOX_CLOCK, 3, 2, 0, 3, 4, 3, 2, 2, 4},
205 #define WIPE_B8_263 2
206 {BOX_CLOCK, 2, 1, 0, 2, 0, 0, 4, 1, 1,
207 BOX_CLOCK, 2, 1, 0, 4, 1, 1, 2, 2, 2,
208 BOX_CLOCK, 2, 1, 0, 2, 0, 0, 0, 1, 1,
209 BOX_CLOCK, 2, 1, 0, 0, 1, 1, 2, 2, 2,
210 BOX_CLOCK, 2, 3, 0, 2, 4, 0, 4, 3, 1,
211 BOX_CLOCK, 2, 3, 0, 4, 3, 1, 2, 2, 2,
212 BOX_CLOCK, 2, 3, 0, 2, 4, 0, 0, 3, 1,
213 BOX_CLOCK, 2, 3, 0, 0, 3, 1, 2, 2, 2},
214 #define WIPE_B8_264 3
215 {BOX_CLOCK, 1, 2, 0, 0, 2, 0, 1, 0, 1,
216 BOX_CLOCK, 1, 2, 0, 1, 0, 1, 2, 2, 2,
217 BOX_CLOCK, 1, 2, 0, 0, 2, 0, 1, 4, 1,
218 BOX_CLOCK, 1, 2, 0, 1, 4, 1, 2, 2, 2,
219 BOX_CLOCK, 3, 2, 0, 4, 2, 0, 3, 0, 1,
220 BOX_CLOCK, 3, 2, 0, 3, 0, 1, 2, 2, 2,
221 BOX_CLOCK, 3, 2, 0, 4, 2, 0, 3, 4, 1,
222 BOX_CLOCK, 3, 2, 0, 3, 4, 1, 2, 2, 2},
225 static gint triangles_2t[][2 * 9] = {
228 {0, 0, 0, 0, 1, 1, 1, 1, 1,
229 1, 0, 1, 0, 0, 0, 1, 1, 1},
230 #define WIPE_T2_4 WIPE_T2_3+1
231 {0, 0, 1, 1, 0, 0, 0, 1, 1,
232 1, 0, 0, 0, 1, 1, 1, 1, 1},
233 #define WIPE_T2_5 WIPE_T2_4+1
234 {0, 0, 1, 0, 1, 1, 1, 1, 0,
235 1, 0, 1, 0, 0, 1, 1, 1, 0},
236 #define WIPE_T2_6 WIPE_T2_5+1
237 {0, 0, 1, 1, 0, 1, 0, 1, 0,
238 1, 0, 1, 0, 1, 0, 1, 1, 1},
239 #define WIPE_T2_41 WIPE_T2_6+1
240 {0, 0, 0, 1, 0, 1, 0, 1, 1,
241 1, 0, 1, 0, 1, 1, 1, 1, 2},
242 #define WIPE_T2_42 WIPE_T2_41+1
243 {0, 0, 1, 1, 0, 0, 1, 1, 1,
244 0, 0, 1, 0, 1, 2, 1, 1, 1},
245 #define WIPE_T2_45 WIPE_T2_42+1
246 {0, 0, 1, 1, 0, 0, 0, 1, 0,
247 1, 0, 0, 0, 1, 0, 1, 1, 1},
248 #define WIPE_T2_46 WIPE_T2_45+1
249 {0, 0, 0, 1, 0, 1, 1, 1, 0,
250 0, 0, 0, 0, 1, 1, 1, 1, 0},
251 #define WIPE_T2_245 WIPE_T2_46+1
252 {0, 0, 0, 2, 0, 0, 2, 2, 1,
253 2, 2, 0, 0, 2, 0, 0, 0, 1},
254 #define WIPE_T2_246 WIPE_T2_245+1
255 {0, 2, 0, 0, 0, 0, 2, 0, 1,
256 2, 0, 0, 2, 2, 0, 0, 2, 1},
259 static gint triangles_3t[][3 * 9] = {
262 {0, 0, 1, 1, 0, 0, 0, 2, 1,
263 1, 0, 0, 0, 2, 1, 2, 2, 1,
264 1, 0, 0, 2, 0, 1, 2, 2, 1},
266 {0, 0, 1, 2, 0, 1, 2, 1, 0,
267 0, 0, 1, 2, 1, 0, 0, 2, 1,
268 2, 1, 0, 0, 2, 1, 2, 2, 1},
270 {0, 0, 1, 0, 2, 1, 1, 2, 0,
271 0, 0, 1, 2, 0, 1, 1, 2, 0,
272 2, 0, 1, 1, 2, 0, 2, 2, 1},
274 {0, 0, 1, 2, 0, 1, 0, 1, 0,
275 2, 0, 1, 0, 1, 0, 2, 2, 1,
276 0, 1, 0, 0, 2, 1, 2, 2, 1},
279 static gint triangles_4t[][4 * 9] = {
281 {0, 0, 1, 1, 0, 0, 1, 2, 1,
282 0, 0, 1, 0, 2, 2, 1, 2, 1,
283 1, 0, 0, 2, 0, 1, 1, 2, 1,
284 2, 0, 1, 1, 2, 1, 2, 2, 2},
286 {0, 0, 2, 2, 0, 1, 0, 1, 1,
287 2, 0, 1, 0, 1, 1, 2, 1, 0,
288 0, 1, 1, 2, 1, 0, 2, 2, 1,
289 0, 1, 1, 0, 2, 2, 2, 2, 1},
291 {0, 0, 2, 1, 0, 1, 0, 2, 1,
292 1, 0, 1, 0, 2, 1, 1, 2, 0,
293 1, 0, 1, 1, 2, 0, 2, 2, 1,
294 1, 0, 1, 2, 0, 2, 2, 2, 1},
296 {0, 0, 1, 2, 0, 2, 2, 1, 1,
297 0, 0, 1, 0, 1, 0, 2, 1, 1,
298 0, 1, 0, 2, 1, 1, 0, 2, 1,
299 2, 1, 1, 0, 2, 1, 2, 2, 2},
301 {0, 0, 0, 1, 0, 1, 1, 2, 0,
302 0, 0, 0, 0, 2, 1, 1, 2, 0,
303 1, 0, 1, 2, 0, 0, 1, 2, 0,
304 2, 0, 0, 1, 2, 0, 2, 2, 1},
306 {0, 0, 1, 2, 0, 0, 0, 1, 0,
307 2, 0, 0, 0, 1, 0, 2, 1, 1,
308 0, 1, 0, 2, 1, 1, 2, 2, 0,
309 0, 1, 0, 0, 2, 1, 2, 2, 0},
311 {0, 0, 1, 1, 0, 0, 0, 2, 0,
312 1, 0, 0, 0, 2, 0, 1, 2, 1,
313 1, 0, 0, 1, 2, 1, 2, 2, 0,
314 1, 0, 0, 2, 0, 1, 2, 2, 0},
316 {0, 0, 0, 2, 0, 1, 2, 1, 0,
317 0, 0, 0, 0, 1, 1, 2, 1, 0,
318 0, 1, 1, 2, 1, 0, 0, 2, 0,
319 2, 1, 0, 0, 2, 0, 2, 2, 1},
320 #define WIPE_T4_101 8
321 {0, 0, 1, 2, 0, 1, 1, 1, 0,
322 0, 0, 1, 1, 1, 0, 0, 2, 1,
323 1, 1, 0, 0, 2, 1, 2, 2, 1,
324 2, 0, 1, 1, 1, 0, 2, 2, 1},
327 static gint triangles_8t[][8 * 9] = {
330 {0, 0, 0, 1, 0, 1, 1, 1, 1,
331 1, 0, 1, 2, 0, 0, 1, 1, 1,
332 2, 0, 0, 1, 1, 1, 2, 1, 1,
333 1, 1, 1, 2, 1, 1, 2, 2, 0,
334 1, 1, 1, 1, 2, 1, 2, 2, 0,
335 1, 1, 1, 0, 2, 0, 1, 2, 1,
336 0, 1, 1, 1, 1, 1, 0, 2, 0,
337 0, 0, 0, 0, 1, 1, 1, 1, 1},
339 {0, 0, 1, 1, 0, 0, 1, 1, 1,
340 1, 0, 0, 2, 0, 1, 1, 1, 1,
341 2, 0, 1, 1, 1, 1, 2, 1, 2,
342 1, 1, 1, 2, 1, 2, 2, 2, 1,
343 1, 1, 1, 1, 2, 0, 2, 2, 1,
344 1, 1, 1, 0, 2, 1, 1, 2, 0,
345 0, 1, 2, 1, 1, 1, 0, 2, 1,
346 0, 0, 1, 0, 1, 2, 1, 1, 1},
348 {0, 0, 1, 1, 0, 2, 1, 1, 1,
349 1, 0, 2, 2, 0, 1, 1, 1, 1,
350 2, 0, 1, 1, 1, 1, 2, 1, 0,
351 1, 1, 1, 2, 1, 0, 2, 2, 1,
352 1, 1, 1, 1, 2, 2, 2, 2, 1,
353 1, 1, 1, 0, 2, 1, 1, 2, 2,
354 0, 1, 0, 1, 1, 1, 0, 2, 1,
355 0, 0, 1, 0, 1, 0, 1, 1, 1},
357 {0, 0, 0, 1, 0, 1, 1, 1, 0,
358 1, 0, 1, 2, 0, 0, 1, 1, 0,
359 2, 0, 0, 1, 1, 0, 2, 1, 1,
360 1, 1, 0, 2, 1, 1, 2, 2, 0,
361 1, 1, 0, 1, 2, 1, 2, 2, 0,
362 1, 1, 0, 0, 2, 0, 1, 2, 1,
363 0, 1, 1, 1, 1, 0, 0, 2, 0,
364 0, 0, 0, 0, 1, 1, 1, 1, 0},
366 {0, 0, 1, 1, 0, 0, 0, 1, 0,
367 1, 0, 0, 0, 1, 0, 1, 1, 1,
368 1, 0, 0, 2, 0, 1, 2, 1, 0,
369 1, 0, 0, 1, 1, 1, 2, 1, 0,
370 0, 1, 0, 1, 1, 1, 1, 2, 0,
371 0, 1, 0, 0, 2, 1, 1, 2, 0,
372 1, 1, 1, 2, 1, 0, 1, 2, 0,
373 2, 1, 0, 1, 2, 0, 2, 2, 1},
376 static gint triangles_16t[][16 * 9] = {
379 {0, 0, 1, 2, 0, 1, 1, 1, 0,
380 2, 0, 1, 1, 1, 0, 2, 2, 1,
381 1, 1, 0, 0, 2, 1, 2, 2, 1,
382 0, 0, 1, 1, 1, 0, 0, 2, 1,
383 2, 0, 1, 4, 0, 1, 3, 1, 0,
384 4, 0, 1, 3, 1, 0, 4, 2, 1,
385 3, 1, 0, 2, 2, 1, 4, 2, 1,
386 2, 0, 1, 3, 1, 0, 2, 2, 1,
387 0, 2, 1, 2, 2, 1, 1, 3, 0,
388 2, 2, 1, 1, 3, 0, 2, 4, 1,
389 1, 3, 0, 0, 4, 1, 2, 4, 1,
390 0, 2, 1, 1, 3, 0, 0, 4, 1,
391 2, 2, 1, 4, 2, 1, 3, 3, 0,
392 4, 2, 1, 3, 3, 0, 4, 4, 1,
393 3, 3, 0, 2, 4, 1, 4, 4, 1,
394 2, 2, 1, 3, 3, 0, 2, 4, 1}
397 typedef struct _GstWipeConfig GstWipeConfig;
399 struct _GstWipeConfig
408 static GstWipeConfig wipe_config[] = {
409 #define WIPE_CONFIG_1 0
410 {boxes_1b[WIPE_B1_1], 1, 0, 0, 0}, /* 1 */
411 #define WIPE_CONFIG_2 WIPE_CONFIG_1+1
412 {boxes_1b[WIPE_B1_2], 1, 0, 0, 0}, /* 2 */
413 #define WIPE_CONFIG_3 WIPE_CONFIG_2+1
414 {triangles_2t[WIPE_T2_3], 2, 0, 0, 0}, /* 3 */
415 #define WIPE_CONFIG_4 WIPE_CONFIG_3+1
416 {triangles_2t[WIPE_T2_4], 2, 0, 0, 0}, /* 4 */
417 #define WIPE_CONFIG_5 WIPE_CONFIG_4+1
418 {triangles_2t[WIPE_T2_5], 2, 0, 0, 0}, /* 5 */
419 #define WIPE_CONFIG_6 WIPE_CONFIG_5+1
420 {triangles_2t[WIPE_T2_6], 2, 0, 0, 0}, /* 6 */
421 #define WIPE_CONFIG_7 WIPE_CONFIG_6+1
422 {triangles_8t[WIPE_T8_7], 8, 1, 1, 0}, /* 7 */
423 #define WIPE_CONFIG_8 WIPE_CONFIG_7+1
424 {triangles_16t[WIPE_T16_8], 16, 2, 2, 0}, /* 8 */
426 #define WIPE_CONFIG_21 WIPE_CONFIG_8+1
427 {boxes_2b[WIPE_B2_21], 2, 1, 1, 0}, /* 21 */
428 #define WIPE_CONFIG_22 WIPE_CONFIG_21+1
429 {boxes_2b[WIPE_B2_22], 2, 1, 1, 0}, /* 22 */
431 #define WIPE_CONFIG_23 WIPE_CONFIG_22+1
432 {triangles_3t[WIPE_T3_23], 3, 1, 1, 0}, /* 23 */
433 #define WIPE_CONFIG_24 WIPE_CONFIG_23+1
434 {triangles_3t[WIPE_T3_24], 3, 1, 1, 0}, /* 24 */
435 #define WIPE_CONFIG_25 WIPE_CONFIG_24+1
436 {triangles_3t[WIPE_T3_23], 3, 1, 1, 0}, /* 25 */
437 #define WIPE_CONFIG_26 WIPE_CONFIG_25+1
438 {triangles_3t[WIPE_T3_26], 3, 1, 1, 0}, /* 26 */
439 #define WIPE_CONFIG_41 WIPE_CONFIG_26+1
440 {triangles_2t[WIPE_T2_41], 2, 0, 0, 1}, /* 41 */
441 #define WIPE_CONFIG_42 WIPE_CONFIG_41+1
442 {triangles_2t[WIPE_T2_42], 2, 0, 0, 1}, /* 42 */
443 #define WIPE_CONFIG_43 WIPE_CONFIG_42+1
444 {triangles_8t[WIPE_T8_43], 8, 1, 1, 1}, /* 43 */
445 #define WIPE_CONFIG_44 WIPE_CONFIG_43+1
446 {triangles_8t[WIPE_T8_44], 8, 1, 1, 1}, /* 44 */
447 #define WIPE_CONFIG_45 WIPE_CONFIG_44+1
448 {triangles_2t[WIPE_T2_45], 2, 0, 0, 0}, /* 45 */
449 #define WIPE_CONFIG_46 WIPE_CONFIG_45+1
450 {triangles_2t[WIPE_T2_46], 2, 0, 0, 0}, /* 46 */
451 #define WIPE_CONFIG_47 WIPE_CONFIG_46+1
452 {triangles_8t[WIPE_T8_47], 8, 1, 1, 0}, /* 47 */
453 #define WIPE_CONFIG_48 WIPE_CONFIG_47+1
454 {triangles_8t[WIPE_T8_48], 8, 1, 1, 0}, /* 48 */
455 #define WIPE_CONFIG_61 WIPE_CONFIG_48+1
456 {triangles_4t[WIPE_T4_61], 4, 1, 1, 1}, /* 61 */
457 #define WIPE_CONFIG_62 WIPE_CONFIG_61+1
458 {triangles_4t[WIPE_T4_62], 4, 1, 1, 1}, /* 62 */
459 #define WIPE_CONFIG_63 WIPE_CONFIG_62+1
460 {triangles_4t[WIPE_T4_63], 4, 1, 1, 1}, /* 63 */
461 #define WIPE_CONFIG_64 WIPE_CONFIG_63+1
462 {triangles_4t[WIPE_T4_64], 4, 1, 1, 1}, /* 64 */
463 #define WIPE_CONFIG_65 WIPE_CONFIG_64+1
464 {triangles_4t[WIPE_T4_65], 4, 1, 1, 0}, /* 65 */
465 #define WIPE_CONFIG_66 WIPE_CONFIG_65+1
466 {triangles_4t[WIPE_T4_66], 4, 1, 1, 0}, /* 66 */
467 #define WIPE_CONFIG_67 WIPE_CONFIG_66+1
468 {triangles_4t[WIPE_T4_67], 4, 1, 1, 0}, /* 67 */
469 #define WIPE_CONFIG_68 WIPE_CONFIG_67+1
470 {triangles_4t[WIPE_T4_68], 4, 1, 1, 0}, /* 68 */
471 #define WIPE_CONFIG_101 WIPE_CONFIG_68+1
472 {triangles_4t[WIPE_T4_101], 4, 1, 1, 0}, /* 101 */
473 #define WIPE_CONFIG_201 WIPE_CONFIG_101+1
474 {box_clock_4b[WIPE_B4_201], 4, 1, 1, 2}, /* 201 */
475 #define WIPE_CONFIG_202 WIPE_CONFIG_201+1
476 {box_clock_4b[WIPE_B4_202], 4, 1, 1, 2}, /* 202 */
477 #define WIPE_CONFIG_203 WIPE_CONFIG_202+1
478 {box_clock_4b[WIPE_B4_203], 4, 1, 1, 2}, /* 203 */
479 #define WIPE_CONFIG_204 WIPE_CONFIG_203+1
480 {box_clock_4b[WIPE_B4_204], 4, 1, 1, 2}, /* 204 */
481 #define WIPE_CONFIG_205 WIPE_CONFIG_204+1
482 {box_clock_4b[WIPE_B4_205], 4, 1, 1, 1}, /* 205 */
483 #define WIPE_CONFIG_206 WIPE_CONFIG_205+1
484 {box_clock_4b[WIPE_B4_206], 4, 1, 1, 1}, /* 206 */
485 #define WIPE_CONFIG_207 WIPE_CONFIG_206+1
486 {box_clock_4b[WIPE_B4_207], 4, 1, 1, 0}, /* 207 */
487 #define WIPE_CONFIG_211 WIPE_CONFIG_207+1
488 {box_clock_4b[WIPE_B4_211], 4, 1, 1, 1}, /* 211 */
489 #define WIPE_CONFIG_212 WIPE_CONFIG_211+1
490 {box_clock_4b[WIPE_B4_212], 4, 1, 1, 1}, /* 212 */
491 #define WIPE_CONFIG_213 WIPE_CONFIG_212+1
492 {box_clock_4b[WIPE_B4_213], 4, 1, 1, 0}, /* 213 */
493 #define WIPE_CONFIG_214 WIPE_CONFIG_213+1
494 {box_clock_4b[WIPE_B4_214], 4, 1, 1, 0}, /* 214 */
495 #define WIPE_CONFIG_221 WIPE_CONFIG_214+1
496 {box_clock_2b[WIPE_B2_221], 2, 1, 1, 1}, /* 221 */
497 #define WIPE_CONFIG_222 WIPE_CONFIG_221+1
498 {box_clock_2b[WIPE_B2_222], 2, 1, 1, 1}, /* 222 */
499 #define WIPE_CONFIG_223 WIPE_CONFIG_222+1
500 {box_clock_2b[WIPE_B2_223], 2, 1, 1, 1}, /* 223 */
501 #define WIPE_CONFIG_224 WIPE_CONFIG_223+1
502 {box_clock_2b[WIPE_B2_224], 2, 1, 1, 1}, /* 224 */
503 #define WIPE_CONFIG_225 WIPE_CONFIG_224+1
504 {box_clock_2b[WIPE_B2_225], 2, 1, 1, 0}, /* 225 */
505 #define WIPE_CONFIG_226 WIPE_CONFIG_225+1
506 {box_clock_2b[WIPE_B2_226], 2, 1, 1, 0}, /* 226 */
507 #define WIPE_CONFIG_227 WIPE_CONFIG_226+1
508 {box_clock_4b[WIPE_B4_227], 4, 1, 1, 1}, /* 227 */
509 #define WIPE_CONFIG_228 WIPE_CONFIG_227+1
510 {box_clock_4b[WIPE_B4_228], 4, 1, 1, 1}, /* 228 */
511 #define WIPE_CONFIG_231 WIPE_CONFIG_228+1
512 {box_clock_2b[WIPE_B2_231], 2, 1, 1, 0}, /* 231 */
513 #define WIPE_CONFIG_232 WIPE_CONFIG_231+1
514 {box_clock_2b[WIPE_B2_232], 2, 1, 1, 0}, /* 232 */
515 #define WIPE_CONFIG_233 WIPE_CONFIG_232+1
516 {box_clock_2b[WIPE_B2_233], 2, 1, 1, 0}, /* 233 */
517 #define WIPE_CONFIG_234 WIPE_CONFIG_233+1
518 {box_clock_2b[WIPE_B2_234], 2, 1, 1, 0}, /* 234 */
519 #define WIPE_CONFIG_235 WIPE_CONFIG_234+1
520 {box_clock_4b[WIPE_B4_235], 4, 1, 1, 0}, /* 235 */
521 #define WIPE_CONFIG_236 WIPE_CONFIG_235+1
522 {box_clock_4b[WIPE_B4_236], 4, 1, 1, 0}, /* 236 */
523 #define WIPE_CONFIG_241 WIPE_CONFIG_236+1
524 {box_clock_1b[WIPE_B1_241], 1, 0, 0, 0}, /* 241 */
525 #define WIPE_CONFIG_242 WIPE_CONFIG_241+1
526 {box_clock_1b[WIPE_B1_242], 1, 0, 0, 0}, /* 242 */
527 #define WIPE_CONFIG_243 WIPE_CONFIG_242+1
528 {box_clock_1b[WIPE_B1_243], 1, 0, 0, 0}, /* 243 */
529 #define WIPE_CONFIG_244 WIPE_CONFIG_243+1
530 {box_clock_1b[WIPE_B1_244], 1, 0, 0, 0}, /* 244 */
531 #define WIPE_CONFIG_245 WIPE_CONFIG_244+1
532 {triangles_2t[WIPE_T2_245], 2, 1, 1, 0}, /* 245 */
533 #define WIPE_CONFIG_246 WIPE_CONFIG_245+1
534 {triangles_2t[WIPE_T2_246], 2, 1, 1, 0}, /* 246 */
535 #define WIPE_CONFIG_251 WIPE_CONFIG_246+1
536 {box_clock_2b[WIPE_B2_251], 2, 1, 1, 0}, /* 251 */
537 #define WIPE_CONFIG_252 WIPE_CONFIG_251+1
538 {box_clock_2b[WIPE_B2_252], 2, 1, 1, 0}, /* 252 */
539 #define WIPE_CONFIG_253 WIPE_CONFIG_252+1
540 {box_clock_2b[WIPE_B2_253], 2, 1, 1, 0}, /* 253 */
541 #define WIPE_CONFIG_254 WIPE_CONFIG_253+1
542 {box_clock_2b[WIPE_B2_254], 2, 1, 1, 0}, /* 254 */
544 #define WIPE_CONFIG_261 WIPE_CONFIG_254+1
545 {box_clock_8b[WIPE_B8_261], 8, 2, 2, 2}, /* 261 */
546 #define WIPE_CONFIG_262 WIPE_CONFIG_261+1
547 {box_clock_8b[WIPE_B8_262], 8, 2, 2, 2}, /* 262 */
548 #define WIPE_CONFIG_263 WIPE_CONFIG_262+1
549 {box_clock_8b[WIPE_B8_263], 8, 2, 2, 1}, /* 263 */
550 #define WIPE_CONFIG_264 WIPE_CONFIG_263+1
551 {box_clock_8b[WIPE_B8_264], 8, 2, 2, 1}, /* 264 */
555 gst_wipe_boxes_draw (GstMask * mask)
557 GstWipeConfig *config = mask->user_data;
558 gint *impacts = config->objects;
559 gint width = (mask->width >> config->xscale);
560 gint height = (mask->height >> config->yscale);
561 gint depth = (1 << mask->bpp) >> config->cscale;
565 for (i = 0; i < config->nobjects; i++) {
566 switch (impacts[0]) {
568 gst_smpte_paint_vbox (mask->data, mask->width,
569 impacts[1] * width, impacts[2] * height, impacts[3] * depth,
570 impacts[4] * width, impacts[5] * height, impacts[6] * depth);
574 gst_smpte_paint_hbox (mask->data, mask->width,
575 impacts[1] * width, impacts[2] * height, impacts[3] * depth,
576 impacts[4] * width, impacts[5] * height, impacts[6] * depth);
579 gst_smpte_paint_box_clock (mask->data, mask->width,
580 impacts[1] * width, impacts[2] * height, impacts[3] * depth,
581 impacts[4] * width, impacts[5] * height, impacts[6] * depth,
582 impacts[7] * width, impacts[8] * height, impacts[9] * depth);
591 gst_wipe_triangles_clock_draw (GstMask * mask)
593 GstWipeConfig *config = mask->user_data;
594 gint *impacts = config->objects;
595 gint width = (mask->width >> config->xscale);
596 gint height = (mask->height >> config->yscale);
597 gint depth = (1 << mask->bpp) >> config->cscale;
600 for (i = 0; i < config->nobjects; i++) {
601 gst_smpte_paint_triangle_clock (mask->data, mask->width,
602 impacts[0] * width, impacts[1] * height, impacts[2] * depth,
603 impacts[3] * width, impacts[4] * height, impacts[5] * depth,
604 impacts[6] * width, impacts[7] * height, impacts[8] * depth);
610 gst_wipe_triangles_draw (GstMask * mask)
612 GstWipeConfig *config = mask->user_data;
613 gint *impacts = config->objects;
614 gint width = (mask->width >> config->xscale);
615 gint height = (mask->height >> config->yscale);
616 gint depth = (1 << mask->bpp) >> config->cscale;
620 for (i = 0; i < config->nobjects; i++) {
621 gst_smpte_paint_triangle_linear (mask->data, mask->width,
622 impacts[0] * width, impacts[1] * height, impacts[2] * depth,
623 impacts[3] * width, impacts[4] * height, impacts[5] * depth,
624 impacts[6] * width, impacts[7] * height, impacts[8] * depth);
629 static GstMaskDefinition definitions[] = {
631 "A bar moves from left to right",
632 gst_wipe_boxes_draw, _gst_mask_default_destroy,
633 &wipe_config[WIPE_CONFIG_1]},
635 "A bar moves from top to bottom",
636 gst_wipe_boxes_draw, _gst_mask_default_destroy,
637 &wipe_config[WIPE_CONFIG_2]},
639 "A box expands from the upper-left corner to the lower-right corner",
640 gst_wipe_triangles_draw, _gst_mask_default_destroy,
641 &wipe_config[WIPE_CONFIG_3]},
643 "A box expands from the upper-right corner to the lower-left corner",
644 gst_wipe_triangles_draw, _gst_mask_default_destroy,
645 &wipe_config[WIPE_CONFIG_4]},
647 "A box expands from the lower-right corner to the upper-left corner",
648 gst_wipe_triangles_draw, _gst_mask_default_destroy,
649 &wipe_config[WIPE_CONFIG_5]},
651 "A box expands from the lower-left corner to the upper-right corner",
652 gst_wipe_triangles_draw, _gst_mask_default_destroy,
653 &wipe_config[WIPE_CONFIG_6]},
654 {7, "four_box_wipe_ci",
655 "A box shape expands from each of the four corners toward the center",
656 gst_wipe_triangles_draw, _gst_mask_default_destroy,
657 &wipe_config[WIPE_CONFIG_7]},
658 {8, "four_box_wipe_co",
659 "A box shape expands from the center of each quadrant toward the corners of each quadrant",
660 gst_wipe_triangles_draw, _gst_mask_default_destroy,
661 &wipe_config[WIPE_CONFIG_8]},
663 "A central, vertical line splits and expands toward the left and right edges",
664 gst_wipe_boxes_draw, _gst_mask_default_destroy,
665 &wipe_config[WIPE_CONFIG_21]},
667 "A central, horizontal line splits and expands toward the top and bottom edges",
668 gst_wipe_boxes_draw, _gst_mask_default_destroy,
669 &wipe_config[WIPE_CONFIG_22]},
671 "A box expands from the top edge's midpoint to the bottom corners",
672 gst_wipe_triangles_draw, _gst_mask_default_destroy,
673 &wipe_config[WIPE_CONFIG_23]},
675 "A box expands from the right edge's midpoint to the left corners",
676 gst_wipe_triangles_draw, _gst_mask_default_destroy,
677 &wipe_config[WIPE_CONFIG_24]},
679 "A box expands from the bottom edge's midpoint to the top corners",
680 gst_wipe_triangles_draw, _gst_mask_default_destroy,
681 &wipe_config[WIPE_CONFIG_25]},
683 "A box expands from the left edge's midpoint to the right corners",
684 gst_wipe_triangles_draw, _gst_mask_default_destroy,
685 &wipe_config[WIPE_CONFIG_26]},
687 "A diagonal line moves from the upper-left corner to the lower-right corner",
688 gst_wipe_triangles_draw, _gst_mask_default_destroy,
689 &wipe_config[WIPE_CONFIG_41]},
691 "A diagonal line moves from the upper right corner to the lower-left corner",
692 gst_wipe_triangles_draw, _gst_mask_default_destroy,
693 &wipe_config[WIPE_CONFIG_42]},
695 "Two wedge shapes slide in from the top and bottom edges toward the center",
696 gst_wipe_triangles_draw, _gst_mask_default_destroy,
697 &wipe_config[WIPE_CONFIG_43]},
699 "Two wedge shapes slide in from the left and right edges toward the center",
700 gst_wipe_triangles_draw, _gst_mask_default_destroy,
701 &wipe_config[WIPE_CONFIG_44]},
703 "A diagonal line from the lower-left to upper-right corners splits and expands toward the opposite corners",
704 gst_wipe_triangles_draw, _gst_mask_default_destroy,
705 &wipe_config[WIPE_CONFIG_45]},
707 "A diagonal line from upper-left to lower-right corners splits and expands toward the opposite corners",
708 gst_wipe_triangles_draw, _gst_mask_default_destroy,
709 &wipe_config[WIPE_CONFIG_46]},
710 {47, "misc_diagonal_dbd",
711 "Four wedge shapes split from the center and retract toward the four edges",
712 gst_wipe_triangles_draw, _gst_mask_default_destroy,
713 &wipe_config[WIPE_CONFIG_47]},
714 {48, "misc_diagonal_dd",
715 "A diamond connecting the four edge midpoints simultaneously contracts toward the center and expands toward the edges",
716 gst_wipe_triangles_draw, _gst_mask_default_destroy,
717 &wipe_config[WIPE_CONFIG_48]},
719 "A wedge shape moves from top to bottom",
720 gst_wipe_triangles_draw, _gst_mask_default_destroy,
721 &wipe_config[WIPE_CONFIG_61]},
723 "A wedge shape moves from right to left",
724 gst_wipe_triangles_draw, _gst_mask_default_destroy,
725 &wipe_config[WIPE_CONFIG_62]},
727 "A wedge shape moves from bottom to top",
728 gst_wipe_triangles_draw, _gst_mask_default_destroy,
729 &wipe_config[WIPE_CONFIG_63]},
731 "A wedge shape moves from left to right",
732 gst_wipe_triangles_draw, _gst_mask_default_destroy,
733 &wipe_config[WIPE_CONFIG_64]},
735 "A 'V' shape extending from the bottom edge's midpoint to the opposite corners contracts toward the center and expands toward the edges",
736 gst_wipe_triangles_draw, _gst_mask_default_destroy,
737 &wipe_config[WIPE_CONFIG_65]},
739 "A 'V' shape extending from the left edge's midpoint to the opposite corners contracts toward the center and expands toward the edges",
740 gst_wipe_triangles_draw, _gst_mask_default_destroy,
741 &wipe_config[WIPE_CONFIG_66]},
743 "A 'V' shape extending from the top edge's midpoint to the opposite corners contracts toward the center and expands toward the edges",
744 gst_wipe_triangles_draw, _gst_mask_default_destroy,
745 &wipe_config[WIPE_CONFIG_67]},
747 "A 'V' shape extending from the right edge's midpoint to the opposite corners contracts toward the center and expands toward the edges",
748 gst_wipe_triangles_draw, _gst_mask_default_destroy,
749 &wipe_config[WIPE_CONFIG_68]},
751 "A rectangle expands from the center.",
752 gst_wipe_triangles_draw, _gst_mask_default_destroy,
753 &wipe_config[WIPE_CONFIG_101]},
755 "A radial hand sweeps clockwise from the twelve o'clock position",
756 gst_wipe_boxes_draw, _gst_mask_default_destroy,
757 &wipe_config[WIPE_CONFIG_201]},
759 "A radial hand sweeps clockwise from the three o'clock position",
760 gst_wipe_boxes_draw, _gst_mask_default_destroy,
761 &wipe_config[WIPE_CONFIG_202]},
763 "A radial hand sweeps clockwise from the six o'clock position",
764 gst_wipe_boxes_draw, _gst_mask_default_destroy,
765 &wipe_config[WIPE_CONFIG_203]},
767 "A radial hand sweeps clockwise from the nine o'clock position",
768 gst_wipe_boxes_draw, _gst_mask_default_destroy,
769 &wipe_config[WIPE_CONFIG_204]},
770 {205, "pinwheel_tbv",
771 "Two radial hands sweep clockwise from the twelve and six o'clock positions",
772 gst_wipe_boxes_draw, _gst_mask_default_destroy,
773 &wipe_config[WIPE_CONFIG_205]},
774 {206, "pinwheel_tbh",
775 "Two radial hands sweep clockwise from the nine and three o'clock positions",
776 gst_wipe_boxes_draw, _gst_mask_default_destroy,
777 &wipe_config[WIPE_CONFIG_206]},
779 "Four radial hands sweep clockwise",
780 gst_wipe_boxes_draw, _gst_mask_default_destroy,
781 &wipe_config[WIPE_CONFIG_207]},
783 "A fan unfolds from the top edge, the fan axis at the center",
784 gst_wipe_boxes_draw, _gst_mask_default_destroy,
785 &wipe_config[WIPE_CONFIG_211]},
787 "A fan unfolds from the right edge, the fan axis at the center",
788 gst_wipe_boxes_draw, _gst_mask_default_destroy,
789 &wipe_config[WIPE_CONFIG_212]},
790 {213, "doublefan_fov",
791 "Two fans, their axes at the center, unfold from the top and bottom",
792 gst_wipe_boxes_draw, _gst_mask_default_destroy,
793 &wipe_config[WIPE_CONFIG_213]},
794 {214, "doublefan_foh",
795 "Two fans, their axes at the center, unfold from the left and right",
796 gst_wipe_boxes_draw, _gst_mask_default_destroy,
797 &wipe_config[WIPE_CONFIG_214]},
798 {221, "singlesweep_cwt",
799 "A radial hand sweeps clockwise from the top edge's midpoint",
800 gst_wipe_boxes_draw, _gst_mask_default_destroy,
801 &wipe_config[WIPE_CONFIG_221]},
802 {222, "singlesweep_cwr",
803 "A radial hand sweeps clockwise from the right edge's midpoint",
804 gst_wipe_boxes_draw, _gst_mask_default_destroy,
805 &wipe_config[WIPE_CONFIG_222]},
806 {223, "singlesweep_cwb",
807 "A radial hand sweeps clockwise from the bottom edge's midpoint",
808 gst_wipe_boxes_draw, _gst_mask_default_destroy,
809 &wipe_config[WIPE_CONFIG_223]},
810 {224, "singlesweep_cwl",
811 "A radial hand sweeps clockwise from the left edge's midpoint",
812 gst_wipe_boxes_draw, _gst_mask_default_destroy,
813 &wipe_config[WIPE_CONFIG_224]},
814 {225, "doublesweep_pv",
815 "Two radial hands sweep clockwise and counter-clockwise from the top and bottom edges' midpoints",
816 gst_wipe_boxes_draw, _gst_mask_default_destroy,
817 &wipe_config[WIPE_CONFIG_225]},
818 {226, "doublesweep_pd",
819 "Two radial hands sweep clockwise and counter-clockwise from the left and right edges' midpoints",
820 gst_wipe_boxes_draw, _gst_mask_default_destroy,
821 &wipe_config[WIPE_CONFIG_226]},
822 {227, "doublesweep_ov",
823 "Two radial hands attached at the top and bottom edges' midpoints sweep from right to left",
824 gst_wipe_boxes_draw, _gst_mask_default_destroy,
825 &wipe_config[WIPE_CONFIG_227]},
826 {228, "doublesweep_oh",
827 "Two radial hands attached at the left and right edges' midpoints sweep from top to bottom",
828 gst_wipe_boxes_draw, _gst_mask_default_destroy,
829 &wipe_config[WIPE_CONFIG_228]},
831 "A fan unfolds from the bottom, the fan axis at the top edge's midpoint",
832 gst_wipe_boxes_draw, _gst_mask_default_destroy,
833 &wipe_config[WIPE_CONFIG_231]},
835 "A fan unfolds from the left, the fan axis at the right edge's midpoint",
836 gst_wipe_boxes_draw, _gst_mask_default_destroy,
837 &wipe_config[WIPE_CONFIG_232]},
839 "A fan unfolds from the top, the fan axis at the bottom edge's midpoint",
840 gst_wipe_boxes_draw, _gst_mask_default_destroy,
841 &wipe_config[WIPE_CONFIG_233]},
843 "A fan unfolds from the right, the fan axis at the left edge's midpoint",
844 gst_wipe_boxes_draw, _gst_mask_default_destroy,
845 &wipe_config[WIPE_CONFIG_234]},
846 {235, "doublefan_fiv",
847 "Two fans, their axes at the top and bottom, unfold from the center",
848 gst_wipe_boxes_draw, _gst_mask_default_destroy,
849 &wipe_config[WIPE_CONFIG_235]},
850 {236, "doublefan_fih",
851 "Two fans, their axes at the left and right, unfold from the center",
852 gst_wipe_boxes_draw, _gst_mask_default_destroy,
853 &wipe_config[WIPE_CONFIG_236]},
854 {241, "singlesweep_cwtl",
855 "A radial hand sweeps clockwise from the upper-left corner",
856 gst_wipe_boxes_draw, _gst_mask_default_destroy,
857 &wipe_config[WIPE_CONFIG_241]},
858 {242, "singlesweep_cwbl",
859 "A radial hand sweeps counter-clockwise from the lower-left corner.",
860 gst_wipe_boxes_draw, _gst_mask_default_destroy,
861 &wipe_config[WIPE_CONFIG_242]},
862 {243, "singlesweep_cwbr",
863 "A radial hand sweeps clockwise from the lower-right corner",
864 gst_wipe_boxes_draw, _gst_mask_default_destroy,
865 &wipe_config[WIPE_CONFIG_243]},
866 {244, "singlesweep_cwtr",
867 "A radial hand sweeps counter-clockwise from the upper-right corner",
868 gst_wipe_boxes_draw, _gst_mask_default_destroy,
869 &wipe_config[WIPE_CONFIG_244]},
870 {245, "doublesweep_pdtl",
871 "Two radial hands attached at the upper-left and lower-right corners sweep down and up",
872 gst_wipe_triangles_clock_draw, _gst_mask_default_destroy,
873 &wipe_config[WIPE_CONFIG_245]},
874 {246, "doublesweep_pdbl",
875 "Two radial hands attached at the lower-left and upper-right corners sweep down and up",
876 gst_wipe_triangles_clock_draw, _gst_mask_default_destroy,
877 &wipe_config[WIPE_CONFIG_246]},
878 {251, "saloondoor_t",
879 "Two radial hands attached at the upper-left and upper-right corners sweep down",
880 gst_wipe_boxes_draw, _gst_mask_default_destroy,
881 &wipe_config[WIPE_CONFIG_251]},
882 {252, "saloondoor_l",
883 "Two radial hands attached at the upper-left and lower-left corners sweep to the right",
884 gst_wipe_boxes_draw, _gst_mask_default_destroy,
885 &wipe_config[WIPE_CONFIG_252]},
886 {253, "saloondoor_b",
887 "Two radial hands attached at the lower-left and lower-right corners sweep up",
888 gst_wipe_boxes_draw, _gst_mask_default_destroy,
889 &wipe_config[WIPE_CONFIG_253]},
890 {254, "saloondoor_r",
891 "Two radial hands attached at the upper-right and lower-right corners sweep to the left",
892 gst_wipe_boxes_draw, _gst_mask_default_destroy,
893 &wipe_config[WIPE_CONFIG_254]},
894 {261, "windshield_r",
895 "Two radial hands attached at the midpoints of the top and bottom halves sweep from right to left",
896 gst_wipe_boxes_draw, _gst_mask_default_destroy,
897 &wipe_config[WIPE_CONFIG_261]},
898 {262, "windshield_u",
899 "Two radial hands attached at the midpoints of the left and right halves sweep from top to bottom",
900 gst_wipe_boxes_draw, _gst_mask_default_destroy,
901 &wipe_config[WIPE_CONFIG_262]},
902 {263, "windshield_v",
903 "Two sets of radial hands attached at the midpoints of the top and bottom halves sweep from top to bottom and bottom to top",
904 gst_wipe_boxes_draw, _gst_mask_default_destroy,
905 &wipe_config[WIPE_CONFIG_263]},
906 {264, "windshield_h",
907 "Two sets of radial hands attached at the midpoints of the left and right halves sweep from left to right and right to left",
908 gst_wipe_boxes_draw, _gst_mask_default_destroy,
909 &wipe_config[WIPE_CONFIG_264]},
910 {0, NULL, NULL, NULL}
914 _gst_barboxwipes_register (void)
918 while (definitions[i].short_name) {
919 _gst_mask_register (&definitions[i]);