libswscale refactoring

by Pedro Arthur for FFmpeg

This project aims to refactor libswscale so that its internal API be more clean and modular improving its maintainability.