Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
va::va_vram_t Class Reference
Inheritance diagram for va::va_vram_t:
[legend]
Collaboration diagram for va::va_vram_t:
[legend]

Public Member Functions

int convert (platf::img_t &img) override
int init (int in_width, int in_height, file_t &&render_device, int offset_x, int offset_y)
Public Member Functions inherited from va::va_t
int init (int in_width, int in_height, file_t &&render_device)
VAEntrypoint select_va_entrypoint (VAProfile profile)
 Finds a supported VA entrypoint for the given VA profile.
bool is_va_profile_supported (VAProfile profile)
 Determines if a given VA profile is supported.
VAProfile get_va_profile (AVCodecContext *ctx)
 Determines the matching VA profile for the codec configuration.
void init_codec_options (AVCodecContext *ctx, AVDictionary **options) override
 Provides a hook for allow platform-specific code to adjust codec options.
int set_frame (AVFrame *frame, AVBufferRef *hw_frames_ctx_buf) override
 Set the frame to be encoded.
void apply_colorspace () override
Public Member Functions inherited from platf::avcodec_encode_device_t
virtual void init_hwframes (AVHWFramesContext *frames)
 Initialize the hwframes context.
virtual int prepare_to_derive_context (int hw_device_type)
 Prepare to derive a context.

Public Attributes

std::uint64_t sequence
egl::rgb_t rgb
int offset_x
int offset_y
Public Attributes inherited from va::va_t
va::display_t::pointer va_display
file_t file
gbm::gbm_t gbm
egl::display_t display
egl::ctx_t ctx
frame_t hwframe
egl::sws_t sws
egl::nv12_t nv12
int width
int height
Public Attributes inherited from platf::avcodec_encode_device_t
void * data {}
AVFrame * frame {}
Public Attributes inherited from platf::encode_device_t
video::sunshine_colorspace_t colorspace

Detailed Description

Definition at line 429 of file vaapi.cpp.

Member Function Documentation

◆ convert()

int va::va_vram_t::convert ( platf::img_t & img)
inlineoverridevirtual

Reimplemented from platf::avcodec_encode_device_t.

Definition at line 431 of file vaapi.cpp.

◆ init()

int va::va_vram_t::init ( int in_width,
int in_height,
file_t && render_device,
int offset_x,
int offset_y )
inline

Definition at line 457 of file vaapi.cpp.

Member Data Documentation

◆ offset_x

int va::va_vram_t::offset_x

Definition at line 473 of file vaapi.cpp.

◆ offset_y

int va::va_vram_t::offset_y

Definition at line 473 of file vaapi.cpp.

◆ rgb

egl::rgb_t va::va_vram_t::rgb

Definition at line 471 of file vaapi.cpp.

◆ sequence

std::uint64_t va::va_vram_t::sequence

Definition at line 470 of file vaapi.cpp.


The documentation for this class was generated from the following file: