1 /*
2  * Copyright (C) 2010, Pino Toscano <pino@kde.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2, or (at your option)
7  * any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef POPPLER_IMAGE_PRIVATE_H
20 #define POPPLER_IMAGE_PRIVATE_H
21 
22 #include "poppler-image.h"
23 
24 namespace poppler
25 {
26 
27 class image_private
28 {
29 public:
30     image_private(int iwidth, int iheight, image::format_enum iformat);
31     ~image_private();
32 
33     static image_private *create_data(int width, int height, image::format_enum format);
34     static image_private *create_data(char *data, int width, int height, image::format_enum format);
35 
36     int ref;
37     char *data;
38     int width;
39     int height;
40     int bytes_per_row;
41     int bytes_num;
42     image::format_enum format : 3;
43     bool own_data : 1;
44 };
45 
46 }
47 
48 #endif
49