|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <Screenshot.h>
Static Public Member Functions | |
| static void | Register (const std::function< std::unique_ptr< IScreenshotSurface >()> &createFunc) |
| static std::unique_ptr< IScreenshotSurface > | CreateSurface () |
| Create the platform's capture readback surface, null when none registered. | |
| static void | TakeScreenshot () |
| static void | TakeScreenshot (KODI::RENDERING::CAPTURE::CaptureContent content) |
| Screenshot of the given content into the configured folder. | |
| static void | TakeScreenshot (const std::string &filename, KODI::RENDERING::CAPTURE::CaptureContent content=KODI::RENDERING::CAPTURE::CaptureContent::COMPOSITE) |
| static void | TakeScreenshotBoth () |
| Capture the video-only image and the full composite from the same rendered frame into two files in the configured folder (screenshotNNNNN.png and screenshotNNNNN-video.png). | |
| static bool | PumpForCapture (KODI::RENDERING::CAPTURE::CCaptureHandle &handle, std::chrono::milliseconds timeout) |
| Block until a one-shot capture is delivered, returning true on success. On the render/process thread the wait pumps real frames (a plain wait there would starve the frame the capture needs); off-thread it waits passively. Returns false as soon as the request fails. Pumping calls the private CGUIWindowManager::ProcessRenderLoop; other waiters (the bookmarks dialog) call this instead of becoming friends. | |
|
static |
Create the platform's capture readback surface, null when none registered.
|
static |
Block until a one-shot capture is delivered, returning true on success. On the render/process thread the wait pumps real frames (a plain wait there would starve the frame the capture needs); off-thread it waits passively. Returns false as soon as the request fails. Pumping calls the private CGUIWindowManager::ProcessRenderLoop; other waiters (the bookmarks dialog) call this instead of becoming friends.
|
static |
|
static |
|
static |
|
static |
Screenshot of the given content into the configured folder.
|
static |
Capture the video-only image and the full composite from the same rendered frame into two files in the configured folder (screenshotNNNNN.png and screenshotNNNNN-video.png).