Search Results for

    Show / Hide Table of Contents

    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
    Namespace: RenderHeads.Media.AVProVideo
    Assembly: cs.temp.dll.dll
    Syntax
    public class Resampler

    Constructors

    Resampler(MediaPlayer, String, Int32, Resampler.ResampleMode)

    Declaration
    public Resampler(MediaPlayer player, string name, int bufferSize = 2, Resampler.ResampleMode resampleMode = Resampler.ResampleMode.LINEAR)
    Parameters
    Type Name Description
    MediaPlayer player
    System.String name
    System.Int32 bufferSize
    Resampler.ResampleMode resampleMode

    Properties

    BaseTimestamp

    Declaration
    public long BaseTimestamp { get; set; }
    Property Value
    Type Description
    System.Int64

    DroppedFrames

    Declaration
    public int DroppedFrames { get; }
    Property Value
    Type Description
    System.Int32

    ElapsedTimeSinceBase

    Declaration
    public float ElapsedTimeSinceBase { get; set; }
    Property Value
    Type Description
    System.Single

    FrameDisplayedTimer

    Declaration
    public int FrameDisplayedTimer { get; }
    Property Value
    Type Description
    System.Int32

    LastT

    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

    OnVideoEvent(MediaPlayer, MediaPlayerEvent.EventType, ErrorCode)

    Declaration
    public void OnVideoEvent(MediaPlayer mp, MediaPlayerEvent.EventType et, ErrorCode errorCode)
    Parameters
    Type Name Description
    MediaPlayer mp
    MediaPlayerEvent.EventType et
    ErrorCode errorCode

    Release()

    Declaration
    public void Release()

    Reset()

    Declaration
    public void Reset()

    Update()

    Declaration
    public void Update()

    UpdateTimestamp()

    Declaration
    public void UpdateTimestamp()
    In This Article