|
Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
|
#include <DebugRenderer.h>
Public Member Functions | |
| CRenderer () | |
| void | Render (int idx, float depth=1.0f) override |
| void | CreateSubtitlesStyle () |
Public Member Functions inherited from OVERLAY::CRenderer | |
| CRenderer () | |
| virtual | ~CRenderer () |
| void | Notify (const Observable &obs, const ObservableMessage msg) override |
| Process a message from an observable. | |
| void | AddOverlay (std::shared_ptr< CDVDOverlay > o, double pts, int index) |
| void | RenderHDROverlays (int idx) |
| void | PrepareOverlays (int idx) |
| Pre-walk hook: render libass output for the present slot. Called once per frame on the GUI/main thread before the GUI walk-skip decision. Caches the ASS_Image* and detect_change flag on each SElement so ConvertLibass can consume them during the walk without re-entering libass. Calls MarkDirty internally when libass reports a visible or changed subtitle. | |
| void | UnInit () |
| Release resources. | |
| void | Flush () |
| void | Reset () |
| Reset to default values. | |
| void | Release (int idx) |
| bool | HasVisibleOverlay (int idx) const |
| True if any overlay in m_buffers[idx] is visible this frame. | |
| void | SetVideoRect (CRect &source, CRect &dest, CRect &view) |
| void | SetStereoMode (const std::string &stereomode) |
| void | SetSubtitleVerticalPosition (const int value, bool save) |
| Set the subtitle vertical position, it depends on current screen resolution. | |
Public Member Functions inherited from Observer | |
| Observer ()=default | |
| virtual | ~Observer ()=default |
Additional Inherited Members | |
Protected Types inherited from OVERLAY::CRenderer | |
| enum | PositonResInfoState { POSRESINFO_UNSET = -1 , POSRESINFO_SAVE_CHANGES = -2 } |
Protected Member Functions inherited from OVERLAY::CRenderer | |
| void | ResetSubtitlePosition () |
| Reset the subtitle position to default value. | |
| void | OnViewChange () |
| Called when the screen resolution is changed. | |
| void | Render (COverlay *o) |
| std::shared_ptr< COverlay > | Convert (SElement &e) |
| std::shared_ptr< COverlay > | ConvertLibass (SElement &e) |
| void | CreateSubtitlesStyle () |
| void | SetContentRect (KODI::SUBTITLES::STYLE::renderOpts &opts) const |
Set the picture rectangle on opts, so subtitles aligned inside the video are placed inside the picture rather than in the coded bars. | |
| void | Release (std::vector< SElement > &list) |
| void | ReleaseCache () |
| void | ReleaseUnused () |
| void | LoadSettings () |
| Load and store settings locally. | |
| void | UpdateSubtitleStyle () |
| Reload the settings and rebuild the style when they have changed. | |
| void | UpdateSubtitlePosition (SubtitleResolution &resolution) |
| Track changes to the subtitle position for the current frame. | |
| KODI::SUBTITLES::STYLE::renderOpts | GetRenderOptions (const CDVDOverlayLibass &overlay, const KODI::SUBTITLES::STYLE::style &style, const SubtitleResolution &resolution) const |
The libass render options for overlay drawn with style on the current frame. | |
Protected Attributes inherited from OVERLAY::CRenderer | |
| CCriticalSection | m_section |
| std::vector< SElement > | m_buffers [NUM_BUFFERS] |
| std::map< unsigned int, std::shared_ptr< COverlay > > | m_textureCache |
| CRect | m_rv |
| CRect | m_rs |
| CRect | m_rd |
| std::string | m_stereomode |
| int | m_subtitlePosition {0} |
| int | m_subtitlePosResInfo {POSRESINFO_UNSET} |
| int | m_subtitleVerticalMargin {0} |
| bool | m_saveSubtitlePosition {false} |
| KODI::SUBTITLES::HorizontalAlign | m_subtitleHorizontalAlign |
| KODI::SUBTITLES::Align | m_subtitleAlign {KODI::SUBTITLES::Align::BOTTOM_OUTSIDE} |
| bool | m_subtitleAlignToContent {false} |
| Measure alignment against the picture rather than the whole video. | |
| bool | m_subtitleKeepAuthoredPositions {false} |
| std::shared_ptr< struct KODI::SUBTITLES::STYLE::style > | m_overlayStyle |
| std::atomic< bool > | m_isSettingsChanged {false} |
| bool | m_prevHadImageSpu {false} |
| bool | m_prevHadLibassImages {false} |
Static Protected Attributes inherited from OVERLAY::CRenderer | |
| static unsigned int | m_textureid = 1 |
| CDebugRenderer::CRenderer::CRenderer | ( | ) |
| void CDebugRenderer::CRenderer::CreateSubtitlesStyle | ( | ) |
Reimplemented from OVERLAY::CRenderer.