~macslow/cairo-countdown/trunk

« back to all changes in this revision

Viewing changes to gaussian-blur.h

  • Committer: Mirco Müller
  • Date: 2014-04-18 17:38:09 UTC
  • Revision ID: mirco.mueller@ubuntu.com-20140418173809-f9g2s6fjnr938few
Use pixman-convolution-based 2-pass 1D-gaussian-blur in ANSI-C version... started porting that to the Python version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
////////////////////////////////////////////////////////////////////////////////
2
 
//3456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
3
 
//      10        20        30        40        50        60        70        80
4
 
//
5
 
// notify-osd
6
 
//
7
 
// gaussian-blur.h - implements gaussian-blur function
8
 
//
9
 
// Copyright 2009 Canonical Ltd.
10
 
//
11
 
// Authors:
12
 
//    Mirco "MacSlow" Mueller <mirco.mueller@canonical.com>
13
 
//
14
 
// Notes:
15
 
//    based on filters in libpixman
16
 
//
17
 
// This program is free software: you can redistribute it and/or modify it
18
 
// under the terms of the GNU General Public License version 3, as published
19
 
// by the Free Software Foundation.
20
 
//
21
 
// This program is distributed in the hope that it will be useful, but
22
 
// WITHOUT ANY WARRANTY; without even the implied warranties of
23
 
// MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
24
 
// PURPOSE.  See the GNU General Public License for more details.
25
 
//
26
 
// You should have received a copy of the GNU General Public License along
27
 
// with this program.  If not, see <http://www.gnu.org/licenses/>.
28
 
//
29
 
////////////////////////////////////////////////////////////////////////////////
30
 
 
31
 
#ifndef _GAUSSIAN_BLUR_H
32
 
#define _GAUSSIAN_BLUR_H
33
 
 
34
 
#include <glib.h>
35
 
#include <cairo.h>
36
 
 
37
 
void
38
 
surface_gaussian_blur (cairo_surface_t* surface,
39
 
                       guint            radius);
40
 
 
41
 
#endif // _GAUSSIAN_BLUR_H
42