public bool AssertProperty(MmalBufferProperties property) => ((int)Flags & (int)property) == (int)property;
public static bool HasFlag(this uint value, MmalBufferProperties flag) => ((int)value & (int)flag) == (int)flag;