Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
vaapi.h File Reference

Declarations for VA-API hardware accelerated capture. More...

#include "misc.h"
#include "src/platform/common.h"
Include dependency graph for vaapi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::unique_ptr< platf::avcodec_encode_device_t > va::make_avcodec_encode_device (int width, int height, bool vram)
std::unique_ptr< platf::avcodec_encode_device_t > va::make_avcodec_encode_device (int width, int height, int offset_x, int offset_y, bool vram)
std::unique_ptr< platf::avcodec_encode_device_t > va::make_avcodec_encode_device (int width, int height, file_t &&card, int offset_x, int offset_y, bool vram)
bool va::validate (int fd)
int va::encode_capability (int fd)
 Rank what the GPU behind fd can encode, for choosing between GPUs.

Detailed Description

Declarations for VA-API hardware accelerated capture.

Definition in file vaapi.h.

Function Documentation

◆ encode_capability()

int va::encode_capability ( int fd)

Rank what the GPU behind fd can encode, for choosing between GPUs.

Returns
0 when it cannot encode H.264 through VAAPI at all; otherwise 1 for H.264, plus 2 for HEVC, 4 for HEVC Main10 and 8 for AV1. Nothing is logged: this is asked of every GPU, including ones that are not meant to encode.

Definition at line 634 of file vaapi.cpp.

◆ make_avcodec_encode_device() [1/3]

std::unique_ptr< platf::avcodec_encode_device_t > va::make_avcodec_encode_device ( int width,
int height,
bool vram )

Width --> Width of the image Height --> Height of the image offset_x --> Horizontal offset of the image in the texture offset_y --> Vertical offset of the image in the texture file_t card --> The file descriptor of the render device used for encoding

Definition at line 707 of file vaapi.cpp.

◆ make_avcodec_encode_device() [2/3]

std::unique_ptr< platf::avcodec_encode_device_t > va::make_avcodec_encode_device ( int width,
int height,
file_t && card,
int offset_x,
int offset_y,
bool vram )

Definition at line 677 of file vaapi.cpp.

◆ make_avcodec_encode_device() [3/3]

std::unique_ptr< platf::avcodec_encode_device_t > va::make_avcodec_encode_device ( int width,
int height,
int offset_x,
int offset_y,
bool vram )

Definition at line 697 of file vaapi.cpp.

◆ validate()

bool va::validate ( int fd)

Definition at line 599 of file vaapi.cpp.