Function QTMS_GetCameraLuminance

Source
pub unsafe extern "C" fn QTMS_GetCameraLuminance(
    outLuminanceLux: *mut f32,
) -> Result
Expand description

Gets the average ambient luminance as perceived by the inner camera (in lux). If QTM is unavailable (in particular, QTM is always unavailable on N2DSXL), returns 400.0 instead of the actual luminance.

§Arguments

  • outLuminanceLux (direction out) - Where to write the luminance to. Always 400.0 on N2DSXL.

Note: Camera exposure, and in particular auto-exposure affects the returned luminance value. This must be taken into consideration, because this value can thus surge when user covers the inner camera.

§Returns

Always 0 (success).