File: gimpbrushcore-kernels.h

package info (click to toggle)
gimp 2.2.13-1etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 94,832 kB
  • ctags: 47,113
  • sloc: ansic: 524,858; xml: 36,798; lisp: 9,870; sh: 9,409; makefile: 7,923; python: 2,674; perl: 2,589; yacc: 520; lex: 334
file content (56 lines) | stat: -rw-r--r-- 1,836 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* gimpbrushcore-kernels.h
 *
 *   This file was generated using kernelgen as found in the tools dir.
 *   (threshold = 0.25)
 */

#ifndef __GIMP_BRUSH_CORE_KERNELS_H__
#define __GIMP_BRUSH_CORE_KERNELS_H__

#define KERNEL_WIDTH     3
#define KERNEL_HEIGHT    3
#define KERNEL_SUBSAMPLE 4
#define KERNEL_SUM       256


/*  Brush pixel subsampling kernels  */
static const int subsample[5][5][9] =
{
  {
    {  64,  64,   0,  64,  64,   0,   0,   0,   0, },
    {  25, 103,   0,  25, 103,   0,   0,   0,   0, },
    {   0, 128,   0,   0, 128,   0,   0,   0,   0, },
    {   0, 103,  25,   0, 103,  25,   0,   0,   0, },
    {   0,  64,  64,   0,  64,  64,   0,   0,   0, }
  },
  {
    {  25,  25,   0, 103, 103,   0,   0,   0,   0, },
    {   6,  44,   0,  44, 162,   0,   0,   0,   0, },
    {   0,  50,   0,   0, 206,   0,   0,   0,   0, },
    {   0,  44,   6,   0, 162,  44,   0,   0,   0, },
    {   0,  25,  25,   0, 103, 103,   0,   0,   0, }
  },
  {
    {   0,   0,   0, 128, 128,   0,   0,   0,   0, },
    {   0,   0,   0,  50, 206,   0,   0,   0,   0, },
    {   0,   0,   0,   0, 256,   0,   0,   0,   0, },
    {   0,   0,   0,   0, 206,  50,   0,   0,   0, },
    {   0,   0,   0,   0, 128, 128,   0,   0,   0, }
  },
  {
    {   0,   0,   0, 103, 103,   0,  25,  25,   0, },
    {   0,   0,   0,  44, 162,   0,   6,  44,   0, },
    {   0,   0,   0,   0, 206,   0,   0,  50,   0, },
    {   0,   0,   0,   0, 162,  44,   0,  44,   6, },
    {   0,   0,   0,   0, 103, 103,   0,  25,  25, }
  },
  {
    {   0,   0,   0,  64,  64,   0,  64,  64,   0, },
    {   0,   0,   0,  25, 103,   0,  25, 103,   0, },
    {   0,   0,   0,   0, 128,   0,   0, 128,   0, },
    {   0,   0,   0,   0, 103,  25,   0, 103,  25, },
    {   0,   0,   0,   0,  64,  64,   0,  64,  64, }
  }
};

#endif /* __GIMP_BRUSH_CORE_KERNELS_H__ */