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

Public Member Functions

void apply_colorspace () override
 
int convert (platf::img_t &img_base) override
 
int init (std::shared_ptr< platf::display_t > display, adapter_t::pointer adapter_p, pix_fmt_e pix_fmt)
 
void init_hwframes (AVHWFramesContext *frames) override
 Initialize the hwframes context.
 
int prepare_to_derive_context (int hw_device_type) override
 Prepare to derive a context.
 
int set_frame (AVFrame *frame, AVBufferRef *hw_frames_ctx) override
 Set the frame to be encoded.
 
- 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.
 

Additional Inherited Members

- 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

◆ apply_colorspace()

void platf::dxgi::d3d_avcodec_encode_device_t::apply_colorspace ( )
inlineoverridevirtual

Reimplemented from platf::avcodec_encode_device_t.

◆ convert()

int platf::dxgi::d3d_avcodec_encode_device_t::convert ( platf::img_t & img_base)
inlineoverridevirtual

Reimplemented from platf::avcodec_encode_device_t.

◆ init_hwframes()

void platf::dxgi::d3d_avcodec_encode_device_t::init_hwframes ( AVHWFramesContext * frames)
inlineoverridevirtual

Initialize the hwframes context.

Note
Implementations may set parameters during initialization of the hwframes context.

Reimplemented from platf::avcodec_encode_device_t.

◆ prepare_to_derive_context()

int platf::dxgi::d3d_avcodec_encode_device_t::prepare_to_derive_context ( int hw_device_type)
inlineoverridevirtual

Prepare to derive a context.

Note
Implementations may make modifications required before context derivation

Reimplemented from platf::avcodec_encode_device_t.

◆ set_frame()

int platf::dxgi::d3d_avcodec_encode_device_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.


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