def _get_sensor_mode(self):
    self._check_camera_open()
    return self._camera.control.params[mmal.MMAL_PARAMETER_CAMERA_CUSTOM_SENSOR_CONFIG]
def _get_sensor_mode(self):
    self._check_camera_open()
    return self._camera.control.params[mmal.MMAL_PARAMETER_CAMERA_CUSTOM_SENSOR_CONFIG]