1 #ifndef _YI_CLOSED_CAPTIONS_RENDERER_H_ 2 #define _YI_CLOSED_CAPTIONS_RENDERER_H_ 108 std::vector<CYITextSceneNode::YI_TEXT_STYLE_DEF> GenerateTextSceneNodeStyles()
const;
132 virtual void Clear() = 0;
139 virtual void Begin() = 0;
146 virtual void End() = 0;
An interface that describes a class that can render closed captions.
Definition: YiClosedCaptionsRenderer.h:16
CYIColor fontColor
The font color. Defaults to white.
Definition: YiClosedCaptionsRenderer.h:84
CYIColor characterBackgroundColor
The character background color. Defaults to transparent.
Definition: YiClosedCaptionsRenderer.h:85
CYIColor windowColor
The window background color. Defaults to 50% transparent black.
Definition: YiClosedCaptionsRenderer.h:113
bool bBold
True if the font should be bold.
Definition: YiClosedCaptionsRenderer.h:80
virtual void RemoveCues(const CYIString &cueText)=0
TEXT_ANCHOR_POINT eAnchorPoint
The anchor point of the text box. Defaults to CENTER.
Definition: YiClosedCaptionsRenderer.h:116
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
The cue should be rendered until manually removed by a call to RemoveCues(). The cue may also be remo...
Definition: YiClosedCaptionsRenderer.h:64
CYIString text
Definition: YiClosedCaptionsRenderer.h:76
Definition: YiClosedCaptionsRenderer.h:44
uint64_t uExpirationTimeMs
The time at which the cue should be removed, in video time. If 0, the cue remains until removed by th...
Definition: YiClosedCaptionsRenderer.h:124
Definition: YiClosedCaptionsRenderer.h:43
Definition: YiClosedCaptionsRenderer.h:54
virtual void AddCue(const Cue &cue)=0
Definition: YiClosedCaptionsRenderer.h:72
TEXT_ANCHOR_POINT
Definition: YiClosedCaptionsRenderer.h:22
Definition: YiClosedCaptionsRenderer.h:35
virtual ~IYIClosedCaptionsRenderer()
Definition: YiClosedCaptionsRenderer.h:127
TEXT_HORIZONTAL_ALIGNMENT
Definition: YiClosedCaptionsRenderer.h:41
bool bUnderline
True if the font should be underlined.
Definition: YiClosedCaptionsRenderer.h:81
virtual void OnVideoTimeUpdated(uint64_t uVideoTimeMs)=0
Definition: YiClosedCaptionsStylingBridge.h:72
std::vector< Span > spans
The spans of text.
Definition: YiClosedCaptionsRenderer.h:111
The cue should be rendered until the next call to Begin(). The cue may also be removed if it has a du...
Definition: YiClosedCaptionsRenderer.h:63
TEXT_VERTICAL_ALIGNMENT eVerticalAlignment
The vertical alignment of the text within the box. Defaults to ALIGN_VERTICALLY_TOP.
Definition: YiClosedCaptionsRenderer.h:118
glm::vec2 position
The position within the video frame. In pixels.
Definition: YiClosedCaptionsRenderer.h:115
Definition: YiClosedCaptionsRenderer.h:27
Definition: YiClosedCaptionsRenderer.h:53
float fTextHeight
The height of the text box. Defaults to 0. This is used for positionning only – the height of the te...
Definition: YiClosedCaptionsRenderer.h:121
TEXT_VERTICAL_ALIGNMENT
Definition: YiClosedCaptionsRenderer.h:51
bool bItalic
True if the font should be italic.
Definition: YiClosedCaptionsRenderer.h:79
LIFETIME eLifetime
An indication of when the cue should be removed.
Definition: YiClosedCaptionsRenderer.h:123
Definition: YiClosedCaptionsRenderer.h:91
LIFETIME
Definition: YiClosedCaptionsRenderer.h:61
Definition: YiClosedCaptionsRenderer.h:45
float fFontSize
The font size in pixels, relative to the video height.
Definition: YiClosedCaptionsRenderer.h:82
TEXT_HORIZONTAL_ALIGNMENT eHorizontalAlignment
The horizontal alignment of the text within the box. Defaults to ALIGN_CENTER.
Definition: YiClosedCaptionsRenderer.h:117
Definition: YiClosedCaptionsRenderer.h:55
A class used to represent a color value.
Definition: YiColor.h:31
float fTextWidth
The width of the text box. Defaults to -1, which indicates 'use full video width'.
Definition: YiClosedCaptionsRenderer.h:120
Definition: YiClosedCaptionsRenderer.h:31
CYIString fontFamily
Definition: YiClosedCaptionsRenderer.h:78