Lines Matching refs:stuff
336 rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess); in ProcXvQueryAdaptors()
424 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvQueryEncodings()
474 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcXvPutVideo()
475 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvPutVideo()
479 client->errorValue = stuff->port; in ProcXvPutVideo()
488 return XvdiPutVideo(client, pDraw, pPort, pGC, stuff->vid_x, stuff->vid_y, in ProcXvPutVideo()
489 stuff->vid_w, stuff->vid_h, stuff->drw_x, stuff->drw_y, in ProcXvPutVideo()
490 stuff->drw_w, stuff->drw_h); in ProcXvPutVideo()
504 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcXvPutStill()
505 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvPutStill()
509 client->errorValue = stuff->port; in ProcXvPutStill()
518 return XvdiPutStill(client, pDraw, pPort, pGC, stuff->vid_x, stuff->vid_y, in ProcXvPutStill()
519 stuff->vid_w, stuff->vid_h, stuff->drw_x, stuff->drw_y, in ProcXvPutStill()
520 stuff->drw_w, stuff->drw_h); in ProcXvPutStill()
534 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixReadAccess); in ProcXvGetVideo()
535 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvGetVideo()
539 client->errorValue = stuff->port; in ProcXvGetVideo()
548 return XvdiGetVideo(client, pDraw, pPort, pGC, stuff->vid_x, stuff->vid_y, in ProcXvGetVideo()
549 stuff->vid_w, stuff->vid_h, stuff->drw_x, stuff->drw_y, in ProcXvGetVideo()
550 stuff->drw_w, stuff->drw_h); in ProcXvGetVideo()
564 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixReadAccess); in ProcXvGetStill()
565 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvGetStill()
569 client->errorValue = stuff->port; in ProcXvGetStill()
578 return XvdiGetStill(client, pDraw, pPort, pGC, stuff->vid_x, stuff->vid_y, in ProcXvGetStill()
579 stuff->vid_w, stuff->vid_h, stuff->drw_x, stuff->drw_y, in ProcXvGetStill()
580 stuff->drw_w, stuff->drw_h); in ProcXvGetStill()
592 rc = dixLookupDrawable(&pDraw, stuff->drawable, client, 0, in ProcXvSelectVideoNotify()
597 return XvdiSelectVideoNotify(client, pDraw, stuff->onoff); in ProcXvSelectVideoNotify()
608 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvSelectPortNotify()
610 return XvdiSelectPortNotify(client, pPort, stuff->onoff); in ProcXvSelectPortNotify()
623 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvGrabPort()
625 status = XvdiGrabPort(client, pPort, stuff->time, &result); in ProcXvGrabPort()
650 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvUngrabPort()
652 return XvdiUngrabPort(client, pPort, stuff->time); in ProcXvUngrabPort()
665 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvStopVideo()
667 ret = dixLookupDrawable(&pDraw, stuff->drawable, client, 0, DixWriteAccess); in ProcXvStopVideo()
683 VALIDATE_XV_PORT(stuff->port, pPort, DixSetAttrAccess); in ProcXvSetPortAttribute()
685 if (!ValidAtom(stuff->attribute)) { in ProcXvSetPortAttribute()
686 client->errorValue = stuff->attribute; in ProcXvSetPortAttribute()
691 XvdiSetPortAttribute(client, pPort, stuff->attribute, stuff->value); in ProcXvSetPortAttribute()
694 client->errorValue = stuff->attribute; in ProcXvSetPortAttribute()
696 client->errorValue = stuff->value; in ProcXvSetPortAttribute()
712 VALIDATE_XV_PORT(stuff->port, pPort, DixGetAttrAccess); in ProcXvGetPortAttribute()
714 if (!ValidAtom(stuff->attribute)) { in ProcXvGetPortAttribute()
715 client->errorValue = stuff->attribute; in ProcXvGetPortAttribute()
719 status = XvdiGetPortAttribute(client, pPort, stuff->attribute, &value); in ProcXvGetPortAttribute()
721 client->errorValue = stuff->attribute; in ProcXvGetPortAttribute()
747 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvQueryBestSize()
749 (*pPort->pAdaptor->ddQueryBestSize) (pPort, stuff->motion, in ProcXvQueryBestSize()
750 stuff->vid_w, stuff->vid_h, in ProcXvQueryBestSize()
751 stuff->drw_w, stuff->drw_h, in ProcXvQueryBestSize()
779 VALIDATE_XV_PORT(stuff->port, pPort, DixGetAttrAccess); in ProcXvQueryPortAttributes()
828 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcXvPutImage()
829 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvPutImage()
833 client->errorValue = stuff->port; in ProcXvPutImage()
843 if (pPort->pAdaptor->pImages[i].id == stuff->id) { in ProcXvPutImage()
852 width = stuff->width; in ProcXvPutImage()
853 height = stuff->height; in ProcXvPutImage()
859 if ((width < stuff->width) || (height < stuff->height)) in ProcXvPutImage()
865 return XvdiPutImage(client, pDraw, pPort, pGC, stuff->src_x, stuff->src_y, in ProcXvPutImage()
866 stuff->src_w, stuff->src_h, stuff->drw_x, stuff->drw_y, in ProcXvPutImage()
867 stuff->drw_w, stuff->drw_h, pImage, in ProcXvPutImage()
868 (unsigned char *) (&stuff[1]), FALSE, in ProcXvPutImage()
869 stuff->width, stuff->height); in ProcXvPutImage()
888 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcXvShmPutImage()
889 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvShmPutImage()
893 client->errorValue = stuff->port; in ProcXvShmPutImage()
903 if (pPort->pAdaptor->pImages[i].id == stuff->id) { in ProcXvShmPutImage()
912 status = dixLookupResourceByType((void **) &shmdesc, stuff->shmseg, in ProcXvShmPutImage()
917 width = stuff->width; in ProcXvShmPutImage()
918 height = stuff->height; in ProcXvShmPutImage()
922 if ((size_needed + stuff->offset) > shmdesc->size) in ProcXvShmPutImage()
925 if ((width < stuff->width) || (height < stuff->height)) in ProcXvShmPutImage()
928 status = XvdiPutImage(client, pDraw, pPort, pGC, stuff->src_x, stuff->src_y, in ProcXvShmPutImage()
929 stuff->src_w, stuff->src_h, stuff->drw_x, in ProcXvShmPutImage()
930 stuff->drw_y, stuff->drw_w, stuff->drw_h, pImage, in ProcXvShmPutImage()
931 (unsigned char *) shmdesc->addr + stuff->offset, in ProcXvShmPutImage()
932 stuff->send_event, stuff->width, stuff->height); in ProcXvShmPutImage()
934 if ((status == Success) && stuff->send_event) { in ProcXvShmPutImage()
937 .drawable = stuff->drawable, in ProcXvShmPutImage()
940 .shmseg = stuff->shmseg, in ProcXvShmPutImage()
941 .offset = stuff->offset in ProcXvShmPutImage()
976 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvQueryImageAttributes()
979 if (pPort->pAdaptor->pImages[i].id == stuff->id) { in ProcXvQueryImageAttributes()
987 pImage = XvMCFindXvImage(pPort, stuff->id); in ProcXvQueryImageAttributes()
999 width = stuff->width; in ProcXvQueryImageAttributes()
1000 height = stuff->height; in ProcXvQueryImageAttributes()
1039 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvListImageFormats()
1109 if (stuff->data >= xvNumRequests) { in ProcXvDispatch()
1113 return XvProcVector[stuff->data] (client); in ProcXvDispatch()
1123 swaps(&stuff->length); in SProcXvQueryExtension()
1132 swaps(&stuff->length); in SProcXvQueryAdaptors()
1133 swapl(&stuff->window); in SProcXvQueryAdaptors()
1142 swaps(&stuff->length); in SProcXvQueryEncodings()
1143 swapl(&stuff->port); in SProcXvQueryEncodings()
1152 swaps(&stuff->length); in SProcXvGrabPort()
1153 swapl(&stuff->port); in SProcXvGrabPort()
1154 swapl(&stuff->time); in SProcXvGrabPort()
1163 swaps(&stuff->length); in SProcXvUngrabPort()
1164 swapl(&stuff->port); in SProcXvUngrabPort()
1165 swapl(&stuff->time); in SProcXvUngrabPort()
1174 swaps(&stuff->length); in SProcXvPutVideo()
1175 swapl(&stuff->port); in SProcXvPutVideo()
1176 swapl(&stuff->drawable); in SProcXvPutVideo()
1177 swapl(&stuff->gc); in SProcXvPutVideo()
1178 swaps(&stuff->vid_x); in SProcXvPutVideo()
1179 swaps(&stuff->vid_y); in SProcXvPutVideo()
1180 swaps(&stuff->vid_w); in SProcXvPutVideo()
1181 swaps(&stuff->vid_h); in SProcXvPutVideo()
1182 swaps(&stuff->drw_x); in SProcXvPutVideo()
1183 swaps(&stuff->drw_y); in SProcXvPutVideo()
1184 swaps(&stuff->drw_w); in SProcXvPutVideo()
1185 swaps(&stuff->drw_h); in SProcXvPutVideo()
1194 swaps(&stuff->length); in SProcXvPutStill()
1195 swapl(&stuff->port); in SProcXvPutStill()
1196 swapl(&stuff->drawable); in SProcXvPutStill()
1197 swapl(&stuff->gc); in SProcXvPutStill()
1198 swaps(&stuff->vid_x); in SProcXvPutStill()
1199 swaps(&stuff->vid_y); in SProcXvPutStill()
1200 swaps(&stuff->vid_w); in SProcXvPutStill()
1201 swaps(&stuff->vid_h); in SProcXvPutStill()
1202 swaps(&stuff->drw_x); in SProcXvPutStill()
1203 swaps(&stuff->drw_y); in SProcXvPutStill()
1204 swaps(&stuff->drw_w); in SProcXvPutStill()
1205 swaps(&stuff->drw_h); in SProcXvPutStill()
1214 swaps(&stuff->length); in SProcXvGetVideo()
1215 swapl(&stuff->port); in SProcXvGetVideo()
1216 swapl(&stuff->drawable); in SProcXvGetVideo()
1217 swapl(&stuff->gc); in SProcXvGetVideo()
1218 swaps(&stuff->vid_x); in SProcXvGetVideo()
1219 swaps(&stuff->vid_y); in SProcXvGetVideo()
1220 swaps(&stuff->vid_w); in SProcXvGetVideo()
1221 swaps(&stuff->vid_h); in SProcXvGetVideo()
1222 swaps(&stuff->drw_x); in SProcXvGetVideo()
1223 swaps(&stuff->drw_y); in SProcXvGetVideo()
1224 swaps(&stuff->drw_w); in SProcXvGetVideo()
1225 swaps(&stuff->drw_h); in SProcXvGetVideo()
1234 swaps(&stuff->length); in SProcXvGetStill()
1235 swapl(&stuff->port); in SProcXvGetStill()
1236 swapl(&stuff->drawable); in SProcXvGetStill()
1237 swapl(&stuff->gc); in SProcXvGetStill()
1238 swaps(&stuff->vid_x); in SProcXvGetStill()
1239 swaps(&stuff->vid_y); in SProcXvGetStill()
1240 swaps(&stuff->vid_w); in SProcXvGetStill()
1241 swaps(&stuff->vid_h); in SProcXvGetStill()
1242 swaps(&stuff->drw_x); in SProcXvGetStill()
1243 swaps(&stuff->drw_y); in SProcXvGetStill()
1244 swaps(&stuff->drw_w); in SProcXvGetStill()
1245 swaps(&stuff->drw_h); in SProcXvGetStill()
1254 swaps(&stuff->length); in SProcXvPutImage()
1255 swapl(&stuff->port); in SProcXvPutImage()
1256 swapl(&stuff->drawable); in SProcXvPutImage()
1257 swapl(&stuff->gc); in SProcXvPutImage()
1258 swapl(&stuff->id); in SProcXvPutImage()
1259 swaps(&stuff->src_x); in SProcXvPutImage()
1260 swaps(&stuff->src_y); in SProcXvPutImage()
1261 swaps(&stuff->src_w); in SProcXvPutImage()
1262 swaps(&stuff->src_h); in SProcXvPutImage()
1263 swaps(&stuff->drw_x); in SProcXvPutImage()
1264 swaps(&stuff->drw_y); in SProcXvPutImage()
1265 swaps(&stuff->drw_w); in SProcXvPutImage()
1266 swaps(&stuff->drw_h); in SProcXvPutImage()
1267 swaps(&stuff->width); in SProcXvPutImage()
1268 swaps(&stuff->height); in SProcXvPutImage()
1278 swaps(&stuff->length); in SProcXvShmPutImage()
1279 swapl(&stuff->port); in SProcXvShmPutImage()
1280 swapl(&stuff->drawable); in SProcXvShmPutImage()
1281 swapl(&stuff->gc); in SProcXvShmPutImage()
1282 swapl(&stuff->shmseg); in SProcXvShmPutImage()
1283 swapl(&stuff->id); in SProcXvShmPutImage()
1284 swapl(&stuff->offset); in SProcXvShmPutImage()
1285 swaps(&stuff->src_x); in SProcXvShmPutImage()
1286 swaps(&stuff->src_y); in SProcXvShmPutImage()
1287 swaps(&stuff->src_w); in SProcXvShmPutImage()
1288 swaps(&stuff->src_h); in SProcXvShmPutImage()
1289 swaps(&stuff->drw_x); in SProcXvShmPutImage()
1290 swaps(&stuff->drw_y); in SProcXvShmPutImage()
1291 swaps(&stuff->drw_w); in SProcXvShmPutImage()
1292 swaps(&stuff->drw_h); in SProcXvShmPutImage()
1293 swaps(&stuff->width); in SProcXvShmPutImage()
1294 swaps(&stuff->height); in SProcXvShmPutImage()
1306 swaps(&stuff->length); in SProcXvSelectVideoNotify()
1307 swapl(&stuff->drawable); in SProcXvSelectVideoNotify()
1316 swaps(&stuff->length); in SProcXvSelectPortNotify()
1317 swapl(&stuff->port); in SProcXvSelectPortNotify()
1326 swaps(&stuff->length); in SProcXvStopVideo()
1327 swapl(&stuff->port); in SProcXvStopVideo()
1328 swapl(&stuff->drawable); in SProcXvStopVideo()
1337 swaps(&stuff->length); in SProcXvSetPortAttribute()
1338 swapl(&stuff->port); in SProcXvSetPortAttribute()
1339 swapl(&stuff->attribute); in SProcXvSetPortAttribute()
1340 swapl(&stuff->value); in SProcXvSetPortAttribute()
1349 swaps(&stuff->length); in SProcXvGetPortAttribute()
1350 swapl(&stuff->port); in SProcXvGetPortAttribute()
1351 swapl(&stuff->attribute); in SProcXvGetPortAttribute()
1360 swaps(&stuff->length); in SProcXvQueryBestSize()
1361 swapl(&stuff->port); in SProcXvQueryBestSize()
1362 swaps(&stuff->vid_w); in SProcXvQueryBestSize()
1363 swaps(&stuff->vid_h); in SProcXvQueryBestSize()
1364 swaps(&stuff->drw_w); in SProcXvQueryBestSize()
1365 swaps(&stuff->drw_h); in SProcXvQueryBestSize()
1374 swaps(&stuff->length); in SProcXvQueryPortAttributes()
1375 swapl(&stuff->port); in SProcXvQueryPortAttributes()
1384 swaps(&stuff->length); in SProcXvQueryImageAttributes()
1385 swapl(&stuff->port); in SProcXvQueryImageAttributes()
1386 swapl(&stuff->id); in SProcXvQueryImageAttributes()
1387 swaps(&stuff->width); in SProcXvQueryImageAttributes()
1388 swaps(&stuff->height); in SProcXvQueryImageAttributes()
1397 swaps(&stuff->length); in SProcXvListImageFormats()
1398 swapl(&stuff->port); in SProcXvListImageFormats()
1429 if (stuff->data >= xvNumRequests) { in SProcXvDispatch()
1433 return SXvProcVector[stuff->data] (client); in SProcXvDispatch()
1446 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in XineramaXvStopVideo()
1451 result = dixLookupResourceByType((void **) &port, stuff->port, in XineramaXvStopVideo()
1458 stuff->drawable = draw->info[i].id; in XineramaXvStopVideo()
1459 stuff->port = port->info[i].id; in XineramaXvStopVideo()
1476 result = dixLookupResourceByType((void **) &port, stuff->port, in XineramaXvSetPortAttribute()
1483 stuff->port = port->info[i].id; in XineramaXvSetPortAttribute()
1502 send_event = stuff->send_event; in XineramaXvShmPutImage()
1504 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in XineramaXvShmPutImage()
1509 result = dixLookupResourceByType((void **) &gc, stuff->gc, in XineramaXvShmPutImage()
1514 result = dixLookupResourceByType((void **) &port, stuff->port, in XineramaXvShmPutImage()
1521 x = stuff->drw_x; in XineramaXvShmPutImage()
1522 y = stuff->drw_y; in XineramaXvShmPutImage()
1526 stuff->drawable = draw->info[i].id; in XineramaXvShmPutImage()
1527 stuff->port = port->info[i].id; in XineramaXvShmPutImage()
1528 stuff->gc = gc->info[i].id; in XineramaXvShmPutImage()
1529 stuff->drw_x = x; in XineramaXvShmPutImage()
1530 stuff->drw_y = y; in XineramaXvShmPutImage()
1532 stuff->drw_x -= screenInfo.screens[i]->x; in XineramaXvShmPutImage()
1533 stuff->drw_y -= screenInfo.screens[i]->y; in XineramaXvShmPutImage()
1535 stuff->send_event = (send_event && !i) ? 1 : 0; in XineramaXvShmPutImage()
1556 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in XineramaXvPutImage()
1561 result = dixLookupResourceByType((void **) &gc, stuff->gc, in XineramaXvPutImage()
1566 result = dixLookupResourceByType((void **) &port, stuff->port, in XineramaXvPutImage()
1573 x = stuff->drw_x; in XineramaXvPutImage()
1574 y = stuff->drw_y; in XineramaXvPutImage()
1578 stuff->drawable = draw->info[i].id; in XineramaXvPutImage()
1579 stuff->port = port->info[i].id; in XineramaXvPutImage()
1580 stuff->gc = gc->info[i].id; in XineramaXvPutImage()
1581 stuff->drw_x = x; in XineramaXvPutImage()
1582 stuff->drw_y = y; in XineramaXvPutImage()
1584 stuff->drw_x -= screenInfo.screens[i]->x; in XineramaXvPutImage()
1585 stuff->drw_y -= screenInfo.screens[i]->y; in XineramaXvPutImage()
1604 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in XineramaXvPutVideo()
1609 result = dixLookupResourceByType((void **) &gc, stuff->gc, in XineramaXvPutVideo()
1614 result = dixLookupResourceByType((void **) &port, stuff->port, in XineramaXvPutVideo()
1621 x = stuff->drw_x; in XineramaXvPutVideo()
1622 y = stuff->drw_y; in XineramaXvPutVideo()
1626 stuff->drawable = draw->info[i].id; in XineramaXvPutVideo()
1627 stuff->port = port->info[i].id; in XineramaXvPutVideo()
1628 stuff->gc = gc->info[i].id; in XineramaXvPutVideo()
1629 stuff->drw_x = x; in XineramaXvPutVideo()
1630 stuff->drw_y = y; in XineramaXvPutVideo()
1632 stuff->drw_x -= screenInfo.screens[i]->x; in XineramaXvPutVideo()
1633 stuff->drw_y -= screenInfo.screens[i]->y; in XineramaXvPutVideo()
1652 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in XineramaXvPutStill()
1657 result = dixLookupResourceByType((void **) &gc, stuff->gc, in XineramaXvPutStill()
1662 result = dixLookupResourceByType((void **) &port, stuff->port, in XineramaXvPutStill()
1669 x = stuff->drw_x; in XineramaXvPutStill()
1670 y = stuff->drw_y; in XineramaXvPutStill()
1674 stuff->drawable = draw->info[i].id; in XineramaXvPutStill()
1675 stuff->port = port->info[i].id; in XineramaXvPutStill()
1676 stuff->gc = gc->info[i].id; in XineramaXvPutStill()
1677 stuff->drw_x = x; in XineramaXvPutStill()
1678 stuff->drw_y = y; in XineramaXvPutStill()
1680 stuff->drw_x -= screenInfo.screens[i]->x; in XineramaXvPutStill()
1681 stuff->drw_y -= screenInfo.screens[i]->y; in XineramaXvPutStill()