def _set_annotate_text_size(self, value):
    self._check_camera_open()
    if (not (6 <= value <= 160)):
        raise PiCameraValueError(('Invalid annotation text size: %d (valid range 6-160)' % value))
    if (self._camera.annotate_rev == 3):
        mp = self._camera.control.params[mmal.MMAL_PARAMETER_ANNOTATE]
        mp.text_size = value
        self._camera.control.params[mmal.MMAL_PARAMETER_ANNOTATE] = mp
    elif (value != self.DEFAULT_ANNOTATE_SIZE):
        warnings.warn(PiCameraFallback(('Firmware does not support setting annotation text size; using default (%d) instead' % self.DEFAULT_ANNOTATE_SIZE)))
def _set_annotate_text_size(self, value):
    self._check_camera_open()
    if (not (6 <= value <= 160)):
        raise PiCameraValueError(('Invalid annotation text size: %d (valid range 6-160)' % value))
    if (self._camera.annotate_rev == 3):
        mp = self._camera.control.params[mmal.MMAL_PARAMETER_ANNOTATE]
        mp.text_size = value
        self._camera.control.params[mmal.MMAL_PARAMETER_ANNOTATE] = mp
    elif (value != self.DEFAULT_ANNOTATE_SIZE):
        warnings.warn(PiCameraFallback(('Firmware does not support setting annotation text size; using default (%d) instead' % self.DEFAULT_ANNOTATE_SIZE)))