public VideoRenderer(AllocatorPresenter allocator) : base(allocator) { _updateQueue.Enqueue(new FrameVideo(1, 1, 1)); _updateQueue.Enqueue(new FrameVideo(1, 1, 1)); _updateQueue.Enqueue(new FrameVideo(1, 1, 1)); }
public RenderVideo() { SetStyle( ControlStyles.Opaque | ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint, true); var allocator = new AllocatorPresenter(); _allocator = allocator; _videoLayer = new VideoRenderer(allocator); _osdLayer = new OsdRenderer(allocator); _iconLayer = new IconRenderer(allocator); _videoLayer.IsVisible = true; _allocator.Register(_videoLayer); _allocator.Register(_osdLayer); _allocator.Register(_iconLayer); _allocator.PresentCompleted += AllocatorPresenter_OnPresentCompleted; IsSyncSupported = true; VideoFilter = VideoFilter.None; ScaleMode = ScaleMode.FixedPixelSize; }
public IconRenderer(AllocatorPresenter allocator) : base(allocator) { }
public OsdRenderer(AllocatorPresenter allocator) : base(allocator) { }
public RendererBase(AllocatorPresenter allocator) { Allocator = allocator; }