xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Typedefs | Functions
vaapi_util.h File Reference
#include <xine/video_out.h>
#include "accel_vaapi.h"
#include <sys/types.h>
#include <va/va.h>

Go to the source code of this file.

Data Structures

struct  vaapi_context_impl
 

Macros

#define RENDER_SURFACES   50
 

Typedefs

typedef struct vaapi_context_impl vaapi_context_impl_t
 

Functions

const char * _x_va_profile_to_string (VAProfile profile)
 
const char * _x_va_entrypoint_to_string (VAEntrypoint entrypoint)
 
void _x_va_reset_va_context (ff_vaapi_context_t *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_free (vaapi_context_impl_t **va_context)
 
int _x_va_check_status (vaapi_context_impl_t *va_context, VAStatus vaStatus, const char *msg)
 
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)
 
int _x_va_profile_from_imgfmt (vaapi_context_impl_t *va_context, unsigned format)
 
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)
 
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

◆ RENDER_SURFACES

#define RENDER_SURFACES   50

Typedef Documentation

◆ vaapi_context_impl_t

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 * va_context,
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_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 ** va_context)

◆ _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 )