1 /**************************************************************************
3 * Copyright 2010 Thomas Balling Sørensen & Orasanu Lucian.
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:
14 * The above copyright notice and this permission notice (including the
15 * next paragraph) shall be included in all copies or substantial portions
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.
26 **************************************************************************/
29 #include <va/va_backend.h>
31 #include "util/u_debug.h"
33 #include "va_private.h"
36 vlVaQueryConfigProfiles(VADriverContextP ctx, VAProfile *profile_list, int *num_profiles)
39 return VA_STATUS_ERROR_INVALID_CONTEXT;
43 profile_list[i++] = VAProfileMPEG2Simple;
46 return VA_STATUS_SUCCESS;
51 vlVaQueryConfigEntrypoints(VADriverContextP ctx, VAProfile profile,
52 VAEntrypoint *entrypoint_list, int *num_entrypoints)
55 return VA_STATUS_ERROR_INVALID_CONTEXT;
57 VAStatus vaStatus = VA_STATUS_SUCCESS;
60 case VAProfileMPEG2Simple:
61 case VAProfileMPEG2Main:
62 VA_INFO("Using profile %08x\n",profile);
63 entrypoint_list[0] = VAEntrypointMoComp;
67 case VAProfileH264Baseline:
68 case VAProfileH264Main:
69 case VAProfileH264High:
70 vaStatus = VA_STATUS_ERROR_UNSUPPORTED_PROFILE;
75 VA_ERROR("Unsupported profile %08x\n",profile);
76 vaStatus = VA_STATUS_ERROR_UNSUPPORTED_PROFILE;
85 vlVaGetConfigAttributes(VADriverContextP ctx, VAProfile profile, VAEntrypoint entrypoint,
86 VAConfigAttrib *attrib_list, int num_attribs)
89 return VA_STATUS_ERROR_INVALID_CONTEXT;
91 return VA_STATUS_ERROR_UNIMPLEMENTED;
95 vlVaCreateConfig(VADriverContextP ctx, VAProfile profile, VAEntrypoint entrypoint,
96 VAConfigAttrib *attrib_list, int num_attribs, VAConfigID *config_id)
99 return VA_STATUS_ERROR_INVALID_CONTEXT;
101 return VA_STATUS_ERROR_UNIMPLEMENTED;
105 vlVaDestroyConfig(VADriverContextP ctx, VAConfigID config_id)
108 return VA_STATUS_ERROR_INVALID_CONTEXT;
110 return VA_STATUS_ERROR_UNIMPLEMENTED;
114 vlVaQueryConfigAttributes(VADriverContextP ctx, VAConfigID config_id, VAProfile *profile,
115 VAEntrypoint *entrypoint, VAConfigAttrib *attrib_list, int *num_attribs)
118 return VA_STATUS_ERROR_INVALID_CONTEXT;
120 return VA_STATUS_ERROR_UNIMPLEMENTED;