1
/* GStreamer Jasper based j2k image decoder
2
* Copyright (C) 2008 Mark Nauwelaerts <mnauw@users.sf.net>
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 2 of the License, or (at your option) any later version.
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.
14
* You should have received a copy of the GNU Library General Public
15
* License along with this library; if not, write to the
16
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
20
#ifndef __GST_JASPER_DEC_H__
21
#define __GST_JASPER_DEC_H__
24
#include <gst/video/video.h>
26
#include <jasper/jasper.h>
30
/* #define's don't like whitespacey bits */
31
#define GST_TYPE_JASPER_DEC \
32
(gst_jasper_dec_get_type())
33
#define GST_JASPER_DEC(obj) \
34
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_JASPER_DEC,GstJasperDec))
35
#define GST_JASPER_DEC_CLASS(klass) \
36
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_JASPER_DEC,GstJasperDecClass))
37
#define GST_IS_JASPER_DEC(obj) \
38
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_JASPER_DEC))
39
#define GST_IS_JASPER_DEC_CLASS(klass) \
40
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_JASPER_DEC))
42
typedef struct _GstJasperDec GstJasperDec;
43
typedef struct _GstJasperDecClass GstJasperDecClass;
45
#define GST_JASPER_DEC_MAX_COMPONENT 4
51
GstPad *sinkpad, *srcpad;
53
GstBuffer *codec_data;
55
/* jasper image fmt */
60
/* stream/image properties */
61
GstVideoFormat format;
66
gint stride[GST_JASPER_DEC_MAX_COMPONENT];
67
gint offset[GST_JASPER_DEC_MAX_COMPONENT];
68
gint inc[GST_JASPER_DEC_MAX_COMPONENT];
72
/* image cmpt indexed */
73
gint cwidth[GST_JASPER_DEC_MAX_COMPONENT];
74
gint cheight[GST_JASPER_DEC_MAX_COMPONENT];
75
/* standard video_format indexed */
76
gint cmpt[GST_JASPER_DEC_MAX_COMPONENT];
78
gint framerate_numerator;
79
gint framerate_denominator;
82
struct _GstJasperDecClass
84
GstElementClass parent_class;
87
GType gst_jasper_dec_get_type (void);
91
#endif /* __GST_JASPER_DEC_H__ */