Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
WinSystemOSX.mm File Reference
#include "WinSystemOSX.h"
#include "ServiceBroker.h"
#include "application/AppInboundProtocol.h"
#include "cores/AudioEngine/AESinkFactory.h"
#include "cores/AudioEngine/Sinks/AESinkDARWINOSX.h"
#include "cores/RetroPlayer/process/osx/RPProcessInfoOSX.h"
#include "cores/RetroPlayer/rendering/VideoRenderers/RPRendererFBO.h"
#include "cores/RetroPlayer/rendering/VideoRenderers/RPRendererOpenGL.h"
#include "cores/VideoPlayer/DVDCodecs/DVDFactoryCodec.h"
#include "cores/VideoPlayer/DVDCodecs/Video/VTB.h"
#include "cores/VideoPlayer/Process/osx/ProcessInfoOSX.h"
#include "cores/VideoPlayer/VideoRenderers/HwDecRender/RendererVTBGL.h"
#include "cores/VideoPlayer/VideoRenderers/RenderFactory.h"
#include "guilib/GUIWindowManager.h"
#include "messaging/ApplicationMessenger.h"
#include "rendering/gl/ScreenshotSurfaceGL.h"
#include "settings/DisplaySettings.h"
#include "settings/Settings.h"
#include "settings/SettingsComponent.h"
#include "threads/CriticalSection.h"
#include "utils/StringUtils.h"
#include "utils/log.h"
#include "windowing/osx/CocoaDPMSSupport.h"
#include "windowing/osx/OSScreenSaverOSX.h"
import "windowing/osx/OpenGL/OSXGLView.h"
import "windowing/osx/OpenGL/WindowControllerMacOS.h"
#include "windowing/osx/VideoSyncOsx.h"
#include "windowing/osx/WinEventsOSX.h"
#include "platform/darwin/osx/CocoaInterface.h"
#include "platform/darwin/osx/powermanagement/CocoaPowerSyscall.h"
#include <array>
#include <chrono>
#include <memory>
#include <mutex>
import <IOKit/graphics/IOGraphicsLib.h>

Functions

size_t DisplayBitsPerPixelForMode (CGDisplayModeRef mode)
 
CGDirectDisplayID GetDisplayID (NSUInteger screen_index)
 
NSString * GetScreenName (NSUInteger screenIdx)
 
EdgeInsets GetScreenEdgeInsets (NSUInteger screenIdx)
 
NSString * screenNameForDisplay (NSUInteger screenIdx)
 
CGDirectDisplayID GetDisplayIDFromScreen (NSScreen *screen)
 
int GetDisplayIndex (CGDirectDisplayID display)
 
NSUInteger GetDisplayIndex (const std::string &dispName)
 
std::string ComputeVideoModeId (size_t resWidth, size_t resHeight, size_t pixelWidth, size_t pixelHeight, bool interlaced)
 
CFArrayRef CopyAllDisplayModes (CGDirectDisplayID display)
 
CGDisplayModeRef CreateModeById (const std::string &modeId, NSUInteger screenIdx)
 
CGDisplayModeRef CreateMode (size_t width, size_t height, double refreshrate, NSUInteger screenIdx)
 
CGDisplayModeRef BestMatchForMode (CGDirectDisplayID display, size_t bitsPerPixel, size_t width, size_t height)
 
void BlankOtherDisplays (NSUInteger screenBeingUsed)
 
void UnblankDisplay (NSUInteger screenToUnblank)
 
void UnblankDisplays (NSUInteger screenBeingUsed)
 

Function Documentation

◆ BestMatchForMode()

CGDisplayModeRef BestMatchForMode ( CGDirectDisplayID display,
size_t bitsPerPixel,
size_t width,
size_t height )

◆ BlankOtherDisplays()

void BlankOtherDisplays ( NSUInteger screenBeingUsed)

◆ ComputeVideoModeId()

std::string ComputeVideoModeId ( size_t resWidth,
size_t resHeight,
size_t pixelWidth,
size_t pixelHeight,
bool interlaced )

◆ CopyAllDisplayModes()

CFArrayRef CopyAllDisplayModes ( CGDirectDisplayID display)

◆ CreateMode()

CGDisplayModeRef CreateMode ( size_t width,
size_t height,
double refreshrate,
NSUInteger screenIdx )

◆ CreateModeById()

CGDisplayModeRef CreateModeById ( const std::string & modeId,
NSUInteger screenIdx )

◆ DisplayBitsPerPixelForMode()

size_t DisplayBitsPerPixelForMode ( CGDisplayModeRef mode)

◆ GetDisplayID()

CGDirectDisplayID GetDisplayID ( NSUInteger screen_index)

◆ GetDisplayIDFromScreen()

CGDirectDisplayID GetDisplayIDFromScreen ( NSScreen * screen)

◆ GetDisplayIndex() [1/2]

int GetDisplayIndex ( CGDirectDisplayID display)

◆ GetDisplayIndex() [2/2]

NSUInteger GetDisplayIndex ( const std::string & dispName)

◆ GetScreenEdgeInsets()

EdgeInsets GetScreenEdgeInsets ( NSUInteger screenIdx)

@TODO update code block once minimal SDK version is bumped to at least 12.0 (remove NSInvocation and selector)

◆ GetScreenName()

NSString * GetScreenName ( NSUInteger screenIdx)

TODO: Remove when 10.15 is the minimal target

◆ screenNameForDisplay()

NSString * screenNameForDisplay ( NSUInteger screenIdx)

◆ UnblankDisplay()

void UnblankDisplay ( NSUInteger screenToUnblank)

◆ UnblankDisplays()

void UnblankDisplays ( NSUInteger screenBeingUsed)