internal static void SetExposureMeteringMode(this MmalCameraComponent camera, MmalParamExposuremeteringmodeType mode) { MmalLog.Logger.LogDebug($"Setting exposure metering mode: {mode}"); var expMode = new MmalParameterExposuremeteringmodeType( new MmalParameterHeaderType(MmalParameterExpMeteringMode, Marshal.SizeOf <MmalParameterExposuremeteringmodeType>()), mode); MmalCheck(MmalPort.SetParameter(camera.Control.Ptr, &expMode.Hdr), "Unable to set exposure metering mode"); }
public MmalParameterExposuremeteringmodeType(MmalParameterHeaderType hdr, MmalParamExposuremeteringmodeType value) { Hdr = hdr; Value = value; }