PageRenderTime 29ms CodeModel.GetById 15ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/pods/SDL/GFX/ImageFilter.pod

http://github.com/PerlGameDev/SDL
Unknown | 553 lines | 460 code | 93 blank | 0 comment | 0 complexity | c9ee0eca219e41c96828bfe56e76a97a MD5 | raw file
  1
  2=head1 NAME
  3
  4SDL::GFX::ImageFilter - image filtering functions
  5
  6=head1 CATEGORY
  7
  8TODO, GFX
  9
 10=head1 METHODS
 11
 12=head2 MMX_detect
 13
 14int
 15gfx_image_MMX_detect()
 16	CODE:
 17		SDL_imageFilterMMXdetect();
 18
 19=head2 MMX_off
 20
 21void
 22gfx_image_MMX_off()
 23	CODE:
 24		SDL_imageFilterMMXoff();
 25
 26=head2 MMX_on
 27
 28void
 29gfx_image_MMX_on()
 30	CODE:
 31		SDL_imageFilterMMXon();
 32
 33=head2 add
 34
 35int
 36gfx_image_add(Src1, Src2, Dest, length)
 37	unsigned char *Src1
 38	unsigned char *Src2
 39	unsigned char *Dest
 40	int length
 41	CODE:
 42		RETVAL = SDL_imageFilterAdd(Src1, Src2, Dest, length);
 43	OUTPUT:
 44		RETVAL
 45
 46=head2 mean
 47
 48int
 49gfx_image_mean(Src1, Src2, Dest, length)
 50	unsigned char *Src1
 51	unsigned char *Src2
 52	unsigned char *Dest
 53	int length
 54	CODE:
 55		RETVAL = SDL_imageFilterMean(Src1, Src2, Dest, length);
 56	OUTPUT:
 57		RETVAL
 58
 59=head2 sub
 60
 61int
 62gfx_image_sub(Src1, Src2, Dest, length)
 63	unsigned char *Src1
 64	unsigned char *Src2
 65	unsigned char *Dest
 66	int length
 67	CODE:
 68		RETVAL = SDL_imageFilterSub(Src1, Src2, Dest, length);
 69	OUTPUT:
 70		RETVAL
 71
 72=head2 abs_diff
 73
 74int
 75gfx_image_abs_diff(Src1, Src2, Dest, length)
 76	unsigned char *Src1
 77	unsigned char *Src2
 78	unsigned char *Dest
 79	int length
 80	CODE:
 81		RETVAL = SDL_imageFilterAbsDiff(Src1, Src2, Dest, length);
 82	OUTPUT:
 83		RETVAL
 84
 85=head2 mult
 86
 87int
 88gfx_image_mult(Src1, Src2, Dest, length)
 89	unsigned char *Src1
 90	unsigned char *Src2
 91	unsigned char *Dest
 92	int length
 93	CODE:
 94		RETVAL = SDL_imageFilterMult(Src1, Src2, Dest, length);
 95	OUTPUT:
 96		RETVAL
 97
 98=head2 mult_nor
 99
