C# 클래스 Unosquare.FFmpegMediaElement.FFmpegMediaFrameCache

Represents a set of ordered media frames of a given type
파일 보기 프로젝트 열기: bbougot/Popcorn 1 사용 예제들

공개 메소드들

메소드 설명
Add ( FFmpegMediaFrame frame ) : void

Adds the specified frame at the right location. This method ensures the collection stays ordered

Clear ( ) : void

Clears all the frames and releases them.

FFmpegMediaFrameCache ( FFmpegMediaFrameCache otherCache ) : System

Initializes a new instance of the FFmpegMediaFrameCache class. This copies all properties from an existing cache excluding frames of course.

FFmpegMediaFrameCache ( decimal frameRate, MediaFrameType type ) : System

Initializes a new instance of the FFmpegMediaFrameCache class.

GetFrame ( decimal renderTime, bool checkBounds ) : FFmpegMediaFrame

Gets a frame at the given render time.

GetFrameAt ( int index ) : FFmpegMediaFrame

Gets the frame at the given index.

GetFrames ( decimal renderTime, decimal duration ) : List

Gets a maximum duration of frames at the given starting renderTime

GetFrames ( decimal renderTime, int frameCount ) : List

Gets a maximum of frameCount frames at the given starting renderTime

IndexOf ( FFmpegMediaFrame frame ) : int

Gets the index of the frame. Returns -1 for not found.

IndexOf ( decimal renderTime, bool checkBounds ) : int

Gets the index of the frame. Returns -1 if not found.

RemoveFirst ( ) : void

Removes the first frame and releases it.

RemoveLast ( ) : void

Removes the last frame and releases it.

Replace ( FFmpegMediaFrameCache newFrames ) : void

Replaces the internally-held frames with the specified new frames.

비공개 메소드들

메소드 설명
RecomputeProperties ( ) : void

Recomputes the properties.

SearchFrame ( decimal renderTime ) : FFmpegMediaFrame
ThrowInvalidFrameTypeException ( MediaFrameType frameType ) : void

Throws the invalid frame type exception.

메소드 상세

Add() 공개 메소드

Adds the specified frame at the right location. This method ensures the collection stays ordered
Buffer is already at capacity.
public Add ( FFmpegMediaFrame frame ) : void
frame FFmpegMediaFrame The frame.
리턴 void

Clear() 공개 메소드

Clears all the frames and releases them.
public Clear ( ) : void
리턴 void

FFmpegMediaFrameCache() 공개 메소드

Initializes a new instance of the FFmpegMediaFrameCache class. This copies all properties from an existing cache excluding frames of course.
public FFmpegMediaFrameCache ( FFmpegMediaFrameCache otherCache ) : System
otherCache FFmpegMediaFrameCache The other cache.
리턴 System

FFmpegMediaFrameCache() 공개 메소드

Initializes a new instance of the FFmpegMediaFrameCache class.
public FFmpegMediaFrameCache ( decimal frameRate, MediaFrameType type ) : System
frameRate decimal The frame rate.
type MediaFrameType The type.
리턴 System

GetFrame() 공개 메소드

Gets a frame at the given render time.
public GetFrame ( decimal renderTime, bool checkBounds ) : FFmpegMediaFrame
renderTime decimal The render time.
checkBounds bool
리턴 FFmpegMediaFrame

GetFrameAt() 공개 메소드

Gets the frame at the given index.
public GetFrameAt ( int index ) : FFmpegMediaFrame
index int The index.
리턴 FFmpegMediaFrame

GetFrames() 공개 메소드

Gets a maximum duration of frames at the given starting renderTime
public GetFrames ( decimal renderTime, decimal duration ) : List
renderTime decimal The render time.
duration decimal The duration.
리턴 List

GetFrames() 공개 메소드

Gets a maximum of frameCount frames at the given starting renderTime
public GetFrames ( decimal renderTime, int frameCount ) : List
renderTime decimal The render time.
frameCount int The frame count.
리턴 List

IndexOf() 공개 메소드

Gets the index of the frame. Returns -1 for not found.
public IndexOf ( FFmpegMediaFrame frame ) : int
frame FFmpegMediaFrame The frame.
리턴 int

IndexOf() 공개 메소드

Gets the index of the frame. Returns -1 if not found.
public IndexOf ( decimal renderTime, bool checkBounds ) : int
renderTime decimal The render time.
checkBounds bool
리턴 int

RemoveFirst() 공개 메소드

Removes the first frame and releases it.
public RemoveFirst ( ) : void
리턴 void

RemoveLast() 공개 메소드

Removes the last frame and releases it.
public RemoveLast ( ) : void
리턴 void

Replace() 공개 메소드

Replaces the internally-held frames with the specified new frames.
Buffer does not support the capacity of new elements
public Replace ( FFmpegMediaFrameCache newFrames ) : void
newFrames FFmpegMediaFrameCache The new frames.
리턴 void