Sunshine master
Self-hosted game stream host for Moonlight.
platf::encode_device_t Struct Referenceabstract

Base interface for hardware or software frame conversion. More...

#include <src/platform/common.h>

Inheritance diagram for platf::encode_device_t:
[legend]
Collaboration diagram for platf::encode_device_t:
[legend]

Public Member Functions

virtual int convert (platf::img_t &img)=0
 Convert a captured image into the encoder input representation.
 

Public Attributes

video::sunshine_colorspace_t colorspace
 Colorspace metadata expected by the encoder.
 

Detailed Description

Base interface for hardware or software frame conversion.

Member Function Documentation

◆ convert()

virtual int platf::encode_device_t::convert ( platf::img_t & img)
pure virtual

Convert a captured image into the encoder input representation.

Parameters
imgImage or frame object to read from or populate.
Returns
Conversion status.

Implemented in cuda::cuda_ram_t, cuda::cuda_vram_t, cuda::gl_cuda_vram_t, platf::avcodec_encode_device_t, platf::dxgi::d3d_avcodec_encode_device_t, platf::dxgi::d3d_nvenc_encode_device_t, platf::nv12_zero_device, va::va_ram_t, va::va_vram_t, video::avcodec_software_encode_device_t, and vk::vk_vram_t.


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