va_surface.c revision 664f10625a74a7e0ed1bfd44b2fb6f44bd8828a2
1/**************************************************************************
2 *
3	* Copyright 2010 Thomas Balling Sørensen & Orasanu Lucian.
4 * All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sub license, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
13 *
14 * The above copyright notice and this permission notice (including the
15 * next paragraph) shall be included in all copies or substantial portions
16 * of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21 * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
22 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 *
26 **************************************************************************/
27
28#include <va/va.h>
29#include <va/va_backend.h>
30#include "va_private.h"
31
32VAStatus vlVaCreateSurfaces(       VADriverContextP ctx,
33                                                        int width,
34                                                        int height,
35                                                        int format,
36                                                        int num_surfaces
37                                                        VASurfaceID *surfaces)
38{
39        if (!ctx)
40                return VA_STATUS_ERROR_INVALID_CONTEXT;
41
42        return VA_STATUS_ERROR_UNIMPLEMENTED;
43}
44
45VAStatus vlVaDestroySurfaces(       VADriverContextP ctx,
46                                                        VASurfaceID *surface_list,
47                                                        int num_surfaces)
48        if (!ctx)
49                return VA_STATUS_ERROR_INVALID_CONTEXT;
50
51        return VA_STATUS_ERROR_UNIMPLEMENTED;
52}
53
54VAStatus vlVaSyncSurface(       VADriverContextP ctx,
55                                                        VASurfaceID render_target)
56        if (!ctx)
57                return VA_STATUS_ERROR_INVALID_CONTEXT;
58
59        return VA_STATUS_ERROR_UNIMPLEMENTED;
60}
61
62VAStatus vlVaQuerySurfaceStatus(       VADriverContextP ctx,
63                                                        VASurfaceID render_target,
64                                                        VASurfaceStatus *status)
65{
66        if (!ctx)
67                return VA_STATUS_ERROR_INVALID_CONTEXT;
68
69        return VA_STATUS_ERROR_UNIMPLEMENTED;
70}
71
72VAStatus vlVaPutSurface(       VADriverContextP ctx,
73                                                        VADriverContextP ctx,
74                                                        VASurfaceID surface,
75                                                        void* draw,
76                                                        short srcx,
77                                                        short srcy,
78                                                        unsigned short srcw,
79                                                        unsigned short srch,
80                                                        short destx,
81                                                        short desty,
82                                                        unsigned short destw,
83                                                        unsigned short desth,
84                                                        VARectangle *cliprects,
85                                                        unsigned int number_cliprects,
86                                                        unsigned int flags)
87{
88        if (!ctx)
89                return VA_STATUS_ERROR_INVALID_CONTEXT;
90
91        return VA_STATUS_ERROR_UNIMPLEMENTED;
92}
93
94VAStatus vlVaLockSurface(	VADriverContextP ctx,
95							VASurfaceID surface,
96							unsigned int *fourcc,
97							unsigned int *luma_stride,
98							unsigned int *chroma_u_stride,
99							unsigned int *chroma_v_stride,
100							unsigned int *luma_offset,
101							unsigned int *chroma_u_offset,
102							unsigned int *chroma_v_offset,
103							unsigned int *buffer_name,
104							void **buffer)
105{
106        if (!ctx)
107                return VA_STATUS_ERROR_INVALID_CONTEXT;
108
109        return VA_STATUS_ERROR_UNIMPLEMENTED;
110}
111
112VAStatus vlVaUnlockSurface(	VADriverContextP ctx,
113							VASurfaceID surface)
114{
115        if (!ctx)
116                return VA_STATUS_ERROR_INVALID_CONTEXT;
117
118        return VA_STATUS_ERROR_UNIMPLEMENTED;
119}
120
121