![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <OverlayRendererDX.h>
Public Member Functions | |
COverlayImageDX (const CDVDOverlayImage &o, CRect &rSource) | |
Create the overlay for rendering. | |
COverlayImageDX (const CDVDOverlaySpu &o) | |
virtual | ~COverlayImageDX () |
void | Load (const uint32_t *rgba, int width, int height, int stride) |
void | Render (SRenderState &state) |
![]() | |
COverlay () | |
virtual | ~COverlay () |
Public Attributes | |
CD3DTexture | m_texture |
CD3DBuffer | m_vertex |
bool | m_pma {false} |
![]() | |
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} |
Additional Inherited Members | |
![]() | |
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 } |
![]() | |
static std::shared_ptr< COverlay > | Create (const CDVDOverlayImage &o, CRect &rSource) |
static std::shared_ptr< COverlay > | Create (const CDVDOverlaySpu &o) |
static std::shared_ptr< COverlay > | Create (ASS_Image *images, float width, float height) |
![]() | |
bool | IsSquareResolution (float resRatio) |
Given the resolution ratio determines if it is a 4/3 resolution. | |
|
explicit |
Create the overlay for rendering.
o | The overlay image |
rSource | The video source rect size |
|
explicit |
|
virtual |
|
virtual |
Implements OVERLAY::COverlay.
bool OVERLAY::COverlayImageDX::m_pma {false} |
CD3DTexture OVERLAY::COverlayImageDX::m_texture |
CD3DBuffer OVERLAY::COverlayImageDX::m_vertex |