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

Function profCB

server/vglconfig.cpp:203–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void profCB(Fl_Widget *w, void *data)
204{
205 int d = (int)((long)data);
206 if(!fconfig.transvalid[RRTRANS_VGL]) return;
207 switch(d)
208 {
209 case 0:
210 fconfig_setcompress(fconfig, RRCOMP_JPEG);
211 fconfig.qual = 30; fconfig.subsamp = 4;
212 break;
213 case 1:
214 fconfig_setcompress(fconfig, RRCOMP_JPEG);
215 fconfig.qual = 80; fconfig.subsamp = 2;
216 break;
217 case 2:
218 fconfig_setcompress(fconfig, RRCOMP_JPEG);
219 fconfig.qual = 95; fconfig.subsamp = 1;
220 break;
221 }
222 setComp();
223 setSamp();
224 setQual();
225 setStereo();
226 setIF();
227}
228
229void spoilCB(Fl_Widget *w, void *data)
230{

Callers

nothing calls this directly

Calls 6

fconfig_setcompressFunction · 0.85
setCompFunction · 0.85
setSampFunction · 0.85
setQualFunction · 0.85
setStereoFunction · 0.85
setIFFunction · 0.85

Tested by

no test coverage detected