def _set_image_effect(self, value):
    self._check_camera_open()
    try:
        mp = self._camera.control.params[mmal.MMAL_PARAMETER_IMAGE_EFFECT]
        mp.value = self.IMAGE_EFFECTS[value]
        self._image_effect_params = None
    except KeyError:
        raise PiCameraValueError(('Invalid image effect: %s' % value))
    self._camera.control.params[mmal.MMAL_PARAMETER_IMAGE_EFFECT] = mp
def _set_image_effect(self, value):
    self._check_camera_open()
    try:
        mp = self._camera.control.params[mmal.MMAL_PARAMETER_IMAGE_EFFECT]
        mp.value = self.IMAGE_EFFECTS[value]
        self._image_effect_params = None
    except KeyError:
        raise PiCameraValueError(('Invalid image effect: %s' % value))
    self._camera.control.params[mmal.MMAL_PARAMETER_IMAGE_EFFECT] = mp