1 /*
2 * GStreamer
3 *
4 * Copyright (C) 2012 Texas Instruments
5 * Copyright (C) 2012 Collabora Ltd
6 *
7 * Authors:
8 * Alessandro Decina <alessandro.decina@collabora.co.uk>
9 * Rob Clark <rob.clark@linaro.org>
10 *
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation
14 * version 2.1 of the License.
15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 */
26 #ifndef __GSTDUCATIBUFFERPRIV_H__
27 #define __GSTDUCATIBUFFERPRIV_H__
29 #include <stdint.h>
30 #include <gst/gst.h>
32 G_BEGIN_DECLS
34 /**
35 * GstMetaDucatiBufferPriv:
36 *
37 * A structure that enables setting required metadata on a buffer.
38 *
39 * Since: 1.2.?
40 */
41 typedef struct
42 {
43 GstMeta meta;
45 struct omap_bo *bo;
46 gint uv_offset, size;
48 } GstMetaDucatiBufferPriv;
51 /* add the GstMetaDucatiBufferPriv metadata */
52 GstMetaDucatiBufferPriv * gst_ducati_buffer_priv_set (GstBuffer * buf, struct omap_bo *bo, gint uv_offset, gint size);
53 /* retrieve the GstMetaDucatiBufferPriv metadata */
54 GstMetaDucatiBufferPriv * gst_ducati_buffer_priv_get (GstBuffer * buf);
57 G_END_DECLS
60 #endif /* __GSTDUCATIBUFFERPRIV_H__ */