kodi
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
OVERLAY::COverlay Class Referenceabstract
Inheritance diagram for OVERLAY::COverlay:
Inheritance graph
[legend]

Public Types

enum  EType { TYPE_NONE, TYPE_TEXTURE }
 
enum  EAlign { ALIGN_SCREEN, ALIGN_SCREEN_AR, ALIGN_VIDEO, ALIGN_SUBTITLE }
 
enum  EPosition { POSITION_ABSOLUTE, POSITION_ABSOLUTE_SCREEN, POSITION_RELATIVE }
 

Public Member Functions

virtual void Render (SRenderState &state)=0
 

Static Public Member Functions

static std::shared_ptr< COverlayCreate (const CDVDOverlayImage &o, CRect &rSource)
 
static std::shared_ptr< COverlayCreate (const CDVDOverlaySpu &o)
 
static std::shared_ptr< COverlayCreate (ASS_Image *images, float width, float height)
 

Public Attributes

enum OVERLAY::COverlay::EType m_type
 
enum OVERLAY::COverlay::EAlign m_align
 
enum OVERLAY::COverlay::EPosition m_pos
 
float m_x {0}
 
float m_y {0}
 
float m_width {1.0f}
 
float m_height {1.0f}
 
float m_source_width {0}
 
float m_source_height {0}
 

Protected Member Functions

bool IsSquareResolution (float resRatio)
 Given the resolution ratio determines if it is a 4/3 resolution. More...
 

Member Function Documentation

◆ IsSquareResolution()

bool OVERLAY::COverlay::IsSquareResolution ( float  resRatio)
inlineprotected

Given the resolution ratio determines if it is a 4/3 resolution.

Parameters
resRatioThe resolution ratio (the results of width / height)
Returns
True if the ratio refer to a 4/3 resolution, otherwise false

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