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

Public Member Functions

int convert (platf::img_t &img) override
 
- Public Member Functions inherited from cuda::cuda_t
void apply_colorspace () override
 
int init (int in_width, int in_height)
 
int set_frame (AVFrame *frame, AVBufferRef *hw_frames_ctx) override
 Set the frame to be encoded.
 
cudaTextureObject_t tex_obj (const tex_t &tex) const
 
- Public Member Functions inherited from platf::avcodec_encode_device_t
virtual void init_codec_options (AVCodecContext *ctx, AVDictionary **options)
 Provides a hook for allow platform-specific code to adjust codec options.
 
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 cuda::cuda_t
int height
 
frame_t hwframe
 
bool linear_interpolation
 
stream_t stream
 
sws_t sws
 
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 cuda::cuda_vram_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: