#include <OverlayRenderer.h>
◆ PositonResInfoState
Enumerator |
---|
POSRESINFO_UNSET | |
POSRESINFO_SAVE_CHANGES | |
◆ CRenderer()
◆ ~CRenderer()
CRenderer::~CRenderer |
( |
| ) |
|
|
virtual |
◆ AddOverlay()
◆ Convert()
◆ ConvertLibass()
Convert the overlay to a overlay renderer.
- Parameters
-
o | The overlay to convert |
pts | The current PTS time |
subStyle | The style to be used, MUST BE SET ONLY at the first call or when user change settings |
- Returns
- True if success, false if error
◆ CreateSubtitlesStyle()
void CRenderer::CreateSubtitlesStyle |
( |
| ) |
|
|
protected |
◆ Flush()
void CRenderer::Flush |
( |
| ) |
|
◆ HasOverlay()
bool CRenderer::HasOverlay |
( |
int | idx | ) |
|
◆ LoadSettings()
void CRenderer::LoadSettings |
( |
| ) |
|
|
protected |
Load and store settings locally.
◆ Notify()
Process a message from an observable.
- Parameters
-
obs | The observable that sends the message. |
msg | The message. |
Implements Observer.
◆ OnViewChange()
void CRenderer::OnViewChange |
( |
| ) |
|
|
protected |
Called when the screen resolution is changed.
◆ Release() [1/2]
◆ Release() [2/2]
◆ ReleaseCache()
void CRenderer::ReleaseCache |
( |
| ) |
|
|
protected |
◆ ReleaseUnused()
void CRenderer::ReleaseUnused |
( |
| ) |
|
|
protected |
◆ Render() [1/2]
◆ Render() [2/2]
void CRenderer::Render |
( |
int | idx, |
|
|
float | depth = 0.0f ) |
|
virtual |
◆ Reset()
void CRenderer::Reset |
( |
| ) |
|
◆ ResetSubtitlePosition()
void CRenderer::ResetSubtitlePosition |
( |
| ) |
|
|
protected |
Reset the subtitle position to default value.
◆ SetStereoMode()
void CRenderer::SetStereoMode |
( |
const std::string & | stereomode | ) |
|
◆ SetSubtitleVerticalPosition()
void CRenderer::SetSubtitleVerticalPosition |
( |
const int | value, |
|
|
bool | save ) |
Set the subtitle vertical position, it depends on current screen resolution.
- Parameters
-
value | The subtitle position in pixels |
save | If true, the value will be saved to resolution info |
◆ SetVideoRect()
◆ UnInit()
void CRenderer::UnInit |
( |
| ) |
|
◆ m_buffers
◆ m_isSettingsChanged
std::atomic<bool> OVERLAY::CRenderer::m_isSettingsChanged {false} |
|
protected |
◆ m_overlayStyle
◆ m_rd
CRect OVERLAY::CRenderer::m_rd |
|
protected |
◆ m_rs
CRect OVERLAY::CRenderer::m_rs |
|
protected |
◆ m_rv
CRect OVERLAY::CRenderer::m_rv |
|
protected |
◆ m_saveSubtitlePosition
bool OVERLAY::CRenderer::m_saveSubtitlePosition {false} |
|
protected |
◆ m_section
CCriticalSection OVERLAY::CRenderer::m_section |
|
protected |
◆ m_stereomode
std::string OVERLAY::CRenderer::m_stereomode |
|
protected |
◆ m_subtitleAlign
◆ m_subtitleHorizontalAlign
◆ m_subtitlePosition
int OVERLAY::CRenderer::m_subtitlePosition {0} |
|
protected |
◆ m_subtitlePosResInfo
◆ m_subtitleVerticalMargin
int OVERLAY::CRenderer::m_subtitleVerticalMargin {0} |
|
protected |
◆ m_textureCache
std::map<unsigned int, std::shared_ptr<COverlay> > OVERLAY::CRenderer::m_textureCache |
|
protected |
◆ m_textureid
unsigned int CRenderer::m_textureid = 1 |
|
staticprotected |
The documentation for this class was generated from the following files: