OSDN Git Service

test: check whether MVC encoding is support
[android-x86/hardware-intel-common-vaapi.git] / test / i965_internal_decl.h
1 /*
2  * Copyright (C) 2016 Intel Corporation. All Rights Reserved.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the
6  * "Software"), to deal in the Software without restriction, including
7  * without limitation the rights to use, copy, modify, merge, publish,
8  * distribute, sub license, and/or sell copies of the Software, and to
9  * permit persons to whom the Software is furnished to do so, subject to
10  * the following conditions:
11  *
12  * The above copyright notice and this permission notice (including the
13  * next paragraph) shall be included in all copies or substantial portions
14  * of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
19  * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
20  * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23  */
24
25 #ifndef I965_INTERNAL_DECL_H
26 #define I965_INTERNAL_DECL_H
27
28 extern "C" {
29     #include "sysdeps.h"
30     #include "i965_drv_video.h"
31     #include "i965_encoder.h"
32
33     extern VAStatus i965_CreateConfig(
34         VADriverContextP, VAProfile, VAEntrypoint,
35         VAConfigAttrib *, int, VAConfigID *);
36
37     extern VAStatus i965_DestroyConfig(
38         VADriverContextP, VAConfigID);
39
40     extern VAStatus i965_CreateContext(
41         VADriverContextP, VAConfigID, int, int,
42         int, VASurfaceID *, int, VAContextID *);
43
44     extern VAStatus i965_DestroyContext(
45         VADriverContextP, VAContextID);
46
47     extern VAStatus i965_CreateBuffer(
48         VADriverContextP, VAContextID, VABufferType,
49         unsigned, unsigned, void *, VABufferID *);
50
51     extern VAStatus i965_DestroyBuffer(
52         VADriverContextP, VABufferID);
53
54     extern VAStatus i965_BeginPicture(
55         VADriverContextP, VAContextID, VASurfaceID);
56
57     extern VAStatus i965_RenderPicture(
58         VADriverContextP, VAContextID,
59         VABufferID *, int);
60
61     extern VAStatus i965_EndPicture(
62         VADriverContextP, VAContextID);
63
64     extern VAStatus i965_DeriveImage(
65         VADriverContextP, VASurfaceID, VAImage *);
66
67     extern VAStatus i965_DestroyImage(
68         VADriverContextP, VAImageID);
69
70     extern VAStatus i965_SyncSurface(
71         VADriverContextP, VASurfaceID);
72
73     extern struct hw_codec_info *i965_get_codec_info(int);
74     extern const struct intel_device_info *i965_get_device_info(int);
75
76 } // extern "C"
77
78 #endif