Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CScreenshotSurfaceWindows Class Reference

#include <ScreenshotSurfaceWindows.h>

Inheritance diagram for CScreenshotSurfaceWindows:
IScreenshotSurface

Public Member Functions

bool Read (const ScreenshotContext &ctx) override
 Read back the current framebuffer only; the caller guarantees a fully rendered frame and render-thread context.
 
- Public Member Functions inherited from IScreenshotSurface
virtual ~IScreenshotSurface ()
 frees the buffer only when the caller did not take ownership via TakeBuffer
 
int GetWidth () const
 
int GetHeight () const
 
int GetStride () const
 signed linesize; negative when the delivered rows are bottom-up
 
AVPixelFormat GetFormat () const
 source coding of the delivered bytes, handed to the consumer's swscale
 
unsigned char * GetBuffer () const
 
unsigned char * TakeBuffer ()
 Transfer buffer ownership to the caller.
 

Static Public Member Functions

static void Register ()
 
static std::unique_ptr< IScreenshotSurfaceCreateSurface ()
 

Additional Inherited Members

- Protected Attributes inherited from IScreenshotSurface
int m_width {0}
 
int m_height {0}
 
int m_stride {0}
 
AVPixelFormat m_format {AV_PIX_FMT_NONE}
 
unsigned char * m_buffer {nullptr}
 

Member Function Documentation

◆ CreateSurface()

std::unique_ptr< IScreenshotSurface > CScreenshotSurfaceWindows::CreateSurface ( )
static

◆ Read()

bool CScreenshotSurfaceWindows::Read ( const ScreenshotContext & ctx)
overridevirtual

Read back the current framebuffer only; the caller guarantees a fully rendered frame and render-thread context.

Reimplemented from IScreenshotSurface.

◆ Register()

void CScreenshotSurfaceWindows::Register ( )
static

The documentation for this class was generated from the following files: