C# Класс MediaPortal.Player.Subtitles.SubtitleRenderer

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddSubtitleFilter ( IGraphBuilder _graphBuilder ) : IBaseFilter

Adds the subtitle filter to the graph.

Clear ( ) : void

Cleans up resources

GetInstance ( ) : SubtitleRenderer
OnSeek ( double startPos ) : int

Alerts the subtitle render that a seek has just been performed. Stops displaying the current subtitle and removes any cached subtitles. Furthermore updates the time that playback starts after the seek.

OnSubtitle ( NATIVE_SUBTITLE &sub ) : int

Callback from subtitle filter, alerting us that a new subtitle is available It receives the new subtitle as the argument sub, which data is only valid for the duration of OnSubtitle.

OnTextSubtitle ( TEXT_SUBTITLE &sub ) : void
Render ( ) : void
RenderText ( MediaPortal.Player.Subtitles.LineContent lc ) : Bitmap
Reset ( ) : int

Alerts the subtitle render that a reset has just been performed. Stops displaying the current subtitle and removes any cached subtitles.

SetPlayer ( IPlayer p ) : void
SetSubtitleOption ( SubtitleOption option ) : void
UpdateTimeout ( System.Int64 &timeOut ) : int

Callback from subtitle filter Updates the latest subtitle timeout

Приватные методы

Метод Описание
AddSubtitle ( Subtitle sub ) : void
ClearSubtitles ( ) : void
CreateVertexBuffer ( int wx, int wy, int wwidth, int wheight ) : void

Creates a vertex buffer for a transformed textured quad matching the given rectangle and stores it in vertexBuffer

SetSubtitle ( Subtitle subtitle ) : void
SubtitleRenderer ( ) : System

Описание методов

AddSubtitleFilter() публичный Метод

Adds the subtitle filter to the graph.
public AddSubtitleFilter ( IGraphBuilder _graphBuilder ) : IBaseFilter
_graphBuilder IGraphBuilder
Результат IBaseFilter

Clear() публичный Метод

Cleans up resources
public Clear ( ) : void
Результат void

GetInstance() публичный статический Метод

public static GetInstance ( ) : SubtitleRenderer
Результат SubtitleRenderer

OnSeek() публичный Метод

Alerts the subtitle render that a seek has just been performed. Stops displaying the current subtitle and removes any cached subtitles. Furthermore updates the time that playback starts after the seek.
public OnSeek ( double startPos ) : int
startPos double
Результат int

OnSubtitle() публичный Метод

Callback from subtitle filter, alerting us that a new subtitle is available It receives the new subtitle as the argument sub, which data is only valid for the duration of OnSubtitle.
public OnSubtitle ( NATIVE_SUBTITLE &sub ) : int
sub NATIVE_SUBTITLE
Результат int

OnTextSubtitle() публичный Метод

public OnTextSubtitle ( TEXT_SUBTITLE &sub ) : void
sub TEXT_SUBTITLE
Результат void

Render() публичный Метод

public Render ( ) : void
Результат void

RenderText() публичный статический Метод

public static RenderText ( MediaPortal.Player.Subtitles.LineContent lc ) : Bitmap
lc MediaPortal.Player.Subtitles.LineContent
Результат System.Drawing.Bitmap

Reset() публичный Метод

Alerts the subtitle render that a reset has just been performed. Stops displaying the current subtitle and removes any cached subtitles.
public Reset ( ) : int
Результат int

SetPlayer() публичный Метод

public SetPlayer ( IPlayer p ) : void
p IPlayer
Результат void

SetSubtitleOption() публичный Метод

public SetSubtitleOption ( SubtitleOption option ) : void
option SubtitleOption
Результат void

UpdateTimeout() публичный Метод

Callback from subtitle filter Updates the latest subtitle timeout
public UpdateTimeout ( System.Int64 &timeOut ) : int
timeOut System.Int64
Результат int