Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#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/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) |
void | CheckAndUpdateCurrentMonitor (NSUInteger screenNumber) |
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) |
CGDisplayModeRef BestMatchForMode | ( | CGDirectDisplayID | display, |
size_t | bitsPerPixel, | ||
size_t | width, | ||
size_t | height ) |
void BlankOtherDisplays | ( | NSUInteger | screenBeingUsed | ) |
void CheckAndUpdateCurrentMonitor | ( | NSUInteger | screenNumber | ) |
std::string ComputeVideoModeId | ( | size_t | resWidth, |
size_t | resHeight, | ||
size_t | pixelWidth, | ||
size_t | pixelHeight, | ||
bool | interlaced ) |
CFArrayRef CopyAllDisplayModes | ( | CGDirectDisplayID | display | ) |
CGDisplayModeRef CreateMode | ( | size_t | width, |
size_t | height, | ||
double | refreshrate, | ||
NSUInteger | screenIdx ) |
CGDisplayModeRef CreateModeById | ( | const std::string & | modeId, |
NSUInteger | screenIdx ) |
size_t DisplayBitsPerPixelForMode | ( | CGDisplayModeRef | mode | ) |
CGDirectDisplayID GetDisplayID | ( | NSUInteger | screen_index | ) |
CGDirectDisplayID GetDisplayIDFromScreen | ( | NSScreen * | screen | ) |
int GetDisplayIndex | ( | CGDirectDisplayID | display | ) |
NSUInteger GetDisplayIndex | ( | const std::string & | dispName | ) |
EdgeInsets GetScreenEdgeInsets | ( | NSUInteger | screenIdx | ) |
@TODO update code block once minimal SDK version is bumped to at least 12.0 (remove NSInvocation and selector)
NSString * GetScreenName | ( | NSUInteger | screenIdx | ) |
TODO: Remove when 10.15 is the minimal target
NSString * screenNameForDisplay | ( | NSUInteger | screenIdx | ) |
void UnblankDisplay | ( | NSUInteger | screenToUnblank | ) |
void UnblankDisplays | ( | NSUInteger | screenBeingUsed | ) |