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

Public Member Functions

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
int convert (platf::img_t &img) override
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.

Public Attributes

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 207 of file cuda.cpp.

Member Function Documentation

◆ apply_colorspace()

void cuda::cuda_t::apply_colorspace ( )
inlineoverridevirtual

Reimplemented from platf::avcodec_encode_device_t.

Definition at line 267 of file cuda.cpp.

◆ init()

int cuda::cuda_t::init ( int in_width,
int in_height )
inline

Definition at line 209 of file cuda.cpp.

◆ set_frame()

int cuda::cuda_t::set_frame ( AVFrame * frame,
AVBufferRef * hw_frames_ctx )
inlineoverridevirtual

Set the frame to be encoded.

Note
Implementations must take ownership of 'frame'.

Reimplemented from platf::avcodec_encode_device_t.

Definition at line 223 of file cuda.cpp.

◆ tex_obj()

cudaTextureObject_t cuda::cuda_t::tex_obj ( const tex_t & tex) const
inline

Definition at line 295 of file cuda.cpp.

Member Data Documentation

◆ height

int cuda::cuda_t::height

Definition at line 302 of file cuda.cpp.

◆ hwframe

frame_t cuda::cuda_t::hwframe

Definition at line 300 of file cuda.cpp.

◆ layout

pixel::layout_e cuda::cuda_t::layout {pixel::layout_e::bgra8}

Channel layout of the frames this device converts.

Definition at line 308 of file cuda.cpp.

◆ linear_interpolation

bool cuda::cuda_t::linear_interpolation

Definition at line 305 of file cuda.cpp.

◆ stream

stream_t cuda::cuda_t::stream

Definition at line 299 of file cuda.cpp.

◆ sws

sws_t cuda::cuda_t::sws

Definition at line 310 of file cuda.cpp.

◆ width

int cuda::cuda_t::width

Definition at line 302 of file cuda.cpp.


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