• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2014, Ericsson AB. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without modification,
5  * are permitted provided that the following conditions are met:
6  *
7  * 1. Redistributions of source code must retain the above copyright notice, this
8  * list of conditions and the following disclaimer.
9  *
10  * 2. Redistributions in binary form must reproduce the above copyright notice, this
11  * list of conditions and the following disclaimer in the documentation and/or other
12  * materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17  * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
18  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
23  * OF SUCH DAMAGE.
24  */
25 
26 /*/
27 \*\ GstOPENH264Dec
28 /*/
29 
30 #ifndef _GST_OPENH264DEC_H_
31 #define _GST_OPENH264DEC_H_
32 
33 #include <gst/video/video.h>
34 #include <gst/video/gstvideodecoder.h>
35 
36 #include <wels/codec_api.h>
37 #include <wels/codec_app_def.h>
38 #include <wels/codec_def.h>
39 
40 G_BEGIN_DECLS
41 
42 #define GST_TYPE_OPENH264DEC          (gst_openh264dec_get_type())
43 #define GST_OPENH264DEC(obj)          (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_OPENH264DEC,GstOpenh264Dec))
44 #define GST_OPENH264DEC_CLASS(klass)  (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_OPENH264DEC,GstOpenh264DecClass))
45 #define GST_IS_OPENH264DEC(obj)       (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OPENH264DEC))
46 #define GST_IS_OPENH264DEC_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OPENH264DEC))
47 
48 typedef struct _GstOpenh264Dec GstOpenh264Dec;
49 typedef struct _GstOpenh264DecClass GstOpenh264DecClass;
50 
51 struct _GstOpenh264Dec
52 {
53   GstVideoDecoder base_openh264dec;
54 
55   /*< private >*/
56   ISVCDecoder *decoder;
57   GstVideoCodecState *input_state;
58   guint width, height;
59 };
60 
61 struct _GstOpenh264DecClass
62 {
63     GstVideoDecoderClass base_openh264dec_class;
64 };
65 
66 GType gst_openh264dec_get_type(void);
67 
68 G_END_DECLS
69 #endif
70