Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
video::encoder_t::codec_t Struct Reference

Codec capabilities for AV1, HEVC, or H.264. More...

#include <src/video.h>

Public Member Functions

std::bitset< MAX_FLAGS >::reference operator[] (flag_e flag)
 Return a mutable reference to a codec capability flag.
bool operator[] (flag_e flag) const
 Test whether a codec capability is enabled.

Public Attributes

std::bitset< MAX_FLAGS > capabilities
 Capability flags supported by this codec on the encoder.
std::vector< option_t > common_options
 Options applied to every encode mode for this codec.
std::vector< option_t > fallback_options
 Options used when the preferred mode cannot be selected.
std::vector< option_t > hdr444_options
 Options applied to HDR 4:4:4 streams.
std::vector< option_t > hdr_options
 Options applied to HDR 4:2:0 streams.
std::string name
 Codec name passed to the encoder backend.
std::vector< option_t > sdr444_options
 Options applied to SDR 4:4:4 streams.
std::vector< option_t > sdr_options
 Options applied to SDR 4:2:0 streams.

Detailed Description

Codec capabilities for AV1, HEVC, or H.264.

Member Function Documentation

◆ operator[]() [1/2]

std::bitset< MAX_FLAGS >::reference video::encoder_t::codec_t::operator[] ( flag_e flag)
inline

Return a mutable reference to a codec capability flag.

Parameters
flagFeature flag to test or modify.
Returns
Mutable bitset reference for the requested capability.

◆ operator[]() [2/2]

bool video::encoder_t::codec_t::operator[] ( flag_e flag) const
inline

Test whether a codec capability is enabled.

Parameters
flagFeature flag to test or modify.
Returns
True when the requested video flag is set.

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