def _get_rotation(self):
    self._check_camera_open()
    return self._camera.outputs[0].params[mmal.MMAL_PARAMETER_ROTATION]
def _get_rotation(self):
    self._check_camera_open()
    return self._camera.outputs[0].params[mmal.MMAL_PARAMETER_ROTATION]