/
gstomx_base_videodec.h
77 lines (61 loc) · 2.09 KB
/
gstomx_base_videodec.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
* Copyright (C) 2007-2009 Nokia Corporation.
*
* Author: Felipe Contreras <felipe.contreras@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef GSTOMX_BASE_VIDEODEC_H
#define GSTOMX_BASE_VIDEODEC_H
#include <gst/gst.h>
G_BEGIN_DECLS
#define GST_OMX_BASE_VIDEODEC(obj) (GstOmxBaseVideoDec *) (obj)
#define GST_OMX_BASE_VIDEODEC_TYPE (gst_omx_base_videodec_get_type ())
#define GST_OMX_BASE_VIDEODEC_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GST_OMX_BASE_VIDEODEC_TYPE, GstOmxBaseVideoDecClass))
typedef struct GstOmxBaseVideoDec GstOmxBaseVideoDec;
typedef struct GstOmxBaseVideoDecClass GstOmxBaseVideoDecClass;
#include "gstomx_base_filter.h"
struct _extendedParams
{
gint width;
gint height;
gint framerate_num;
gint framerate_denom;
};
struct GstOmxBaseVideoDec
{
GstOmxBaseFilter omx_base;
OMX_VIDEO_CODINGTYPE compression_format;
gint framerate_num;
gint framerate_denom;
gboolean inport_configured;
GstPadSetCapsFunction sink_setcaps;
GstOmxBaseFilterCb initialize_port;
struct _extendedParams extendedParams;
gint rowstride; /**< rowstride of output buffer */
gint pixel_aspect_ratio_num;
gint pixel_aspect_ratio_denom;
gboolean interlaced;
/* For sending crop event */
guint prev_n_stride, prev_rowstride;
};
struct GstOmxBaseVideoDecClass
{
GstOmxBaseFilterClass parent_class;
};
GType gst_omx_base_videodec_get_type (void);
G_END_DECLS
#endif /* GSTOMX_BASE_VIDEODEC_H */