The exchange of gases between the atmosphere and the blood.