Debian Codegraph @

src/byzanzencodergif.h

raw symbols SCIP
1 /* desktop session recorder
2 * Copyright (C) 2009 Benjamin Otte <[email protected]>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 3 of the License, or (at your option) any later version.
8 *
9 * This library 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 GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include "byzanzencoder.h"
19 #include "gifenc.h"
20
21 #ifndef __HAVE_BYZANZ_ENCODER_GIF_H__
22 #define __HAVE_BYZANZ_ENCODER_GIF_H__
23
24 typedef struct _ByzanzEncoderGif ByzanzEncoderGif;
25 typedef struct _ByzanzEncoderGifClass ByzanzEncoderGifClass;
26
27 #define BYZANZ_TYPE_ENCODER_GIF (byzanz_encoder_gif_get_type())
28 #define BYZANZ_IS_ENCODER_GIF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BYZANZ_TYPE_ENCODER_GIF))
29 #define BYZANZ_IS_ENCODER_GIF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BYZANZ_TYPE_ENCODER_GIF))
30 #define BYZANZ_ENCODER_GIF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BYZANZ_TYPE_ENCODER_GIF, ByzanzEncoderGif))
31 #define BYZANZ_ENCODER_GIF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BYZANZ_TYPE_ENCODER_GIF, ByzanzEncoderGifClass))
32 #define BYZANZ_ENCODER_GIF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BYZANZ_TYPE_ENCODER_GIF, ByzanzEncoderGifClass))
33
34 struct _ByzanzEncoderGif {
35 ByzanzEncoder encoder;
36
37 Gifenc * gifenc; /* encoder used to encode the image */
38
39 gboolean has_quantized; /* qantization has happened already */
40 guint8 * image_data; /* width * height of encoded image */
41
42 cairo_rectangle_int_t cached_area; /* area that is saved in cached_data */
43 guint8 * cached_data; /* cached_area.{width x height} sized area of image */
44 guint64 cached_time; /* timestamp the cached image corresponds to */
45
46 guint8 * cached_tmp; /* temporary data to swap cached_data with */
47 };
48
49 struct _ByzanzEncoderGifClass {
50 ByzanzEncoderClass encoder_class;
51 };
52
53 GType byzanz_encoder_gif_get_type (void) G_GNUC_CONST;
54
55
56 #endif /* __HAVE_BYZANZ_ENCODER_GIF_H__ */