Struct RAWBaseVideoInfo
- Namespace
- VisioForge.Core.Types
- Assembly
- VisioForge.Core.dll
Represents fundamental information about a raw video stream or frame. This struct provides details such as width, height, color space, stride, and frame rate.
public struct RAWBaseVideoInfoInherited Members
Remarks
This struct is critical for interoperation with unmanaged code and is marked with [StructLayout(LayoutKind.Sequential)]
to ensure its memory layout matches native structures. Do not modify its structure without careful consideration of compatibility.
Width and Height define the dimensions of the video frame in pixels.
Colorspace specifies the pixel format and color encoding (RGB, YUV, etc.) which affects how the raw data should be interpreted.
Stride (also called pitch) is the number of bytes per row of pixels, which may be larger than Width * BytesPerPixel due to alignment padding.
FrameRateNum and FrameRateDen together form a rational number representing frames per second (e.g., 30000/1001 for NTSC, 30/1 for 30 FPS).
This struct is used throughout the framework to describe video streams in a consistent, platform-independent manner.
When allocating buffers for video frames, always use Stride * Height rather than Width * Height * BytesPerPixel.
Fields
Colorspace
Gets or sets the color space format of the raw video data.
public RAWVideoColorSpace ColorspaceField Value
See Also
FrameRateDen
Gets or sets the denominator of the frame rate (e.g., 1 for 30/1 fps).
public int FrameRateDenField Value
FrameRateNum
Gets or sets the numerator of the frame rate (e.g., 30 for 30/1 fps).
public int FrameRateNumField Value
Height
Gets or sets the height of the video frame in pixels.
public int HeightField Value
Stride
Gets or sets the stride (or pitch) of the video frame in bytes. This is the number of bytes required to store one row of pixels.
public int StrideField Value
Width
Gets or sets the width of the video frame in pixels.
public int Width