def _set_vflip(self, value):
    self._check_camera_open()
    value = {(False, False): mmal.MMAL_PARAM_MIRROR_NONE, (True, False): mmal.MMAL_PARAM_MIRROR_VERTICAL, (False, True): mmal.MMAL_PARAM_MIRROR_HORIZONTAL, (True, True): mmal.MMAL_PARAM_MIRROR_BOTH}[(bool(value), self.hflip)]
    for port in self._camera.outputs:
        port.params[mmal.MMAL_PARAMETER_MIRROR] = value
def _set_vflip(self, value):
    self._check_camera_open()
    value = {(False, False): mmal.MMAL_PARAM_MIRROR_NONE, (True, False): mmal.MMAL_PARAM_MIRROR_VERTICAL, (False, True): mmal.MMAL_PARAM_MIRROR_HORIZONTAL, (True, True): mmal.MMAL_PARAM_MIRROR_BOTH}[(bool(value), self.hflip)]
    for port in self._camera.outputs:
        port.params[mmal.MMAL_PARAMETER_MIRROR] = value