![]() |
Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
|
Implements splash screen layout calculations. More...
Functions | |
| int | splash::calculate_display_width (int screenHeight, const VIDEO_MODE &videoMode, unsigned long encoderSettings) |
| Calculate the logical display width for square-pixel UI layout. | |
| SplashLayout | splash::calculate_logo_destination (int screenWidth, int screenHeight, int logoWidth, int logoHeight, const VIDEO_MODE &videoMode, unsigned long encoderSettings) |
| Calculate the centered destination rectangle for the splash logo. | |
| float | splash::get_display_aspect_ratio (const VIDEO_MODE &videoMode, unsigned long encoderSettings) |
| Return the display aspect ratio after encoder corrections. | |
| float | splash::get_framebuffer_aspect_ratio (const VIDEO_MODE &videoMode) |
| Return the framebuffer aspect ratio for a video mode. | |
| float | splash::get_logo_width_aspect_correction (const VIDEO_MODE &videoMode, unsigned long encoderSettings) |
| Return the width correction factor applied before scaling the logo. | |
Implements splash screen layout calculations.
| int splash::calculate_display_width | ( | int | screenHeight, |
| const VIDEO_MODE & | videoMode, | ||
| unsigned long | encoderSettings ) |
Calculate the logical display width for square-pixel UI layout.
When the framebuffer aspect ratio differs from the effective display aspect, this returns the width that should be used for layout before horizontal scaling is applied back onto the framebuffer.
| screenHeight | Height of the destination surface. |
| videoMode | The video mode being rendered. |
| encoderSettings | The value returned by XVideoGetEncoderSettings(). |
| SplashLayout splash::calculate_logo_destination | ( | int | screenWidth, |
| int | screenHeight, | ||
| int | logoWidth, | ||
| int | logoHeight, | ||
| const VIDEO_MODE & | videoMode, | ||
| unsigned long | encoderSettings ) |
Calculate the centered destination rectangle for the splash logo.
| screenWidth | Width of the destination surface. |
| screenHeight | Height of the destination surface. |
| logoWidth | Width of the source logo. |
| logoHeight | Height of the source logo. |
| videoMode | Active video mode. |
| encoderSettings | The value returned by XVideoGetEncoderSettings(). |
| float splash::get_display_aspect_ratio | ( | const VIDEO_MODE & | videoMode, |
| unsigned long | encoderSettings ) |
Return the display aspect ratio after encoder corrections.
Standard-definition framebuffers may need to be displayed with a corrected aspect ratio based on the active encoder settings.
| videoMode | The video mode being rendered. |
| encoderSettings | The value returned by XVideoGetEncoderSettings(). |
| float splash::get_framebuffer_aspect_ratio | ( | const VIDEO_MODE & | videoMode | ) |
Return the framebuffer aspect ratio for a video mode.
| videoMode | The video mode being rendered. |
| float splash::get_logo_width_aspect_correction | ( | const VIDEO_MODE & | videoMode, |
| unsigned long | encoderSettings ) |
Return the width correction factor applied before scaling the logo.
| videoMode | The video mode being rendered. |
| encoderSettings | The value returned by XVideoGetEncoderSettings(). |