| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| //------------------------------------------------ |
| // Functions from libva used in chromium code. |
| //------------------------------------------------ |
| VAStatus vaBeginPicture(VADisplay dpy, VAContextID context, VASurfaceID render_target); |
| const char *vaConfigAttribTypeStr(VAConfigAttribType configAttribType); |
| VAStatus vaCreateBuffer(VADisplay dpy, VAContextID context, VABufferType type, unsigned int size, unsigned int num_elements, void *data, VABufferID *buf_id); |
| VAStatus vaCreateConfig(VADisplay dpy, VAProfile profile, VAEntrypoint entrypoint, VAConfigAttrib *attrib_list, int num_attribs, VAConfigID *config_id); |
| VAStatus vaCreateContext(VADisplay dpy, VAConfigID config_id, int picture_width, int picture_height, int flag, VASurfaceID *render_targets, int num_render_targets, VAContextID *context); |
| VAStatus vaCreateImage(VADisplay dpy, VAImageFormat *format, int width, int height, VAImage *image); |
| VAStatus vaCreateSurfaces(VADisplay dpy, unsigned int format, unsigned int width, unsigned int height, VASurfaceID *surfaces, unsigned int num_surfaces, VASurfaceAttrib *attrib_list, unsigned int num_attribs); |
| VAStatus vaDeriveImage(VADisplay dpy, VASurfaceID surface, VAImage *image); |
| VAStatus vaDestroyBuffer(VADisplay dpy, VABufferID buffer_id); |
| VAStatus vaDestroyConfig(VADisplay dpy, VAConfigID config_id); |
| VAStatus vaDestroyContext(VADisplay dpy, VAContextID context); |
| VAStatus vaDestroyImage(VADisplay dpy, VAImageID image); |
| VAStatus vaDestroySurfaces(VADisplay dpy, VASurfaceID *surfaces, int num_surfaces); |
| int vaDisplayIsValid(VADisplay dpy); |
| VAStatus vaEndPicture(VADisplay dpy, VAContextID context); |
| const char *vaEntrypointStr(VAEntrypoint entrypoint); |
| const char *vaErrorStr(VAStatus error_status); |
| VAStatus vaExportSurfaceHandle(VADisplay dpy, VASurfaceID surface_id, uint32_t mem_type, uint32_t flags, void *descriptor); |
| VAStatus vaGetConfigAttributes(VADisplay dpy, VAProfile profile, VAEntrypoint entrypoint, VAConfigAttrib *attrib_list, int num_attribs); |
| VAStatus vaGetImage(VADisplay dpy, VASurfaceID surface, int x, int y, unsigned int width, unsigned int height, VAImageID image); |
| VAStatus vaInitialize(VADisplay dpy, int *major_version, int *minor_version); |
| VAStatus vaMapBuffer(VADisplay dpy, VABufferID buf_id, void **pbuf); |
| int vaMaxNumConfigAttributes(VADisplay dpy); |
| int vaMaxNumEntrypoints(VADisplay dpy); |
| int vaMaxNumImageFormats(VADisplay dpy); |
| int vaMaxNumProfiles(VADisplay dpy); |
| const char *vaProfileStr(VAProfile profile); |
| VAStatus vaPutImage (VADisplay dpy, VASurfaceID surface, VAImageID image, int src_x, int src_y, unsigned int src_width, unsigned int src_height, int dest_x, int dest_y, unsigned int dest_width, unsigned int dest_height); |
| VAStatus vaQueryConfigAttributes(VADisplay dpy, VAConfigID config_id, VAProfile *profile, VAEntrypoint *entrypoint, VAConfigAttrib *attrib_list, int *num_attribs); |
| VAStatus vaQueryConfigEntrypoints(VADisplay dpy, VAProfile profile, VAEntrypoint *entrypoint_list, int *num_entrypoints); |
| VAStatus vaQueryConfigProfiles(VADisplay dpy, VAProfile *profile_list, int *num_profiles); |
| VAStatus vaQueryImageFormats(VADisplay dpy, VAImageFormat *format_list, int *num_formats); |
| VAStatus vaQuerySurfaceAttributes(VADisplay dpy, VAConfigID config, VASurfaceAttrib *attrib_list, unsigned int *num_attribs); |
| const char* vaQueryVendorString(VADisplay dpy); |
| VAStatus vaQueryVideoProcPipelineCaps(VADisplay dpy, VAContextID context, VABufferID *filters, unsigned int num_filters, VAProcPipelineCaps *pipeline_caps); |
| VAStatus vaRenderPicture(VADisplay dpy, VAContextID context, VABufferID *buffers, int num_buffers); |
| VAStatus vaSyncSurface(VADisplay dpy, VASurfaceID render_target); |
| VAStatus vaTerminate(VADisplay dpy); |
| VAStatus vaUnmapBuffer(VADisplay dpy, VABufferID buf_id); |