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/>
23
#ifndef __LQR_CARVER_RIGMASK_PUB_H__
24
#define __LQR_CARVER_RIGMASK_PUB_H__
26
#ifndef __LQR_BASE_H__
27
#error "lqr_base.h must be included prior to lqr_carver_rigmask_pub.h"
28
#endif /* __LQR_BASE_H__ */
30
/* PUBLIC RIGMASK-RELATED FUNCTIONS */
32
LQR_PUBLIC void lqr_carver_rigmask_clear(LqrCarver *r);
33
LQR_PUBLIC LqrRetVal lqr_carver_rigmask_add_xy(LqrCarver *r, gdouble rigidity, gint x, gint y);
34
LQR_PUBLIC LqrRetVal lqr_carver_rigmask_add_rgb_area(LqrCarver *r, guchar *buffer, gint channels, gint width,
35
gint height, gint x_off, gint y_off);
36
LQR_PUBLIC LqrRetVal lqr_carver_rigmask_add_rgb(LqrCarver *r, guchar *buffer, gint channels);
37
LQR_PUBLIC LqrRetVal lqr_carver_rigmask_add_area(LqrCarver *r, gdouble *buffer, gint width, gint height, gint x_off,
39
LQR_PUBLIC LqrRetVal lqr_carver_rigmask_add(LqrCarver *r, gdouble *buffer);
41
#endif /* __LQR_CARVER_RIGMASK_PUB_H__ */