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

Function RRTransSendFrame

server/testplugin.cpp:202–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201
202int RRTransSendFrame(void *handle, RRFrame *frame, int sync)
203{
204 _vgl_disableFaker();
205
206 int ret = 0;
207 try
208 {
209 VGLTrans *vglconn = (VGLTrans *)handle;
210 if(!vglconn) THROW("Invalid handle");
211 Frame *f;
212 if(!frame || (f = (Frame *)frame->opaque) == NULL)
213 THROW("Invalid frame handle");
214 f->hdr.qual = fconfig->qual;
215 f->hdr.subsamp = fconfig->subsamp;
216 f->hdr.winid = win;
217 vglconn->sendFrame(f);
218 delete frame;
219 }
220 catch(std::exception &e)
221 {
222 snprintf(errStr, MAXSTR + 14, "Error in %s -- %s", GET_METHOD(e),
223 e.what());
224 ret = -1;
225 }
226
227 _vgl_enableFaker();
228
229 return ret;
230}
231
232
233int RRTransDestroy(void *handle)

Callers

nothing calls this directly

Calls 4

whatMethod · 0.80
_vgl_disableFakerFunction · 0.70
_vgl_enableFakerFunction · 0.70
sendFrameMethod · 0.45

Tested by

no test coverage detected