Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
VideoFrameReadyEventArgs.cs
1namespace Gondwana.Video;
2
6public sealed class VideoFrameReadyEventArgs : EventArgs
7{
11 public IntPtr Pixels { get; } // Valid only for the duration of FrameReady; consumers must copy.
12
16 public int Width { get; }
17
21 public int Height { get; }
22
26 public int Stride { get; }
27
31 public long Pts100ns { get; } // LibVLC vmem does not supply a frame PTS.
32
41 public VideoFrameReadyEventArgs(IntPtr pixels, int width, int height, int stride, long pts100ns)
42 {
43 Pixels = pixels; Width = width; Height = height; Stride = stride; Pts100ns = pts100ns;
44 }
45}
VideoFrameReadyEventArgs(IntPtr pixels, int width, int height, int stride, long pts100ns)
Initializes a new instance of the VideoFrameReadyEventArgs class.
int Width
Gets the width of the video frame in pixels.
long Pts100ns
Gets an optional presentation timestamp in 100-nanosecond units; zero means unavailable.
IntPtr Pixels
Gets a pointer to the BGRX pixel buffer (8 bits per channel; the fourth byte is unused).
int Height
Gets the height of the video frame in pixels.
int Stride
Gets the stride (bytes per row) of the pixel buffer.