/
gstomx_base_vfpc2.h
71 lines (57 loc) · 1.97 KB
/
gstomx_base_vfpc2.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
/*
* Copyright (C) 2010-2011 Texas Instruments Inc.
*
* Author: Brijesh Singh <bksingh@ti.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_VFPC2_H
#define GSTOMX_BASE_VFPC2_H
#include <gst/gst.h>
#include <OMX_TI_Index.h>
#include <OMX_TI_Common.h>
#include <omx_vfpc.h>
G_BEGIN_DECLS
#define GST_OMX_BASE_VFPC2(obj) (GstOmxBaseVfpc2 *) (obj)
#define GST_OMX_BASE_VFPC2_TYPE (gst_omx_base_vfpc2_get_type ())
#define GST_OMX_BASE_VFPC2_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GST_OMX_BASE_VFPC2_TYPE, GstOmxBaseVfpc2Class))
typedef struct GstOmxBaseVfpc2 GstOmxBaseVfpc2;
typedef struct GstOmxBaseVfpc2Class GstOmxBaseVfpc2Class;
#include "gstomx_base_filter2.h"
struct GstOmxBaseVfpc2
{
GstOmxBaseFilter2 omx_base;
gint framerate_num;
gint framerate_denom;
gboolean port_configured;
GstPadSetCapsFunction sink_setcaps;
gint in_width, in_height, in_stride;
GstVideoFormat in_format;
gint out_width[NUM_OUTPUTS], out_height[NUM_OUTPUTS], out_stride[NUM_OUTPUTS];
gint left, top;
GstOmxBaseFilter2Cb omx_setup;
gpointer g_class;
gint pixel_aspect_ratio_num;
gint pixel_aspect_ratio_denom;
gboolean interlaced;
};
struct GstOmxBaseVfpc2Class
{
GstOmxBaseFilter2Class parent_class;
};
GType gst_omx_base_vfpc2_get_type (void);
G_END_DECLS
#endif /* GSTOMX_BASE_VFPC2_H */