[Olena-patches] r4432: Implement HQ2x upscaling algorithm