#include <SubtitlesAdapter.h>
|
| virtual void | PostProcess (std::string &text) |
| | Post processing of subtitle, will be called before processing AddSubtitle method.
|
| |
◆ CSubtitlesAdapter()
| CSubtitlesAdapter::CSubtitlesAdapter |
( |
| ) |
|
◆ ~CSubtitlesAdapter()
| CSubtitlesAdapter::~CSubtitlesAdapter |
( |
| ) |
|
|
virtual |
◆ AddSubtitle() [1/2]
| int CSubtitlesAdapter::AddSubtitle |
( |
std::string & | text, |
|
|
double | startTime, |
|
|
double | stopTime ) |
Add a subtitle.
- Parameters
-
| text | The subtitle text |
| startTime | The PTS start time of the subtitle |
| stopTime | The PTS stop time of the subtitle |
- Returns
- Return the subtitle ID, otherwise NO_SUBTITLE_ID if fails
◆ AddSubtitle() [2/2]
Add a subtitle with supplementary options.
- Parameters
-
| text | The subtitle text |
| startTime | The PTS start time of the subtitle |
| stopTime | The PTS stop time of the subtitle |
| opts | Subtitle options |
- Returns
- Return the subtitle ID, otherwise NO_SUBTITLE_ID if fails
◆ AppendToSubtitle()
| void CSubtitlesAdapter::AppendToSubtitle |
( |
int | subtitleId, |
|
|
const char * | text ) |
Append text to the specified subtitle ID.
- Parameters
-
| subtitleId | The subtitle ID |
| text | The text to append |
◆ ChangeSubtitleStopTime()
| void CSubtitlesAdapter::ChangeSubtitleStopTime |
( |
int | subtitleId, |
|
|
double | stopTime ) |
Change the stop time of a subtitle ID with the specified time.
- Parameters
-
| subtitleId | The subtitle ID |
| stopTime | The PTS stop time |
◆ CreateOverlay()
| std::shared_ptr< CDVDOverlay > CSubtitlesAdapter::CreateOverlay |
( |
| ) |
|
◆ DeleteSubtitles()
| int CSubtitlesAdapter::DeleteSubtitles |
( |
int | nSubtitles, |
|
|
int | threshold ) |
Delete old subtitles only if the total number of subtitles added reaches the threshold.
- Parameters
-
| nSubtitles | The number of subtitles to delete |
| threshold | Start deleting only when the number of subtitles is reached |
- Returns
- The updated ID of the last subtitle, otherwise NO_SUBTITLE_ID if error or no subtitles
◆ FlushSubtitles()
| void CSubtitlesAdapter::FlushSubtitles |
( |
| ) |
|
◆ Initialize()
| bool CSubtitlesAdapter::Initialize |
( |
| ) |
|
Initialize the subtitles adapter.
- Returns
- True if success, false if error
◆ PostProcess()
| virtual void CSubtitlesAdapter::PostProcess |
( |
std::string & | text | ) |
|
|
inlineprotectedvirtual |
The documentation for this class was generated from the following files: