MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / setProf

Function setProf

server/vglconfig.cpp:122–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void setProf(void)
123{
124 if(!profChoice) return;
125 if(!fconfig.transvalid[RRTRANS_VGL] || strlen(fconfig.transport) > 0)
126 {
127 profChoice->value(3); profChoice->deactivate();
128 }
129 else
130 {
131 profChoice->activate();
132 if(fconfig.compress == RRCOMP_JPEG && fconfig.qual == 30
133 && fconfig.subsamp == 4)
134 profChoice->value(0);
135 else if(fconfig.compress == RRCOMP_JPEG && fconfig.qual == 80
136 && fconfig.subsamp == 2)
137 profChoice->value(1);
138 else if(fconfig.compress == RRCOMP_JPEG && fconfig.qual == 95
139 && fconfig.subsamp == 1)
140 profChoice->value(2);
141 else profChoice->value(3);
142 }
143}
144
145void setIF(void)
146{

Callers 4

compCBFunction · 0.85
sampCBFunction · 0.85
qualCBFunction · 0.85
initFunction · 0.85

Calls 3

deactivateMethod · 0.80
activateMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected