public int ChannelSize() { var code = SafeNativeMethods.mp_ImageFrame__ChannelSize(mpPtr, out var value); GC.KeepAlive(this); return(ValueOrFormatException(code, value)); }