> What is sw_scale used for. What I can get is that it is used for > format conversion. Are there any more use of it ? You can select a more sophisticated resizing algorithm if you want higher quality (ex: lanczos takes more cpu, higher quality result).