Tizen 2.0 Release
[framework/multimedia/gst-plugins-bad0.10.git] / sys / d3dvideosink / directx / d3d.c
1 /* GStreamer
2  * Copyright (C) 2011 David Hoyt <dhoyt@hoytsoft.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #include "directx.h"
21
22 const DirectXD3D *
23 directx_d3d_create (const DirectXAPI * api)
24 {
25   if (!api)
26     return NULL;
27
28   return DIRECTX_D3D_CALL_API_FUNCTION (api, create, api);
29 }
30
31 gboolean
32 directx_d3d_resize (const DirectXD3D * d3d)
33 {
34   if (!d3d)
35     return FALSE;
36
37   return DIRECTX_D3D_CALL_FUNCTION (d3d, resize, d3d);
38 }
39
40 gboolean
41 directx_d3d_device_lost (const DirectXD3D * d3d)
42 {
43   if (!d3d)
44     return FALSE;
45
46   return DIRECTX_D3D_CALL_FUNCTION (d3d, device_lost, d3d);
47 }
48
49 gboolean
50 directx_d3d_notify_device_reset (const DirectXD3D * d3d)
51 {
52   if (!d3d)
53     return FALSE;
54
55   return DIRECTX_D3D_CALL_FUNCTION (d3d, notify_device_reset, d3d);
56 }
57
58 gboolean
59 directx_d3d_release (const DirectXD3D * d3d)
60 {
61   if (!d3d)
62     return FALSE;
63
64   return DIRECTX_D3D_CALL_FUNCTION (d3d, release, d3d);
65 }