blob: f29c8a5ba9e81e2ec836337ed8f77bc203591288 (
plain)
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
78
79
80
81
82
83
84
85
86
|
/*
* Copyright (C) 2009 Texas Instruments - http://www.ti.com/
*
* Author:
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef GSTOMX_JPEGDEC_H
#define GSTOMX_JPEGDEC_H
#include <gst/gst.h>
#include <gst/video/video.h>
#include <config.h>
G_BEGIN_DECLS
#define GST_OMX_JPEGDEC(obj) (GstOmxJpegDec *) (obj)
#define GST_OMX_JPEGDEC_TYPE (gst_omx_jpegdec_get_type ())
typedef struct GstOmxJpegDec GstOmxJpegDec;
typedef struct GstOmxJpegDecClass GstOmxJpegDecClass;
#include "gstomx_base_filter.h"
typedef struct OMX_CUSTOM_IMAGE_DECODE_SECTION
{
OMX_U32 nSize;
OMX_VERSIONTYPE nVersion;
OMX_U32 nMCURow;
OMX_U32 nAU;
OMX_BOOL bSectionsInput;
OMX_BOOL bSectionsOutput;
}OMX_CUSTOM_IMAGE_DECODE_SECTION;
typedef struct OMX_CUSTOM_IMAGE_DECODE_SUBREGION
{
OMX_U32 nSize;
OMX_VERSIONTYPE nVersion;
OMX_U32 nXOrg; /*Sectional decoding: X origin*/
OMX_U32 nYOrg; /*Sectional decoding: Y origin*/
OMX_U32 nXLength; /*Sectional decoding: X lenght*/
OMX_U32 nYLength; /*Sectional decoding: Y lenght*/
}OMX_CUSTOM_IMAGE_DECODE_SUBREGION;
typedef struct OMX_CUSTOM_RESOLUTION
{
OMX_U32 nWidth;
OMX_U32 nHeight;
}OMX_CUSTOM_RESOLUTION;
struct GstOmxJpegDec
{
GstOmxBaseFilter omx_base;
gint framerate_num;
gint framerate_denom;
gboolean progressive;
gboolean outport_configured;
};
struct GstOmxJpegDecClass
{
GstOmxBaseFilterClass parent_class;
};
GType gst_omx_jpegdec_get_type (void);
G_END_DECLS
#endif /* GSTOMX_JPEGEDEC_H */
|