2 * gstvaapidecoder_jpeg.h - JPEG decoder
4 * Copyright (C) 2011-2012 Intel Corporation
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation; either version 2.1
9 * of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301 USA
22 #ifndef GST_VAAPI_DECODER_JPEG_H
23 #define GST_VAAPI_DECODER_JPEG_H
25 #include <gst/vaapi/gstvaapidecoder.h>
29 #define GST_VAAPI_TYPE_DECODER_JPEG \
30 (gst_vaapi_decoder_jpeg_get_type())
32 #define GST_VAAPI_DECODER_JPEG(obj) \
33 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
34 GST_VAAPI_TYPE_DECODER_JPEG, \
37 #define GST_VAAPI_DECODER_JPEG_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_CAST((klass), \
39 GST_VAAPI_TYPE_DECODER_JPEG, \
40 GstVaapiDecoderJpegClass))
42 #define GST_VAAPI_IS_DECODER_JPEG(obj) \
43 (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_VAAPI_TYPE_DECODER_JPEG))
45 #define GST_VAAPI_IS_DECODER_JPEG_CLASS(klass) \
46 (G_TYPE_CHECK_CLASS_TYPE((klass), GST_VAAPI_TYPE_DECODER_JPEG))
48 #define GST_VAAPI_DECODER_JPEG_GET_CLASS(obj) \
49 (G_TYPE_INSTANCE_GET_CLASS((obj), \
50 GST_VAAPI_TYPE_DECODER_JPEG, \
51 GstVaapiDecoderJpegClass))
53 typedef struct _GstVaapiDecoderJpeg GstVaapiDecoderJpeg;
54 typedef struct _GstVaapiDecoderJpegPrivate GstVaapiDecoderJpegPrivate;
55 typedef struct _GstVaapiDecoderJpegClass GstVaapiDecoderJpegClass;
58 * GstVaapiDecoderJpeg:
60 * A decoder based on Jpeg.
62 struct _GstVaapiDecoderJpeg {
64 GstVaapiDecoder parent_instance;
66 GstVaapiDecoderJpegPrivate *priv;
70 * GstVaapiDecoderJpegClass:
72 * A decoder class based on Jpeg.
74 struct _GstVaapiDecoderJpegClass {
76 GstVaapiDecoderClass parent_class;
80 gst_vaapi_decoder_jpeg_get_type(void) G_GNUC_CONST;
83 gst_vaapi_decoder_jpeg_new(GstVaapiDisplay *display, GstCaps *caps);
87 #endif /* GST_VAAPI_DECODER_JPEG_H */