2002-02-15 03:31:16 +08:00
|
|
|
/* gimppaintcore-kernels.h
|
2000-05-29 16:40:29 +08:00
|
|
|
*
|
|
|
|
* This file was generated using kernelgen as found in the tools dir.
|
|
|
|
* (threshold = 0.25)
|
|
|
|
*/
|
|
|
|
|
2002-02-15 03:31:16 +08:00
|
|
|
#ifndef __GIMP_PAINT_CORE_KERNELS_H__
|
|
|
|
#define __GIMP_PAINT_CORE_KERNELS_H__
|
|
|
|
|
2002-02-13 22:50:37 +08:00
|
|
|
#define KERNEL_WIDTH 3
|
|
|
|
#define KERNEL_HEIGHT 3
|
|
|
|
#define KERNEL_SUBSAMPLE 4
|
2000-05-29 16:40:29 +08:00
|
|
|
|
|
|
|
|
|
|
|
/* Brush pixel subsampling kernels */
|
2002-02-15 03:31:16 +08:00
|
|
|
static const int subsample[5][5][9] =
|
|
|
|
{
|
2000-05-29 16:40:29 +08:00
|
|
|
{
|
|
|
|
{ 64, 64, 0, 64, 64, 0, 0, 0, 0, },
|
|
|
|
{ 25, 102, 0, 25, 102, 0, 0, 0, 0, },
|
|
|
|
{ 0, 128, 0, 0, 128, 0, 0, 0, 0, },
|
|
|
|
{ 0, 102, 25, 0, 102, 25, 0, 0, 0, },
|
2003-07-14 22:14:30 +08:00
|
|
|
{ 0, 64, 64, 0, 64, 64, 0, 0, 0, }
|
2000-05-29 16:40:29 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
{ 25, 25, 0, 102, 102, 0, 0, 0, 0, },
|
|
|
|
{ 6, 43, 0, 43, 162, 0, 0, 0, 0, },
|
|
|
|
{ 0, 50, 0, 0, 205, 0, 0, 0, 0, },
|
|
|
|
{ 0, 43, 6, 0, 162, 43, 0, 0, 0, },
|
2003-07-14 22:14:30 +08:00
|
|
|
{ 0, 25, 25, 0, 102, 102, 0, 0, 0, }
|
2000-05-29 16:40:29 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
{ 0, 0, 0, 128, 128, 0, 0, 0, 0, },
|
|
|
|
{ 0, 0, 0, 50, 205, 0, 0, 0, 0, },
|
|
|
|
{ 0, 0, 0, 0, 256, 0, 0, 0, 0, },
|
|
|
|
{ 0, 0, 0, 0, 205, 50, 0, 0, 0, },
|
2003-07-14 22:14:30 +08:00
|
|
|
{ 0, 0, 0, 0, 128, 128, 0, 0, 0, }
|
2000-05-29 16:40:29 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
{ 0, 0, 0, 102, 102, 0, 25, 25, 0, },
|
|
|
|
{ 0, 0, 0, 43, 162, 0, 6, 43, 0, },
|
|
|
|
{ 0, 0, 0, 0, 205, 0, 0, 50, 0, },
|
|
|
|
{ 0, 0, 0, 0, 162, 43, 0, 43, 6, },
|
2003-07-14 22:14:30 +08:00
|
|
|
{ 0, 0, 0, 0, 102, 102, 0, 25, 25, }
|
2000-05-29 16:40:29 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
{ 0, 0, 0, 64, 64, 0, 64, 64, 0, },
|
|
|
|
{ 0, 0, 0, 25, 102, 0, 25, 102, 0, },
|
|
|
|
{ 0, 0, 0, 0, 128, 0, 0, 128, 0, },
|
|
|
|
{ 0, 0, 0, 0, 102, 25, 0, 102, 25, },
|
2003-07-14 22:14:30 +08:00
|
|
|
{ 0, 0, 0, 0, 64, 64, 0, 64, 64, }
|
|
|
|
}
|
2000-05-29 16:40:29 +08:00
|
|
|
};
|
2002-02-15 03:31:16 +08:00
|
|
|
|
|
|
|
#endif /* __GIMP_PAINT_CORE_KERNELS_H__ */
|