internal static void SetAwbMode(this MmalCameraComponent camera, MmalParamAwbmodeType mode) { MmalLog.Logger.LogDebug($"Setting AWB mode: {mode}"); var awbMode = new MmalParameterAwbModeType( new MmalParameterHeaderType(MmalParameterAwbMode, Marshal.SizeOf <MmalParameterAwbModeType>()), mode); MmalCheck(MmalPort.SetParameter(camera.Control.Ptr, &awbMode.Hdr), "Unable to set awb mode"); }
public MmalParameterAwbModeType(MmalParameterHeaderType hdr, MmalParamAwbmodeType value) { Hdr = hdr; Value = value; }