moonlight-qt/app/streaming/streamutils.h
2025-01-25 16:20:20 -06:00

35 lines
776 B
C++

#pragma once
#include "SDL_compat.h"
class StreamUtils
{
public:
static
Uint32 getPlatformWindowFlags();
static
void scaleSourceToDestinationSurface(SDL_Rect* src, SDL_Rect* dst);
static
void screenSpaceToNormalizedDeviceCoords(SDL_FRect* rect, int viewportWidth, int viewportHeight);
static
void screenSpaceToNormalizedDeviceCoords(SDL_Rect* src, SDL_FRect* dst, int viewportWidth, int viewportHeight);
static
bool getNativeDesktopMode(int displayIndex, SDL_DisplayMode* mode, SDL_Rect* safeArea);
static
int getDisplayRefreshRate(SDL_Window* window);
static
bool hasFastAes();
static
int getDrmFdForWindow(SDL_Window* window, bool* needsClose);
static
int getDrmFd(bool preferRenderNode);
};