style cleanup: compositor operations
This commit is contained in:
@@ -32,40 +32,40 @@ QualityStepHelper::QualityStepHelper()
|
||||
void QualityStepHelper::initExecution(QualityHelper helper)
|
||||
{
|
||||
switch (helper) {
|
||||
case COM_QH_INCREASE:
|
||||
switch (this->quality) {
|
||||
case COM_QUALITY_HIGH:
|
||||
default:
|
||||
this->step = 1;
|
||||
this->offsetadd = 4;
|
||||
case COM_QH_INCREASE:
|
||||
switch (this->quality) {
|
||||
case COM_QUALITY_HIGH:
|
||||
default:
|
||||
this->step = 1;
|
||||
this->offsetadd = 4;
|
||||
break;
|
||||
case COM_QUALITY_MEDIUM:
|
||||
this->step = 2;
|
||||
this->offsetadd = 8;
|
||||
break;
|
||||
case COM_QUALITY_LOW:
|
||||
this->step = 3;
|
||||
this->offsetadd = 12;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case COM_QUALITY_MEDIUM:
|
||||
this->step = 2;
|
||||
this->offsetadd = 8;
|
||||
case COM_QH_MULTIPLY:
|
||||
switch (this->quality) {
|
||||
case COM_QUALITY_HIGH:
|
||||
default:
|
||||
this->step = 1;
|
||||
this->offsetadd = 4;
|
||||
break;
|
||||
case COM_QUALITY_MEDIUM:
|
||||
this->step = 2;
|
||||
this->offsetadd = 8;
|
||||
break;
|
||||
case COM_QUALITY_LOW:
|
||||
this->step = 4;
|
||||
this->offsetadd = 16;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case COM_QUALITY_LOW:
|
||||
this->step = 3;
|
||||
this->offsetadd = 12;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case COM_QH_MULTIPLY:
|
||||
switch (this->quality) {
|
||||
case COM_QUALITY_HIGH:
|
||||
default:
|
||||
this->step = 1;
|
||||
this->offsetadd = 4;
|
||||
break;
|
||||
case COM_QUALITY_MEDIUM:
|
||||
this->step = 2;
|
||||
this->offsetadd = 8;
|
||||
break;
|
||||
case COM_QUALITY_LOW:
|
||||
this->step = 4;
|
||||
this->offsetadd = 16;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user