va_surface.c revision fd2cbe94dfaa98b79c16fb81d7bac84c5c683249
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{ 49 if (!ctx) 50 return VA_STATUS_ERROR_INVALID_CONTEXT; 51 52 return VA_STATUS_ERROR_UNIMPLEMENTED; 53} 54 55VAStatus vlVaSyncSurface( VADriverContextP ctx, 56 VASurfaceID render_target) 57{ 58 if (!ctx) 59 return VA_STATUS_ERROR_INVALID_CONTEXT; 60 61 return VA_STATUS_ERROR_UNIMPLEMENTED; 62} 63 64VAStatus vlVaQuerySurfaceStatus( VADriverContextP ctx, 65 VASurfaceID render_target, 66 VASurfaceStatus *status) 67{ 68 if (!ctx) 69 return VA_STATUS_ERROR_INVALID_CONTEXT; 70 71 return VA_STATUS_ERROR_UNIMPLEMENTED; 72} 73 74VAStatus vlVaPutSurface( VADriverContextP ctx, 75 VASurfaceID surface, 76 void* draw, 77 short srcx, 78 short srcy, 79 unsigned short srcw, 80 unsigned short srch, 81 short destx, 82 short desty, 83 unsigned short destw, 84 unsigned short desth, 85 VARectangle *cliprects, 86 unsigned int number_cliprects, 87 unsigned int flags) 88{ 89 if (!ctx) 90 return VA_STATUS_ERROR_INVALID_CONTEXT; 91 92 return VA_STATUS_ERROR_UNIMPLEMENTED; 93} 94 95VAStatus vlVaLockSurface( VADriverContextP ctx, 96 VASurfaceID surface, 97 unsigned int *fourcc, 98 unsigned int *luma_stride, 99 unsigned int *chroma_u_stride, 100 unsigned int *chroma_v_stride, 101 unsigned int *luma_offset, 102 unsigned int *chroma_u_offset, 103 unsigned int *chroma_v_offset, 104 unsigned int *buffer_name, 105 void **buffer) 106{ 107 if (!ctx) 108 return VA_STATUS_ERROR_INVALID_CONTEXT; 109 110 return VA_STATUS_ERROR_UNIMPLEMENTED; 111} 112 113VAStatus vlVaUnlockSurface( VADriverContextP ctx, 114 VASurfaceID surface) 115{ 116 if (!ctx) 117 return VA_STATUS_ERROR_INVALID_CONTEXT; 118 119 return VA_STATUS_ERROR_UNIMPLEMENTED; 120} 121