Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
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
int init (int in_width, int in_height)
int set_frame (AVFrame *frame, AVBufferRef *hw_frames_ctx) override
 Set the frame to be encoded.
void apply_colorspace () override
cudaTextureObject_t tex_obj (const tex_t &tex) const
Public Member Functions inherited from platf::avcodec_encode_device_t
virtual void init_hwframes (AVHWFramesContext *frames)
 Initialize the hwframes context.
virtual void init_codec_options (AVCodecContext *ctx, AVDictionary **options)
 Provides a hook for allow platform-specific code to adjust codec options.
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
stream_t stream
frame_t hwframe
int width
int height
bool linear_interpolation
pixel::layout_e layout {pixel::layout_e::bgra8}
 Channel layout of the frames this device converts.
sws_t sws
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 337 of file cuda.cpp.

Member Function Documentation

◆ convert()

int cuda::cuda_vram_t::convert ( platf::img_t & img)
inlineoverridevirtual

Reimplemented from platf::avcodec_encode_device_t.

Definition at line 339 of file cuda.cpp.


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