Class Resampler
Utility class to resample MediaPlayer video frames to allow for smoother playback
Keeps a buffer of frames with timestamps and presents them using its own clock
Inheritance
System.Object
Resampler
Assembly: cs.temp.dll.dll
Constructors
Declaration
public Resampler(MediaPlayer player, string name, int bufferSize = 2, Resampler.ResampleMode resampleMode = Resampler.ResampleMode.LINEAR)
Parameters
Properties
Declaration
public long BaseTimestamp { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Declaration
public int DroppedFrames { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public float ElapsedTimeSinceBase { get; set; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public int FrameDisplayedTimer { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public float LastT { get; }
Property Value
Type |
Description |
System.Single |
|
OutputTexture
Declaration
public Texture[] OutputTexture { get; }
Property Value
Type |
Description |
Texture[] |
|
TextureTimeStamp
Declaration
public long TextureTimeStamp { get; }
Property Value
Type |
Description |
System.Int64 |
|
Methods
Declaration
public void OnVideoEvent(MediaPlayer mp, MediaPlayerEvent.EventType et, ErrorCode errorCode)
Parameters
Declaration
Declaration
Declaration
Declaration
public void UpdateTimestamp()