When is a tennis ball called out?

When the ball is out side the court lines