1 /*
2  *  gstvaapiobject.h - Base VA object
3  *
4  *  Copyright (C) 2010-2011 Splitted-Desktop Systems
5  *    Author: Gwenole Beauchesne <gwenole.beauchesne@splitted-desktop.com>
6  *  Copyright (C) 2012-2013 Intel Corporation
7  *    Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
8  *
9  *  This library is free software; you can redistribute it and/or
10  *  modify it under the terms of the GNU Lesser General Public License
11  *  as published by the Free Software Foundation; either version 2.1
12  *  of the License, or (at your option) any later version.
13  *
14  *  This library is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  *  Lesser General Public License for more details.
18  *
19  *  You should have received a copy of the GNU Lesser General Public
20  *  License along with this library; if not, write to the Free
21  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22  *  Boston, MA 02110-1301 USA
23  */
24 
25 #ifndef GST_VAAPI_OBJECT_H
26 #define GST_VAAPI_OBJECT_H
27 
28 #include <gst/vaapi/gstvaapitypes.h>
29 #include <gst/vaapi/gstvaapidisplay.h>
30 
31 G_BEGIN_DECLS
32 
33 #define GST_VAAPI_OBJECT(obj) \
34   ((GstVaapiObject *) (obj))
35 
36 typedef struct _GstVaapiObject GstVaapiObject;
37 
38 gpointer
39 gst_vaapi_object_ref (gpointer object);
40 
41 void
42 gst_vaapi_object_unref (gpointer object);
43 
44 void
45 gst_vaapi_object_replace (gpointer old_object_ptr, gpointer new_object);
46 
47 GstVaapiDisplay *
48 gst_vaapi_object_get_display (GstVaapiObject * object);
49 
50 void
51 gst_vaapi_object_lock_display (GstVaapiObject * object);
52 
53 void
54 gst_vaapi_object_unlock_display (GstVaapiObject * object);
55 
56 GstVaapiID
57 gst_vaapi_object_get_id (GstVaapiObject * object);
58 
59 G_END_DECLS
60 
61 #endif /* GST_VAAPI_OBJECT_H */
62