Blame va/drm/va_drm_utils.h

Packit Service 9402ce
/*
Packit Service 9402ce
 * va_drm_utils.h - VA/DRM Utilities
Packit Service 9402ce
 *
Packit Service 9402ce
 * Copyright (c) 2012 Intel Corporation. All Rights Reserved.
Packit Service 9402ce
 *
Packit Service 9402ce
 * Permission is hereby granted, free of charge, to any person obtaining a
Packit Service 9402ce
 * copy of this software and associated documentation files (the
Packit Service 9402ce
 * "Software"), to deal in the Software without restriction, including
Packit Service 9402ce
 * without limitation the rights to use, copy, modify, merge, publish,
Packit Service 9402ce
 * distribute, sub license, and/or sell copies of the Software, and to
Packit Service 9402ce
 * permit persons to whom the Software is furnished to do so, subject to
Packit Service 9402ce
 * the following conditions:
Packit Service 9402ce
 * 
Packit Service 9402ce
 * The above copyright notice and this permission notice (including the
Packit Service 9402ce
 * next paragraph) shall be included in all copies or substantial portions
Packit Service 9402ce
 * of the Software.
Packit Service 9402ce
 * 
Packit Service 9402ce
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
Packit Service 9402ce
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Packit Service 9402ce
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
Packit Service 9402ce
 * IN NO EVENT SHALL INTEL AND/OR ITS SUPPLIERS BE LIABLE FOR
Packit Service 9402ce
 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
Packit Service 9402ce
 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
Packit Service 9402ce
 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Packit Service 9402ce
 */
Packit Service 9402ce
Packit Service 9402ce
#ifndef VA_DRM_UTILS_H
Packit Service 9402ce
#define VA_DRM_UTILS_H
Packit Service 9402ce
Packit Service 9402ce
#include <va/va_backend.h>
Packit Service 9402ce
Packit Service 9402ce
/**
Packit Service 9402ce
 * \file va_drm_utils.h
Packit Service 9402ce
 * \brief VA/DRM Utilities
Packit Service 9402ce
 *
Packit Service 9402ce
 * This file contains VA/DRM utility functions. The API herein defined is
Packit Service 9402ce
 * internal to libva. Users include the VA/DRM API itself or VA/Android,
Packit Service 9402ce
 * should it be based on DRM.
Packit Service 9402ce
 */
Packit Service 9402ce
Packit Service 9402ce
#ifdef __cplusplus
Packit Service 9402ce
extern "C" {
Packit Service 9402ce
#endif
Packit Service 9402ce
Packit Service 9402ce
/**
Packit Service 9402ce
 * \brief Returns the VA driver name for the active display.
Packit Service 9402ce
 *
Packit Service 9402ce
 * This functions returns a newly allocated buffer in @driver_name_ptr that
Packit Service 9402ce
 * contains the VA driver name for the active display. Active display means
Packit Service 9402ce
 * the display obtained with any of the vaGetDisplay*() functions.
Packit Service 9402ce
 *
Packit Service 9402ce
 * The VADriverContext.drm_state structure must be valid, i.e. allocated
Packit Service 9402ce
 * and containing an open DRM connection descriptor. The DRM connection
Packit Service 9402ce
 * does *not* need to be authenticated as it only performs a call to
Packit Service 9402ce
 * drmGetVersion().
Packit Service 9402ce
 *
Packit Service 9402ce
 * @param[in]   ctx     the pointer to a VADriverContext
Packit Service 9402ce
 * @param[out]  driver_name_ptr the newly allocated buffer containing
Packit Service 9402ce
 *     the VA driver name
Packit Service 9402ce
 * @return VA_STATUS_SUCCESS if operation is successful, or another
Packit Service 9402ce
 *     #VAStatus value otherwise.
Packit Service 9402ce
 */
Packit Service 9402ce
DLL_HIDDEN
Packit Service 9402ce
VAStatus
Packit Service 9402ce
VA_DRM_GetDriverName(VADriverContextP ctx, char **driver_name_ptr);
Packit Service 9402ce
Packit Service 9402ce
/**
Packit Service 9402ce
 * \brief Checks whether the file descriptor is a DRM Render-Nodes one
Packit Service 9402ce
 *
Packit Service 9402ce
 * This functions checks whether the supplied file descriptor @fd
Packit Service 9402ce
 * falls into the set of DRM Render-Nodes.
Packit Service 9402ce
 */
Packit Service 9402ce
DLL_HIDDEN
Packit Service 9402ce
int
Packit Service 9402ce
VA_DRM_IsRenderNodeFd(int fd);
Packit Service 9402ce
Packit Service 9402ce
/**@}*/
Packit Service 9402ce
Packit Service 9402ce
#ifdef __cplusplus
Packit Service 9402ce
}
Packit Service 9402ce
#endif
Packit Service 9402ce
Packit Service 9402ce
#endif /* VA_DRM_UTILS_H */