this is a FIXME
[swfdec.git] / swfdec / swfdec_image_decoder.h
blob0b3f743d488cd67565edff2efc57beb7225ce60e
1 /* Swfdec
2 * Copyright (C) 2007 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 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 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifndef __SWFDEC_IMAGE_DECODER_H__
21 #define __SWFDEC_IMAGE_DECODER_H__
23 #include <glib.h>
25 #include <swfdec/swfdec_decoder.h>
26 #include <swfdec/swfdec_bits.h>
27 #include <swfdec/swfdec_types.h>
28 #include <swfdec/swfdec_rect.h>
30 G_BEGIN_DECLS
32 typedef struct _SwfdecImageDecoder SwfdecImageDecoder;
33 typedef struct _SwfdecImageDecoderClass SwfdecImageDecoderClass;
35 #define SWFDEC_TYPE_IMAGE_DECODER (swfdec_image_decoder_get_type())
36 #define SWFDEC_IS_IMAGE_DECODER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_IMAGE_DECODER))
37 #define SWFDEC_IS_IMAGE_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFDEC_TYPE_IMAGE_DECODER))
38 #define SWFDEC_IMAGE_DECODER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFDEC_TYPE_IMAGE_DECODER, SwfdecImageDecoder))
39 #define SWFDEC_IMAGE_DECODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_IMAGE_DECODER, SwfdecImageDecoderClass))
40 #define SWFDEC_IMAGE_DECODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFDEC_TYPE_IMAGE_DECODER, SwfdecImageDecoderClass))
42 struct _SwfdecImageDecoder
44 SwfdecDecoder decoder;
46 SwfdecBufferQueue * queue; /* keeps the data while decoding */
47 SwfdecImage * image; /* the image we display */
50 struct _SwfdecImageDecoderClass {
51 SwfdecDecoderClass decoder_class;
54 GType swfdec_image_decoder_get_type (void);
57 G_END_DECLS
59 #endif