From e1f9e3c41c315b01b977a7caaa47afd0e4994d61 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 17 Aug 2010 18:19:05 +0200 Subject: Added encoder and decoder stream converters. --- decode_converter.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 decode_converter.h (limited to 'decode_converter.h') diff --git a/decode_converter.h b/decode_converter.h new file mode 100644 index 0000000..47106c9 --- /dev/null +++ b/decode_converter.h @@ -0,0 +1,31 @@ +#ifndef _DECODE_CONVERTER_H_ +#define _DECODE_CONVERTER_H_ + +#include "decoder.h" + +#include + +#define CONVERTER_TYPE_DECODE (decode_converter_get_type()) +#define DECODE_CONVERTER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CONVERTER_TYPE_DECODE, DecodeConverter)) +#define CONVERTER_IS_DECODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), CONVERTER_TYPE_DECODE)) +#define DECODE_CONVERTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), CONVERTER_TYPE_DECODE, DecodeConverterClass)) +#define CONVERTER_IS_DECODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), CONVERTER_TYPE_DECODE)) +#define DECODE_CONVERTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), CONVERTER_TYPE_DECODE, DecodeConverterClass)) + +typedef struct _DecodeConverter DecodeConverter; +typedef struct _DecodeConverterClass DecodeConverterClass; + +struct _DecodeConverter { + GObject parent_instance; + + struct decoder decoder; +}; + +struct _DecodeConverterClass { + GObjectClass parent_class; +}; + +GType decode_converter_get_type(); +DecodeConverter *decode_converter_new(const struct decoder_plugin *decoder_plugin); + +#endif -- cgit v1.2.3