![]() |
Sunshine latest
Self-hosted game stream host for Moonlight.
|
Definitions for display capture on macOS. More...
#include "src/config.h"
#include "src/logging.h"
#include "src/platform/common.h"
#include "src/platform/macos/av_img_t.h"
#include "src/platform/macos/av_video.h"
#include "src/platform/macos/misc.h"
#include "src/platform/macos/nv12_zero_device.h"
#include "src/video.h"
Classes | |
struct | platf::av_display_t |
Macros | |
#define | AVMediaType AVMediaType_FFmpeg |
Functions | |
std::shared_ptr< display_t > | platf::display (mem_type_e hwdevice_type, const std::string &display_name, const video::config_t &config) |
Get the display_t instance for the given hwdevice_type. If display_name is empty, use the first monitor that's compatible you can find If you require to use this parameter in a separate thread, make a copy of it. | |
std::vector< std::string > | platf::display_names (mem_type_e hwdevice_type) |
bool | platf::needs_encoder_reenumeration () |
Check if GPUs/drivers have changed since the last call to this function. | |
Definitions for display capture on macOS.
std::shared_ptr< display_t > platf::display | ( | platf::mem_type_e | hwdevice_type, |
const std::string & | display_name, | ||
const video::config_t & | config ) |
Get the display_t instance for the given hwdevice_type. If display_name is empty, use the first monitor that's compatible you can find If you require to use this parameter in a separate thread, make a copy of it.
display_name | The name of the monitor that SHOULD be displayed |
config | Stream configuration |
Pick a display adapter and capture method.
hwdevice_type | enables possible use of hardware encoder |
bool platf::needs_encoder_reenumeration | ( | ) |
Check if GPUs/drivers have changed since the last call to this function.
Returns if GPUs/drivers have changed since the last call to this function.
true
if a change has occurred or if it is unknown whether a change occurred.