make swfdec_as_object_mark() only mark if not marked yet
[swfdec.git] / swfdec / swfdec_convolution_matrix.h
blob12d578ab6581bd9529761050fb3d253db33ed6ab
1 /* Swfdec
2 * Copyright (C) 2008 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
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 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifndef _SWFDEC_CONVOLUTION_MATRIX_H_
21 #define _SWFDEC_CONVOLUTION_MATRIX_H_
23 #include <glib.h>
25 G_BEGIN_DECLS
28 typedef struct _SwfdecConvolutionMatrix SwfdecConvolutionMatrix;
30 SwfdecConvolutionMatrix *
31 swfdec_convolution_matrix_new (guint width,
32 guint height);
33 void swfdec_convolution_matrix_free (SwfdecConvolutionMatrix * matrix);
35 void swfdec_convolution_matrix_set (SwfdecConvolutionMatrix * matrix,
36 guint x,
37 guint y,
38 double value);
39 double swfdec_convolution_matrix_get (SwfdecConvolutionMatrix * matrix,
40 guint x,
41 guint y);
42 guint swfdec_convolution_matrix_get_width (SwfdecConvolutionMatrix * matrix);
43 guint swfdec_convolution_matrix_get_height (SwfdecConvolutionMatrix * matrix);
44 void swfdec_convolution_matrix_apply (SwfdecConvolutionMatrix * matrix,
45 guint width,
46 guint height,
47 guint8 * tdata,
48 guint tstride,
49 const guint8 * sdata,
50 guint sstride);
53 G_END_DECLS
54 #endif