Release 0.3
[liblqr.git] / lqr / lqr_progress_priv.h
blob0d90e66d36a3cf2b26d025b1db7c59eb503e3750
1 /* LiquidRescaling Library
2 * Copyright (C) 2007-2009 Carlo Baldassi (the "Author") <carlobaldassi@gmail.com>.
3 * All Rights Reserved.
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_PROGRESS_PRIV_H__
25 #define __LQR_PROGRESS_PRIV_H__
27 /*** LQR_PROGRESS CLASS DEFINITION ***/
29 struct _LqrProgress
31 gfloat update_step;
32 LqrProgressFuncInit init;
33 LqrProgressFuncUpdate update;
34 LqrProgressFuncEnd end;
35 gchar init_width_message[LQR_PROGRESS_MAX_MESSAGE_LENGTH];
36 gchar end_width_message[LQR_PROGRESS_MAX_MESSAGE_LENGTH];
37 gchar init_height_message[LQR_PROGRESS_MAX_MESSAGE_LENGTH];
38 gchar end_height_message[LQR_PROGRESS_MAX_MESSAGE_LENGTH];
41 /* LQR_PROGRESS CLASS PRIVATE FUNCTIONS */
43 LqrRetVal lqr_progress_init(LqrProgress * p, const gchar * message);
44 LqrRetVal lqr_progress_update(LqrProgress * p, gdouble percentage);
45 LqrRetVal lqr_progress_end(LqrProgress * p, const gchar * message);
48 #endif /* __LQR_PROGRESS_PRIV_H__ */