100int
101gfx_image_mult_nor(Src1, Src2, Dest, length)
102	unsigned char *Src1
103	unsigned char *Src2
104	unsigned char *Dest
105	int length
106	CODE:
107		RETVAL = SDL_imageFilterMultNor(Src1, Src2, Dest, length);
108	OUTPUT:
109		RETVAL
110
111=head2 mult_div_by_2
112
113int
114gfx_image_mult_div_by_2(Src1, Src2, Dest, length)
115	unsigned char *Src1
116	unsigned char *Src2
117	unsigned char *Dest
118	int length
119	CODE:
120		RETVAL = SDL_imageFilterMultDivby2(Src1, Src2, Dest, length);
121	OUTPUT:
122		RETVAL
123
124=head2 mult_div_by_4
125
126int
127gfx_image_mult_div_by_4(Src1, Src2, Dest, length)
128	unsigned char *Src1
129	unsigned char *Src2
130	unsigned char *Dest
131	int length
132	CODE:
133		RETVAL = SDL_imageFilterMultDivby4(Src1, Src2, Dest, length);
134	OUTPUT:
135		RETVAL
136
137=head2 bit_and
138
139int
140gfx_image_bit_and(Src1, Src2, Dest, length)
141	unsigned char *Src1
142	unsigned char *Src2
143	unsigned char *Dest
144	int length
145	CODE:
146		RETVAL = SDL_imageFilterBitAnd(Src1, Src2, Dest, length);
147	OUTPUT:
148		RETVAL
149
150=head2 bit_or
151
152int
153gfx_image_bit_or(Src1, Src2, Dest, length)
154	unsigned char *Src1
155	unsigned char *Src2
156	unsigned char *Dest
157	int length
158	CODE:
159		RETVAL = SDL_imageFilterBitOr(Src1, Src2, Dest, length);
160	OUTPUT:
161		RETVAL
162
163=head2 div
164
165int
166gfx_image_div(Src1, Src2, Dest, length)
167	unsigned char *Src1
168	unsigned char *Src2
169	unsigned char *Dest
170	int length
171	CODE:
172		RETVAL = SDL_imageFilterDiv(Src1, Src2, Dest, length);
173	OUTPUT:
174		RETVAL
175
176=head2 bit_negation
177
178int
179gfx_image_bit_negation(Src1, Dest, length)
180	unsigned char *Src1
181	unsigned char *Dest
182	int length
183	CODE:
184		RETVAL = SDL_imageFilterBitNegation(Src1, Dest, length);
185	OUTPUT:
186		RETVAL
187
188=head2 add_byte
189
190int
191gfx_image_add_byte(Src1, Dest, length, C)
192	unsigned char *Src1
193	unsigned char *Dest
194	int length
195	unsigned char C
196	CODE:
197		RETVAL = SDL_imageFilterAddByte(Src1, Dest, length, C);
198	OUTPUT:
199		RETVAL
200
201=head2 add_uint
202
203int
204gfx_image_add_uint(Src1, Dest, length, C)
205	unsigned char *Src1
206	unsigned char *Dest
207	int length
208	unsigned int C
209	CODE:
210		RETVAL = SDL_imageFilterAddUint(Src1, Dest, length, C);
211	OUTPUT:
212		RETVAL
213
214=head2 add_byte_to_half
215
216int
217gfx_image_add_byte_to_half(Src1, Dest, length, C)
218	unsigned char *Src1
219	unsigned char *Dest
220	int length
221	unsigned char C
222	CODE:
223		RETVAL = SDL_imageFilterAddByteToHalf(Src1, Dest, length, C);
224	OUTPUT:
225		RETVAL
226
227=head2 sub_byte
228
229int
230gfx_image_sub_byte(Src1, Dest, length, C)
231	unsigned char *Src1
232	unsigned char *Dest
233	int length
234	unsigned char C
235	CODE:
236		RETVAL = SDL_imageFilterSubByte(Src1, Dest, length, C);
237	OUTPUT:
238		RETVAL
239
240=head2 sub_uint
241
242int
243gfx_image_sub_uint(Src1, Dest, length, C)
244	unsigned char *Src1
245	unsigned char *Dest
246	int length
247	unsigned int C
248	CODE:
249		RETVAL = SDL_imageFilterSubUint(Src1, Dest, length, C);
250	OUTPUT:
251		RETVAL
252
253=head2 shift_right
254
255int
256gfx_image_shift_right(Src1, Dest, length, N)
257	unsigned char *Src1
258	unsigned char *Dest
259	int length
260	unsigned char N
261	CODE:
262		RETVAL = SDL_imageFilterShiftRight(Src1, Dest, length, N);
263	OUTPUT:
264		RETVAL
265
266=head2 shift_right_uint
267
268int
269gfx_image_shift_right_uint(Src1, Dest, length, N)
270	unsigned char *Src1
271	unsigned char *Dest
272	int length
273	unsigned char N
274	CODE:
275		RETVAL = SDL_imageFilterShiftRightUint(Src1, Dest, length, N);
276	OUTPUT:
277		RETVAL
278
279=head2 mult_by_byte
280
281int
282gfx_image_mult_by_byte(Src1, Dest, length, C)
283	unsigned char *Src1
284	unsigned char *Dest
285	int length
286	unsigned char C
287	CODE:
288		RETVAL = SDL_imageFilterMultByByte(Src1, Dest, length, C);
289	OUTPUT:
290		RETVAL
291
292=head2 shift_right_and_mult_by_byte
293
294int
295gfx_image_shift_right_and_mult_by_byte(Src1, Dest, length, N, C)
296	unsigned char *Src1
297	unsigned char *Dest
298	int length
299	unsigned char N
300	unsigned char C
301	CODE:
302		RETVAL = SDL_imageFilterShiftRightAndMultByByte(Src1, Dest, length, N, C);
303	OUTPUT:
304		RETVAL
305
306=head2 shift_left_byte
307
308int
309gfx_image_shift_left_byte(Src1, Dest, length, N)
310	unsigned char *Src1
311	unsigned char *Dest
312	int length
313	unsigned char N
314	CODE:
315		RETVAL = SDL_imageFilterShiftLeftByte(Src1, Dest, length, N);
316	OUTPUT:
317		RETVAL
318
319=head2 shift_left_uint
320
321int
322gfx_image_shift_left_uint(Src1, Dest, length, N)
323	unsigned char *Src1
324	unsigned char *Dest
325	int length
326	unsigned char N
327	CODE:
328		RETVAL = SDL_imageFilterShiftLeftUint(Src1, Dest, length, N);
329	OUTPUT:
330		RETVAL
331
332=head2 shift_left
333
334int
335gfx_image_shift_left(Src1, Dest, length, N)
336	unsigned char *Src1
337	unsigned char *Dest
338	int length
339	unsigned char N
340	CODE:
341		RETVAL = SDL_imageFilterShiftLeft(Src1, Dest, length, N);
342	OUTPUT:
343		RETVAL
344
345=head2 binarize_using_threshold
346
347int
348gfx_image_binarize_using_threshold(Src1, Dest, length, T)
349	unsigned char *Src1
350	unsigned char *Dest
351	int length
352	unsigned char T
353	CODE:
354		RETVAL = SDL_imageFilterBinarizeUsingThreshold(Src1, Dest, length, T);
355	OUTPUT:
356		RETVAL
357
358=head2 clip_to_range
359
360int
361gfx_image_clip_to_range(Src1, Dest, length, Tmin, Tmax)
362	unsigned char *Src1
363	unsigned char *Dest
364	int length
365	unsigned char Tmin
366	unsigned char Tmax
367	CODE:
368		RETVAL = SDL_imageFilterClipToRange(Src1, Dest, length, Tmin, Tmax);
369	OUTPUT:
370		RETVAL
371
372=head2 normalize_linear
373
374int
375gfx_image_normalize_linear(Src1, Dest, length, Cmin, Cmax, Nmin, Nmax)
376	unsigned char *Src1
377	unsigned char *Dest
378	int length
379	int Cmin
380	int Cmax
381	int Nmin
382	int Nmax
383	CODE:
384		RETVAL = SDL_imageFilterNormalizeLinear(Src1, Dest, length, Cmin, Cmax, Nmin, Nmax);
385	OUTPUT:
386		RETVAL
387
388=head2 convolve_kernel_3x3_divide
389
390int
391gfx_image_convolve_kernel_3x3_divide(Src, Dest, rows, columns, Kernel, Divisor)
392	unsigned char *Src
393	unsigned char *Dest
394	int rows
395	int columns
396	Sint16 *Kernel
397	unsigned char Divisor
398	CODE:
399		RETVAL = SDL_imageFilterConvolveKernel3x3Divide(Src, Dest, rows, columns, Kernel, Divisor);
400	OUTPUT:
401		RETVAL
402
403=head2 convolve_kernel_5x5_divide
404
405int
406gfx_image_convolve_kernel_5x5_divide(Src, Dest, rows, columns, Kernel, Divisor)
407	unsigned char *Src
408	unsigned char *Dest
409	int rows
410	int columns
411	Sint16 *Kernel
412	unsigned char Divisor
413	CODE:
414		RETVAL = SDL_imageFilterConvolveKernel5x5Divide(Src, Dest, rows, columns, Kernel, Divisor);
415	OUTPUT:
416		RETVAL
417
418=head2 convolve_kernel_7x7_divide
419
420int
421gfx_image_convolve_kernel_7x7_divide(Src, Dest, rows, columns, Kernel, Divisor)
422	unsigned char *Src
423	unsigned char *Dest
424	int rows
425	int columns
426	Sint16 *Kernel
427	unsigned char Divisor
428	CODE:
429		RETVAL = SDL_imageFilterConvolveKernel7x7Divide(Src, Dest, rows, columns, Kernel, Divisor);
430	OUTPUT:
431		RETVAL
432
433=head2 convolve_kernel_9x9_divide
434
435int
436gfx_image_convolve_kernel_9x9_divide(Src, Dest, rows, columns, Kernel, Divisor)
437	unsigned char *Src
438	unsigned char *Dest
439	int rows
440	int columns
441	Sint16 *Kernel
442	unsigned char Divisor
443	CODE:
444		RETVAL = SDL_imageFilterConvolveKernel9x9Divide(Src, Dest, rows, columns, Kernel, Divisor);
445	OUTPUT:
446		RETVAL
447
448=head2 convolve_kernel_3x3_shift_right
449
450int
451gfx_image_convolve_kernel_3x3_shift_right(Src, Dest, rows, columns, Kernel, NRightShift)
452	unsigned char *Src
453	unsigned char *Dest
454	int rows
455	int columns
456	Sint16 *Kernel
457	unsigned char NRightShift
458	CODE:
459		RETVAL = SDL_imageFilterConvolveKernel3x3ShiftRight(Src, Dest, rows, columns, Kernel, NRightShift);
460	OUTPUT:
461		RETVAL
462
463=head2 convolve_kernel_5x5_shift_right
464
465int
466gfx_image_convolve_kernel_5x5_shift_right(Src, Dest, rows, columns, Kernel, NRightShift)
467	unsigned char *Src
468	unsigned char *Dest
469	int rows
470	int columns
471	Sint16 *Kernel
472	unsigned char NRightShift
473	CODE:
474		RETVAL = SDL_imageFilterConvolveKernel5x5ShiftRight(Src, Dest, rows, columns, Kernel, NRightShift);
475	OUTPUT:
476		RETVAL
477
478=head2 convolve_kernel_7x7_shift_right
479
480int
481gfx_image_convolve_kernel_7x7_shift_right(Src, Dest, rows, columns, Kernel, NRightShift)
482	unsigned char *Src
483	unsigned char *Dest
484	int rows
485	int columns
486	Sint16 *Kernel
487	unsigned char NRightShift
488	CODE:
489		RETVAL = SDL_imageFilterConvolveKernel7x7ShiftRight(Src, Dest, rows, columns, Kernel, NRightShift);
490	OUTPUT:
491		RETVAL
492
493=head2 convolve_kernel_9x9_shift_right
494
495int
496gfx_image_convolve_kernel_9x9_shift_right(Src, Dest, rows, columns, Kernel, NRightShift)
497	unsigned char *Src
498	unsigned char *Dest
499	int rows
500	int columns
501	Sint16 *Kernel
502	unsigned char NRightShift
503	CODE:
504		RETVAL = SDL_imageFilterConvolveKernel9x9ShiftRight(Src, Dest, rows, columns, Kernel, NRightShift);
505	OUTPUT:
506		RETVAL
507
508=head2 sobel_x
509
510int
511gfx_image_sobel_x(Src, Dest, rows, columns)
512	unsigned char *Src
513	unsigned char *Dest
514	int rows
515	int columns
516	CODE:
517		RETVAL = SDL_imageFilterSobelX(Src, Dest, rows, columns);
518	OUTPUT:
519		RETVAL
520
521=head2 sobel_x_shift_right
522
523int
524gfx_image_sobel_x_shift_right(Src, Dest, rows, columns, NRightShift)
525	unsigned char *Src
526	unsigned char *Dest
527	int rows
528	int columns
529	unsigned char NRightShift
530	CODE:
531		RETVAL = SDL_imageFilterSobelXShiftRight(Src, Dest, rows, columns, NRightShift);
532	OUTPUT:
533		RETVAL
534
535=head2 align_stack
536
537void
538gfx_image_align_stack()
539	CODE:
540		SDL_imageFilterAlignStack();
541
542=head2 restore_stack
543
544void
545gfx_image_restore_stack()
546	CODE:
547		SDL_imageFilterRestoreStack();
548
549
550=head1 AUTHORS
551
552See L<SDL/AUTHORS>.
553