/usr/include/gegl-0.3/npd/graphics.h is in libgegl-dev 0.3.4-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | /*
* This file is part of N-point image deformation library.
*
* N-point image deformation library is free software: you can
* redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by
* the Free Software Foundation; either version 3 of the License,
* or (at your option) any later version.
*
* N-point image deformation library is distributed in the hope
* that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with N-point image deformation library.
* If not, see <http://www.gnu.org/licenses/>.
*
* Copyright (C) 2013 Marek Dvoroznak <dvoromar@gmail.com>
*/
#ifndef __NPD_GRAPHICS_H__
#define __NPD_GRAPHICS_H__
#include "npd_common.h"
struct _NPDColor
{
union {
guint32 color;
struct {
guint8 r;
guint8 g;
guint8 b;
guint8 a;
};
};
};
typedef enum
{
NPD_BILINEAR_INTERPOLATION = 1,
NPD_ALPHA_BLENDING = 1 << 1
} NPDSettings;
void npd_create_model_from_image (NPDModel *model,
NPDImage *image,
gint width,
gint height,
gint position_x,
gint position_y,
gint square_size);
void npd_draw_model_into_image (NPDModel *model,
NPDImage *image);
void npd_draw_mesh (NPDModel *model,
NPDDisplay *display);
gboolean npd_is_color_transparent (NPDColor *color);
extern void (*npd_draw_line) (NPDDisplay *display,
gfloat x0,
gfloat y0,
gfloat x1,
gfloat y1);
extern void (*npd_process_pixel) (NPDImage *input_image,
gfloat ix,
gfloat iy,
NPDImage *output_image,
gfloat ox,
gfloat oy,
NPDSettings settings);
void npd_process_pixel_bilinear (NPDImage *input_image,
gfloat ix,
gfloat iy,
NPDImage *output_image,
gfloat ox,
gfloat oy,
NPDSettings settings);
extern void (*npd_get_pixel_color) (NPDImage *image,
gint x,
gint y,
NPDColor *color);
extern void (*npd_set_pixel_color) (NPDImage *image,
gint x,
gint y,
NPDColor *color);
#endif /*__NPD_GRAPHICS_H__ */
|