#pragma warning disable 1591
namespace MMDeploy
{
///
/// Pixel format.
///
public enum PixelFormat
{
BGR,
RGB,
Grayscale,
NV12,
NV21,
BGRA,
UnknownPixelFormat
}
///
/// Mat data type.
///
public enum DataType
{
Float,
Half,
Int8,
Int32,
UnknownDataType
}
///
/// Function return value.
///
public enum Status
{
Success = 0,
InvalidArg = 1,
NotSupported = 2,
OutOfRange = 3,
OutOfMemory = 4,
FileNotExist = 5,
Fail = 6,
Unknown = -1,
}
///
/// c struct of mm_mat_t.
///
public unsafe struct Mat
{
public byte* Data;
public int Height;
public int Width;
public int Channel;
public PixelFormat Format;
public DataType Type;
}
///
/// Rect of float value.
///
public struct Rect
{
public float Left;
public float Top;
public float Right;
public float Bottom;
}
///
/// Point of int.
///
public struct Pointi
{
public int X;
public int Y;
}
///
/// Point of float.
///
public struct Pointf
{
public float X;
public float Y;
public Pointf(float x, float y)
{
X = x;
Y = y;
}
}
}