va_subpicture.c revision 990cb6296351a41a2e728f181c0dc096eaddaeb7
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
33vlVaQuerySubpictureFormats(		VADriverContextP ctx,
34                                VAImageFormat *format_list,
35                                unsigned int *flags,
36                                unsigned int *num_formats)
37{
38	if (!ctx)
39		return VA_STATUS_ERROR_INVALID_CONTEXT;
40
41	return VA_STATUS_ERROR_UNIMPLEMENTED;
42}
43
44
45VAStatus vlVaCreateSubpicture(		VADriverContextP ctx,
46                                    VAImageID image,
47                                    VASubpictureID *subpicture)
48{
49	if (!ctx)
50		return VA_STATUS_ERROR_INVALID_CONTEXT;
51
52	return VA_STATUS_ERROR_UNIMPLEMENTED;
53}
54
55VAStatus vlVaDestroySubpicture(		VADriverContextP ctx,
56                                    VASubpictureID subpicture)
57{
58	if (!ctx)
59		return VA_STATUS_ERROR_INVALID_CONTEXT;
60
61	return VA_STATUS_ERROR_UNIMPLEMENTED;
62}
63
64VAStatus vlVaSubpictureImage(		VADriverContextP ctx,
65                                    VASubpictureID subpicture,
66                                    VAImageID image)
67{
68	if (!ctx)
69		return VA_STATUS_ERROR_INVALID_CONTEXT;
70
71	return VA_STATUS_ERROR_UNIMPLEMENTED;
72}
73
74VAStatus vlVaSetSubpictureChromakey(	VADriverContextP ctx,
75                                        VASubpictureID subpicture,
76                                        unsigned int chromakey_min,
77                                        unsigned int chromakey_max,
78                                        unsigned int chromakey_mask)
79{
80	if (!ctx)
81		return VA_STATUS_ERROR_INVALID_CONTEXT;
82
83	return VA_STATUS_ERROR_UNIMPLEMENTED;
84}
85
86VAStatus vlVaSetSubpictureGlobalAlpha(	VADriverContextP ctx,
87                                        VASubpictureID subpicture,
88                                        float global_alpha)
89{
90	if (!ctx)
91		return VA_STATUS_ERROR_INVALID_CONTEXT;
92
93	return VA_STATUS_ERROR_UNIMPLEMENTED;
94}
95
96VAStatus vlVaAssociateSubpicture(	VADriverContextP ctx,
97                                    VASubpictureID subpicture,
98                                    VASurfaceID *target_surfaces,
99                                    int num_surfaces,
100                                    short src_x,
101                                    short src_y,
102                                    unsigned short src_width,
103                                    unsigned short src_height,
104                                    short dest_x,
105                                    short dest_y,
106                                    unsigned short dest_width,
107                                    unsigned short dest_height,
108                                    unsigned int flags)
109{
110	if (!ctx)
111		return VA_STATUS_ERROR_INVALID_CONTEXT;
112
113	return VA_STATUS_ERROR_UNIMPLEMENTED;
114}
115
116VAStatus vlVaDeassociateSubpicture(	VADriverContextP ctx,
117                                    VASubpictureID subpicture,
118                                    VASurfaceID *target_surfaces,
119                                    int num_surfaces)
120{
121	if (!ctx)
122		return VA_STATUS_ERROR_INVALID_CONTEXT;
123
124	return VA_STATUS_ERROR_UNIMPLEMENTED;
125}
126