Sunshine latest
Self-hosted game stream host for Moonlight.
va::va_ram_t Class Reference
Inheritance diagram for va::va_ram_t:
[legend]
Collaboration diagram for va::va_ram_t:
[legend]

Public Member Functions

int convert (platf::img_t &img) override
 
- Public Member Functions inherited from va::va_t
void apply_colorspace () override
 
VAProfile get_va_profile (AVCodecContext *ctx)
 Determines the matching VA profile for the codec configuration.
 
int init (int in_width, int in_height, file_t &&render_device)
 
void init_codec_options (AVCodecContext *ctx, AVDictionary **options) override
 Provides a hook for allow platform-specific code to adjust codec options.
 
bool is_va_profile_supported (VAProfile profile)
 Determines if a given VA profile is supported.
 
VAEntrypoint select_va_entrypoint (VAProfile profile)
 Finds a supported VA entrypoint for the given VA profile.
 
int set_frame (AVFrame *frame, AVBufferRef *hw_frames_ctx_buf) override
 Set the frame to be encoded.
 
- 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.
 

Additional Inherited Members

- Public Attributes inherited from va::va_t
egl::ctx_t ctx
 
egl::display_t display
 
file_t file
 
gbm::gbm_t gbm
 
int height
 
frame_t hwframe
 
egl::nv12_t nv12
 
egl::sws_t sws
 
va::display_t::pointer va_display
 
int width
 
- 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
 

Member Function Documentation

◆ convert()

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

Reimplemented from platf::avcodec_encode_device_t.


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