Method | Description | |
---|---|---|
Add ( |
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 ( |
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 ) : |
Gets a frame at the given render time.
|
|
GetFrameAt ( int index ) : |
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 ( |
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 ( |
Replaces the internally-held frames with the specified new frames.
|
Method | Description | |
---|---|---|
RecomputeProperties ( ) : void |
Recomputes the properties.
|
|
SearchFrame ( decimal renderTime ) : |
||
ThrowInvalidFrameTypeException ( MediaFrameType frameType ) : void |
Throws the invalid frame type exception.
|
public Add ( |
||
frame | The frame. | |
return | void |
public FFmpegMediaFrameCache ( |
||
otherCache | The other cache. | |
return | System |
public FFmpegMediaFrameCache ( decimal frameRate, MediaFrameType type ) : System | ||
frameRate | decimal | The frame rate. |
type | MediaFrameType | The type. |
return | System |
public GetFrame ( decimal renderTime, bool checkBounds ) : |
||
renderTime | decimal | The render time. |
checkBounds | bool | |
return |
public GetFrameAt ( int index ) : |
||
index | int | The index. |
return |
public GetFrames ( decimal renderTime, decimal duration ) : List |
||
renderTime | decimal | The render time. |
duration | decimal | The duration. |
return | List |
public GetFrames ( decimal renderTime, int frameCount ) : List |
||
renderTime | decimal | The render time. |
frameCount | int | The frame count. |
return | List |
public IndexOf ( |
||
frame | The frame. | |
return | int |
public IndexOf ( decimal renderTime, bool checkBounds ) : int | ||
renderTime | decimal | The render time. |
checkBounds | bool | |
return | int |
public Replace ( |
||
newFrames | The new frames. | |
return | void |