Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
video_mode.h
Go to the documentation of this file.
1
5#pragma once
6
7// standard includes
8#include <string>
9#include <vector>
10
11// nxdk includes
12#include <hal/video.h>
13
14namespace startup {
15
20 std::vector<VIDEO_MODE> availableVideoModes;
21 VIDEO_MODE bestVideoMode {};
22 };
23
34 bool is_preferred_video_mode(const VIDEO_MODE &candidateVideoMode, const VIDEO_MODE &currentBestVideoMode);
35
42 VIDEO_MODE choose_best_video_mode(const std::vector<VIDEO_MODE> &availableVideoModes);
43
54 std::vector<VIDEO_MODE> stream_resolution_presets(int bpp = 32, int refresh = 60);
55
67 std::vector<VIDEO_MODE> filter_stream_video_modes_for_encoder_settings(const std::vector<VIDEO_MODE> &availableVideoModes, unsigned long encoderSettings);
68
77 VIDEO_MODE choose_default_stream_video_mode(const VIDEO_MODE &outputVideoMode);
78
86 VIDEO_MODE choose_default_stream_video_mode(const std::vector<VIDEO_MODE> &availableVideoModes, const VIDEO_MODE &outputVideoMode);
87
95 VideoModeSelection select_best_video_mode(int bpp = 32, int refresh = REFRESH_DEFAULT);
96
103 std::vector<std::string> format_video_mode_lines(const VideoModeSelection &selection);
104
110 void log_video_modes(const VideoModeSelection &selection);
111
112} // namespace startup
Represents the set of available video modes and the chosen best mode.
Definition video_mode.h:19
std::vector< VIDEO_MODE > availableVideoModes
Detected video modes supported by the platform.
Definition video_mode.h:20
VIDEO_MODE bestVideoMode
Best candidate selected from the detected modes.
Definition video_mode.h:21