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_VMAP_PUB_H__
24 #define __LQR_VMAP_PUB_H__
26 #ifndef __LQR_BASE_H__
27 #error "lqr_base.h must be included prior to lqr_vmap_pub.h"
28 #endif /* __LQR_BASE_H__ */
31 /*** LQR_VMAP CLASS DECLARATION ***/
33 typedef struct _LqrVMap LqrVMap
;
35 /* LQR_VMAP FUNCTION DECLARATION */
37 typedef LqrRetVal (*LqrVMapFunc
) (LqrVMap
*vmap
, gpointer data
);
39 /* LQR_VMAP PUBLIC FUNCTIONS */
41 LqrVMap
* lqr_vmap_new (gint
*buffer
, gint width
, gint heigth
, gint depth
, gint orientation
);
42 void lqr_vmap_destroy (LqrVMap
*vmap
);
44 gint
* lqr_vmap_get_data (LqrVMap
*vmap
);
45 gint
lqr_vmap_get_width (LqrVMap
*vmap
);
46 gint
lqr_vmap_get_height (LqrVMap
*vmap
);
47 gint
lqr_vmap_get_depth (LqrVMap
*vmap
);
48 gint
lqr_vmap_get_orientation (LqrVMap
*vmap
);
50 LqrRetVal
lqr_vmap_internal_dump (LqrCarver
*r
);
51 LqrVMap
* lqr_vmap_dump (LqrCarver
*r
);
52 LqrRetVal
lqr_vmap_load (LqrCarver
*r
, LqrVMap
*vmap
);
55 #endif /* __LQR_VMAP_PUB_H__ */