VideoCore: Add more rescaling option.

This commit is contained in:
FernandoS27 2021-10-20 18:56:34 +02:00 committed by Fernando Sahmkow
parent d37d10e7a7
commit e7fc60406e
3 changed files with 38 additions and 7 deletions

View file

@ -116,6 +116,11 @@ void UpdateRescalingInfo() {
info.down_shift = 1;
info.downscale = true;
break;
case ResolutionSetup::Res3_4X:
info.up_scale = 3;
info.down_shift = 2;
info.downscale = true;
break;
case ResolutionSetup::Res1X:
info.up_scale = 1;
info.down_shift = 0;
@ -132,6 +137,14 @@ void UpdateRescalingInfo() {
info.up_scale = 4;
info.down_shift = 0;
break;
case ResolutionSetup::Res5X:
info.up_scale = 5;
info.down_shift = 0;
break;
case ResolutionSetup::Res6X:
info.up_scale = 6;
info.down_shift = 0;
break;
default:
UNREACHABLE();
info.up_scale = 1;