1 /* LiquidRescaling Library
2 * Copyright (C) 2007-2009 Carlo Baldassi (the "Author") <carlobaldassi@gmail.com>.
5 * This library implements the algorithm described in the paper
6 * "Seam Carving for Content-Aware Image Resizing"
7 * by Shai Avidan and Ariel Shamir
8 * which can be found at http://www.faculty.idc.ac.il/arik/imret.pdf
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation; version 3 dated June, 2007.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, see <http://www.gnu.org/licenses/>
24 #ifndef __LQR_READER_WINDOW_PUB_H__
25 #define __LQR_READER_WINDOW_PUB_H__
27 #ifndef __LQR_BASE_H__
28 #error "lqr_base.h must be included prior to lqr_rwindow_pub.h"
29 #endif /* __LQR_BASE_H__ */
31 enum _LqrEnergyReaderType
33 LQR_ER_BRIGHT
, /* read brightness */
34 LQR_ER_LUMA
, /* read luma */
35 LQR_ER_RGBA
, /* read RGBA */
36 LQR_ER_CUSTOM
/* read the buffer as-is*/
39 typedef enum _LqrEnergyReaderType LqrEnergyReaderType
;
41 struct _LqrReadingWindow
;
43 typedef struct _LqrReadingWindow LqrReadingWindow
;
45 gdouble
lqr_rwindow_read (LqrReadingWindow
* rwindow
, gint x
, gint y
, gint channel
) LQR_PUBLIC
;
47 LqrEnergyReaderType
lqr_rwindow_get_read_t (LqrReadingWindow
* rwindow
) LQR_PUBLIC
;
48 gint
lqr_rwindow_get_radius (LqrReadingWindow
* rwindow
) LQR_PUBLIC
;
49 gint
lqr_rwindow_get_channels (LqrReadingWindow
* rwindow
) LQR_PUBLIC
;
51 #endif /* __LQR_READER_WINDOW_PUB_H__ */