OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 //------------------------------------------------ | 5 //------------------------------------------------ |
6 // Functions from libva used in chromium code. | 6 // Functions from libva used in chromium code. |
7 //------------------------------------------------ | 7 //------------------------------------------------ |
8 VAStatus vaBeginPicture(VADisplay dpy, VAContextID context, VASurfaceID render_t
arget); | 8 VAStatus vaBeginPicture(VADisplay dpy, VAContextID context, VASurfaceID render_t
arget); |
9 VAStatus vaCreateBuffer(VADisplay dpy, VAContextID context, VABufferType type, u
nsigned int size, unsigned int num_elements, void *data, VABufferID *buf_id); | 9 VAStatus vaCreateBuffer(VADisplay dpy, VAContextID context, VABufferType type, u
nsigned int size, unsigned int num_elements, void *data, VABufferID *buf_id); |
10 VAStatus vaCreateConfig(VADisplay dpy, VAProfile profile, VAEntrypoint entrypoin
t, VAConfigAttrib *attrib_list, int num_attribs, VAConfigID *config_id); | 10 VAStatus vaCreateConfig(VADisplay dpy, VAProfile profile, VAEntrypoint entrypoin
t, VAConfigAttrib *attrib_list, int num_attribs, VAConfigID *config_id); |
11 VAStatus vaCreateContext(VADisplay dpy, VAConfigID config_id, int picture_width,
int picture_height, int flag, VASurfaceID *render_targets, int num_render_targe
ts, VAContextID *context); | 11 VAStatus vaCreateContext(VADisplay dpy, VAConfigID config_id, int picture_width,
int picture_height, int flag, VASurfaceID *render_targets, int num_render_targe
ts, VAContextID *context); |
12 VAStatus vaCreateSurfaces(VADisplay dpy, unsigned int format, unsigned int width
, unsigned int height, VASurfaceID *surfaces, unsigned int num_surfaces, VASurfa
ceAttrib *attrib_list, unsigned int num_attribs); | 12 VAStatus vaCreateSurfaces(VADisplay dpy, unsigned int format, unsigned int width
, unsigned int height, VASurfaceID *surfaces, unsigned int num_surfaces, VASurfa
ceAttrib *attrib_list, unsigned int num_attribs); |
13 VAStatus vaDeriveImage(VADisplay dpy, VASurfaceID surface, VAImage *image); | 13 VAStatus vaDeriveImage(VADisplay dpy, VASurfaceID surface, VAImage *image); |
14 VAStatus vaDestroyBuffer(VADisplay dpy, VABufferID buffer_id); | 14 VAStatus vaDestroyBuffer(VADisplay dpy, VABufferID buffer_id); |
15 VAStatus vaDestroyConfig(VADisplay dpy, VAConfigID config_id); | 15 VAStatus vaDestroyConfig(VADisplay dpy, VAConfigID config_id); |
16 VAStatus vaDestroyContext(VADisplay dpy, VAContextID context); | 16 VAStatus vaDestroyContext(VADisplay dpy, VAContextID context); |
17 VAStatus vaDestroyImage(VADisplay dpy, VAImageID image); | 17 VAStatus vaDestroyImage(VADisplay dpy, VAImageID image); |
18 VAStatus vaDestroySurfaces(VADisplay dpy, VASurfaceID *surfaces, int num_surface
s); | 18 VAStatus vaDestroySurfaces(VADisplay dpy, VASurfaceID *surfaces, int num_surface
s); |
19 int vaDisplayIsValid(VADisplay dpy); | 19 int vaDisplayIsValid(VADisplay dpy); |
20 VAStatus vaEndPicture(VADisplay dpy, VAContextID context); | 20 VAStatus vaEndPicture(VADisplay dpy, VAContextID context); |
21 const char *vaErrorStr(VAStatus error_status); | 21 const char *vaErrorStr(VAStatus error_status); |
22 VAStatus vaGetConfigAttributes(VADisplay dpy, VAProfile profile, VAEntrypoint en
trypoint, VAConfigAttrib *attrib_list, int num_attribs); | 22 VAStatus vaGetConfigAttributes(VADisplay dpy, VAProfile profile, VAEntrypoint en
trypoint, VAConfigAttrib *attrib_list, int num_attribs); |
23 VAStatus vaInitialize(VADisplay dpy, int *major_version, int *minor_version); | 23 VAStatus vaInitialize(VADisplay dpy, int *major_version, int *minor_version); |
24 VAStatus vaMapBuffer(VADisplay dpy, VABufferID buf_id, void **pbuf); | 24 VAStatus vaMapBuffer(VADisplay dpy, VABufferID buf_id, void **pbuf); |
25 int vaMaxNumEntrypoints (VADisplay dpy); | |
26 int vaMaxNumProfiles(VADisplay dpy); | 25 int vaMaxNumProfiles(VADisplay dpy); |
27 VAStatus vaQueryConfigEntrypoints (VADisplay dpy, VAProfile profile, VAEntrypoin
t *entrypoint_list, int *num_entrypoints); | |
28 VAStatus vaQueryConfigProfiles(VADisplay dpy, VAProfile *profile_list, int *num_
profiles); | 26 VAStatus vaQueryConfigProfiles(VADisplay dpy, VAProfile *profile_list, int *num_
profiles); |
29 VAStatus vaRenderPicture(VADisplay dpy, VAContextID context, VABufferID *buffers
, int num_buffers); | 27 VAStatus vaRenderPicture(VADisplay dpy, VAContextID context, VABufferID *buffers
, int num_buffers); |
30 VAStatus vaSetDisplayAttributes(VADisplay dpy, VADisplayAttribute *attr_list, in
t num_attributes); | 28 VAStatus vaSetDisplayAttributes(VADisplay dpy, VADisplayAttribute *attr_list, in
t num_attributes); |
31 VAStatus vaSyncSurface(VADisplay dpy, VASurfaceID render_target); | 29 VAStatus vaSyncSurface(VADisplay dpy, VASurfaceID render_target); |
32 VAStatus vaTerminate(VADisplay dpy); | 30 VAStatus vaTerminate(VADisplay dpy); |
33 VAStatus vaUnmapBuffer(VADisplay dpy, VABufferID buf_id); | 31 VAStatus vaUnmapBuffer(VADisplay dpy, VABufferID buf_id); |
34 | 32 |
35 | 33 |
36 //------------------------------------------------ | 34 //------------------------------------------------ |
37 // Functions from libva-x11 used in chromium code. | 35 // Functions from libva-x11 used in chromium code. |
38 //------------------------------------------------ | 36 //------------------------------------------------ |
39 VADisplay vaGetDisplay(Display *dpy); | 37 VADisplay vaGetDisplay(Display *dpy); |
40 VAStatus vaPutSurface(VADisplay dpy, VASurfaceID surface, Drawable draw, short s
rcx, short srcy, unsigned short srcw, unsigned short srch, short destx, short de
sty, unsigned short destw, unsigned short desth, VARectangle *cliprects, unsigne
d int number_cliprects, unsigned int flags); | 38 VAStatus vaPutSurface(VADisplay dpy, VASurfaceID surface, Drawable draw, short s
rcx, short srcy, unsigned short srcw, unsigned short srch, short destx, short de
sty, unsigned short destw, unsigned short desth, VARectangle *cliprects, unsigne
d int number_cliprects, unsigned int flags); |
OLD | NEW |