xine-lib 1.2.13-20230125hg15249
Macros | Functions
vaapi_util.c File Reference
#include "vaapi_util.h"
#include <stdlib.h>
#include <pthread.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <va/va.h>
#include "xine_va_display.h"

Macros

#define LOG_MODULE   "vaapi"
 
#define PROFILE(profile)    case VAProfile##profile: return "VAProfile" #profile
 
#define ENTRYPOINT(entrypoint)    case VAEntrypoint##entrypoint: return "VAEntrypoint" #entrypoint
 
#define DBG_SURFACE(...)   do { } while (0)
 

Functions

const char * _x_va_profile_to_string (VAProfile profile)
 
const char * _x_va_entrypoint_to_string (VAEntrypoint entrypoint)
 
int _x_va_check_status (vaapi_context_impl_t *this, VAStatus vaStatus, const char *msg)
 
void _x_va_reset_va_context (ff_vaapi_context_t *va_context)
 
void _x_va_free (vaapi_context_impl_t **p_va_context)
 
vaapi_context_impl_t_x_va_new (xine_t *xine, int visual_type, const void *visual, unsigned va_display_flags)
 
void _x_va_destroy_image (vaapi_context_impl_t *va_context, VAImage *va_image)
 
VAStatus _x_va_create_image (vaapi_context_impl_t *va_context, VASurfaceID va_surface_id, VAImage *va_image, int width, int height, int clear, int *is_bound)
 
static VAStatus _x_va_destroy_render_surfaces (vaapi_context_impl_t *va_context)
 
void _x_va_close (vaapi_context_impl_t *va_context)
 
VAStatus _x_va_init (vaapi_context_impl_t *va_context, int va_profile, int width, int height)
 
static int _x_va_has_profile (VAProfile *va_profiles, int va_num_profiles, VAProfile profile)
 
int _x_va_profile_from_imgfmt (vaapi_context_impl_t *va_context, unsigned format)
 
ff_vaapi_surface_t_x_va_alloc_surface (vaapi_context_impl_t *va_context)
 
void _x_va_render_surface (vaapi_context_impl_t *va_context, ff_vaapi_surface_t *va_surface)
 
void _x_va_release_surface (vaapi_context_impl_t *va_context, ff_vaapi_surface_t *va_surface)
 
void _x_va_surface_displayed (vaapi_context_impl_t *va_context, ff_vaapi_surface_t *va_surface)
 

Macro Definition Documentation

◆ DBG_SURFACE

#define DBG_SURFACE ( ...)    do { } while (0)

◆ ENTRYPOINT

#define ENTRYPOINT ( entrypoint)     case VAEntrypoint##entrypoint: return "VAEntrypoint" #entrypoint

◆ LOG_MODULE

#define LOG_MODULE   "vaapi"

◆ PROFILE

#define PROFILE ( profile)     case VAProfile##profile: return "VAProfile" #profile

Function Documentation

◆ _x_va_alloc_surface()

ff_vaapi_surface_t * _x_va_alloc_surface ( vaapi_context_impl_t * va_context)

◆ _x_va_check_status()

int _x_va_check_status ( vaapi_context_impl_t * this,
VAStatus vaStatus,
const char * msg )

◆ _x_va_close()

void _x_va_close ( vaapi_context_impl_t * va_context)

◆ _x_va_create_image()

VAStatus _x_va_create_image ( vaapi_context_impl_t * va_context,
VASurfaceID va_surface_id,
VAImage * va_image,
int width,
int height,
int clear,
int * is_bound )

◆ _x_va_destroy_image()

void _x_va_destroy_image ( vaapi_context_impl_t * va_context,
VAImage * va_image )

◆ _x_va_destroy_render_surfaces()

static VAStatus _x_va_destroy_render_surfaces ( vaapi_context_impl_t * va_context)
static

◆ _x_va_entrypoint_to_string()

const char * _x_va_entrypoint_to_string ( VAEntrypoint entrypoint)

References ENTRYPOINT.

Referenced by _x_va_init().

◆ _x_va_free()

void _x_va_free ( vaapi_context_impl_t ** p_va_context)

◆ _x_va_has_profile()

static int _x_va_has_profile ( VAProfile * va_profiles,
int va_num_profiles,
VAProfile profile )
static

◆ _x_va_init()

VAStatus _x_va_init ( vaapi_context_impl_t * va_context,
int va_profile,
int width,
int height )

◆ _x_va_new()

vaapi_context_impl_t * _x_va_new ( xine_t * xine,
int visual_type,
const void * visual,
unsigned va_display_flags )

◆ _x_va_profile_from_imgfmt()

int _x_va_profile_from_imgfmt ( vaapi_context_impl_t * va_context,
unsigned format )

◆ _x_va_profile_to_string()

const char * _x_va_profile_to_string ( VAProfile profile)

References PROFILE.

Referenced by _x_va_init(), and _x_va_profile_from_imgfmt().

◆ _x_va_release_surface()

void _x_va_release_surface ( vaapi_context_impl_t * va_context,
ff_vaapi_surface_t * va_surface )

◆ _x_va_render_surface()

void _x_va_render_surface ( vaapi_context_impl_t * va_context,
ff_vaapi_surface_t * va_surface )

◆ _x_va_reset_va_context()

void _x_va_reset_va_context ( ff_vaapi_context_t * va_context)

◆ _x_va_surface_displayed()

void _x_va_surface_displayed ( vaapi_context_impl_t * va_context,
ff_vaapi_surface_t * va_surface )