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

source code of poppler/cpp/poppler-image-private.h