Floats replaced by doubles, more default settings added, pillarbox/letterbox video detection code re-arranged.