blob: 35ac7fa9050f20f9e1b88a7d84c607983625419e (
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
/*
* gstvaapisurface_priv.h - VA surface abstraction (private data)
*
* Copyright (C) 2011-2013 Intel Corporation
* Author: Gwenole Beauchesne <gwenole.beauchesne@intel.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; either version 2.1
* of the License, or (at your option) any later version.
*
* 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 GST_VAAPI_SURFACE_PRIV_H
#define GST_VAAPI_SURFACE_PRIV_H
#include <gst/vaapi/gstvaapicontext.h>
#include <gst/vaapi/gstvaapisurface.h>
#include "gstvaapiobject_priv.h"
G_BEGIN_DECLS
typedef struct _GstVaapiSurfaceClass GstVaapiSurfaceClass;
/**
* GstVaapiSurface:
*
* A VA surface wrapper.
*/
struct _GstVaapiSurface
{
/*< private >*/
GstVaapiObject parent_instance;
GstVaapiBufferProxy *extbuf_proxy;
GstVideoFormat format;
guint width;
guint height;
GstVaapiChromaType chroma_type;
GPtrArray *subpictures;
};
/**
* GstVaapiSurfaceClass:
*
* A VA surface wrapper class.
*/
struct _GstVaapiSurfaceClass
{
/*< private >*/
GstVaapiObjectClass parent_class;
};
/**
* GST_VAAPI_SURFACE_SURFACE_CHROMA_TYPE:
* @surface: a #GstVaapiSurface
*
* Macro that evaluates to the @surface chroma type.
*
* This is an internal macro that does not do any run-time type check.
*/
#undef GST_VAAPI_SURFACE_CHROMA_TYPE
#define GST_VAAPI_SURFACE_CHROMA_TYPE(surface) \
(GST_VAAPI_SURFACE (surface)->chroma_type)
/**
* GST_VAAPI_SURFACE_SURFACE_FORMAT:
* @surface: a #GstVaapiSurface
*
* Macro that evaluates to the @surface format.
*
* This is an internal macro that does not do any run-time type check.
*/
#undef GST_VAAPI_SURFACE_FORMAT
#define GST_VAAPI_SURFACE_FORMAT(surface) \
(GST_VAAPI_SURFACE (surface)->format)
/**
* GST_VAAPI_SURFACE_SURFACE_WIDTH:
* @surface: a #GstVaapiSurface
*
* Macro that evaluates to the @surface width in pixels.
*
* This is an internal macro that does not do any run-time type check.
*/
#undef GST_VAAPI_SURFACE_WIDTH
#define GST_VAAPI_SURFACE_WIDTH(surface) \
(GST_VAAPI_SURFACE (surface)->width)
/**
* GST_VAAPI_SURFACE_SURFACE_HEIGHT:
* @surface: a #GstVaapiSurface
*
* Macro that evaluates to the @surface height in pixels.
*
* This is an internal macro that does not do any run-time type check.
*/
#undef GST_VAAPI_SURFACE_HEIGHT
#define GST_VAAPI_SURFACE_HEIGHT(surface) \
(GST_VAAPI_SURFACE (surface)->height)
G_END_DECLS
#endif /* GST_VAAPI_SURFACE_PRIV_H */
|