PlaneInfo
Struct representing an image plane that comes from some captured camera frame.
Public Fields
BytesPerPixel
Gets the bytes per pixel of the image plane.
public uint BytesPerPixel { get; set; }
DataPtr
Gets the pointer to the unmanaged memory where the actual image data is found.
public IntPtr DataPtr { get; set; }
Height
Gets the height of the image plane.
public uint Height { get; set; }
Size
Gets the size of the image plane, representing how many bytes in total the entire image plane contains.
public uint Size { get; set; }
Stride
Gets the stride of the image plane, representing how many bytes one row of the image plane contains.
public uint Stride { get; set; }
Width
Gets the width of the image plane.
public uint Width { get; set; }
Public Methods
PlaneInfo Create
Creates and returns an initialized version of this struct.
public static PlaneInfo Create(
uint width,
uint height,
uint stride,
uint bytesPerPixel,
uint size,
IntPtr dataPtr
)
Parameters
Type | Name | Description |
---|---|---|
uint | width | Width of the image plane. |
uint | height | Height of the image plane. |
uint | stride | Stride of the image plane. |
uint | bytesPerPixel | Bytes per pixel of the image plane. |
uint | size | Size of the image plane. |
IntPtr | dataPtr | Pointer to the image data for the image plane. |
Returns: An initialized version of this struct.
override string ToString
Override to display the contents of a image plane as a string.
public override string ToString()
Returns: A string representation of this struct.
Public Attributes
MaxImagePlanes
Max amount of image planes that can be in a single frame.
public const int MaxImagePlanes = 3;