C# 클래스 MediaPortal.Player.Subtitles.SubtitleRenderer

파일 보기 프로젝트 열기: MediaPortal/MediaPortal-1 1 사용 예제들

공개 메소드들

메소드 설명
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