GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_sepia.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2009-2013 Cyril Hrubis <metan@ucw.cz>
4 */
5
6#ifndef FILTERS_GP_SEPIA_H
7#define FILTERS_GP_SEPIA_H
8
9#include <filters/gp_filter.h>
10
11int gp_filter_sepia_ex(const gp_pixmap *const src,
12 gp_coord x_src, gp_coord y_src,
13 gp_size w_src, gp_size h_src,
14 gp_pixmap *dst,
15 gp_coord x_dst, gp_coord y_dst,
16 gp_progress_cb *callback);
17
18static inline int gp_filter_sepia(const gp_pixmap *const src,
19 gp_pixmap *dst,
20 gp_progress_cb *callback)
21{
22 return gp_filter_sepia_ex(src, 0, 0, src->w, src->h,
23 dst, 0, 0, callback);
24}
25
26gp_pixmap *gp_filter_sepia_ex_alloc(const gp_pixmap *const src,
27 gp_coord x_src, gp_coord y_src,
28 gp_size w_src, gp_size h_src,
29 gp_pixel_type dst_pixel_type,
30 gp_progress_cb *callback);
31
32static inline gp_pixmap *gp_filter_sepia_alloc(const gp_pixmap *const src,
33 gp_pixel_type dst_pixel_type,
34 gp_progress_cb *callback)
35{
36 return gp_filter_sepia_ex_alloc(src, 0, 0, src->w, src->h,
37 dst_pixel_type, callback);
38}
39
40#endif /* FILTERS_GP_SEPIA_H */
int gp_coord
Integer type for coordinates i.e. x, y, ...
Definition gp_types.h:19
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition gp_types.h:24
Common filter includes.
gp_pixel_type
List of all pixel types.
A pixmap buffer.
Definition gp_pixmap.h:33
uint32_t h
Pixmap height in pixels.
Definition gp_pixmap.h:46
uint32_t w
Pixmap width in pixels.
Definition gp_pixmap.h:44
Progress callback.