22 #ifndef VIDEO_SUBTITLES_H 23 #define VIDEO_SUBTITLES_H 25 #include "common/str.h" 26 #include "common/array.h" 27 #include "common/rect.h" 44 seq = seq_; start = start_; end = end_; text = text_;
67 void close() { _loaded =
false; _subtitle.clear(); _fname.clear(); _srtParser.cleanup(); }
68 void setFont(
const char *fontname,
int height = 18);
70 void setColor(byte r, byte g, byte b);
71 void setPadding(uint16 horizontal, uint16 vertical);
72 bool drawSubtitle(uint32 timestamp,
bool force =
false)
const;
73 bool isLoaded()
const {
return _loaded || _subtitleDev; }
76 void renderSubtitle()
const;
81 bool _overlayHasAlpha;
91 mutable int16 _lastOverlayWidth, _lastOverlayHeight;
97 uint32 _transparentColor;
Definition: subtitles.h:61
Definition: formatinfo.h:28
Definition: subtitles.h:36
Definition: subtitles.h:48
Definition: avi_frames.h:36