Lines Matching defs:pPort

455 XvdiVideoStopped(XvPortPtr pPort, int reason)
460 if (!pPort->pDraw) return Success;
462 XvdiSendVideoNotify(pPort, pPort->pDraw, reason);
464 pPort->pDraw = NULL;
465 pPort->client = NULL;
466 pPort->time = currentTime;
473 XvdiDestroyPort(pointer pPort, XID id)
475 return (* ((XvPortPtr)pPort)->pAdaptor->ddFreePort)(pPort);
529 XvdiSendVideoNotify(XvPortPtr pPort, DrawablePtr pDraw, int reason)
542 event.u.videoNotify.port = pPort->id;
555 XvPortPtr pPort,
562 pn = pPort->pNotify;
568 event.u.portNotify.port = pPort->id;
592 XvPortPtr pPort,
610 if (pPort->grab.client && (pPort->grab.client != client))
612 XvdiSendVideoNotify(pPort, pDraw, XvBusy);
619 pOldDraw = pPort->pDraw;
622 XvdiSendVideoNotify(pPort, pPort->pDraw, XvPreempted);
625 (void) (* pPort->pAdaptor->ddPutVideo)(client, pDraw, pPort, pGC,
629 if ((pPort->pDraw) && (pOldDraw != pDraw))
631 pPort->client = client;
632 XvdiSendVideoNotify(pPort, pPort->pDraw, XvStarted);
635 pPort->time = currentTime;
645 XvPortPtr pPort,
663 if (pPort->grab.client && (pPort->grab.client != client))
665 XvdiSendVideoNotify(pPort, pDraw, XvBusy);
669 pPort->time = currentTime;
671 status = (* pPort->pAdaptor->ddPutStill)(client, pDraw, pPort, pGC,
683 XvPortPtr pPort,
703 if (pPort->grab.client && (pPort->grab.client != client))
705 XvdiSendVideoNotify(pPort, pDraw, XvBusy);
709 pPort->time = currentTime;
711 return (* pPort->pAdaptor->ddPutImage)(client, pDraw, pPort, pGC,
722 XvPortPtr pPort,
740 if (pPort->grab.client && (pPort->grab.client != client))
742 XvdiSendVideoNotify(pPort, pDraw, XvBusy);
749 pOldDraw = pPort->pDraw;
752 XvdiSendVideoNotify(pPort, pPort->pDraw, XvPreempted);
755 (void) (* pPort->pAdaptor->ddGetVideo)(client, pDraw, pPort, pGC,
759 if ((pPort->pDraw) && (pOldDraw != pDraw))
761 pPort->client = client;
762 XvdiSendVideoNotify(pPort, pPort->pDraw, XvStarted);
765 pPort->time = currentTime;
775 XvPortPtr pPort,
793 if (pPort->grab.client && (pPort->grab.client != client))
795 XvdiSendVideoNotify(pPort, pDraw, XvBusy);
799 status = (* pPort->pAdaptor->ddGetStill)(client, pDraw, pPort, pGC,
803 pPort->time = currentTime;
812 XvPortPtr pPort,
822 if (pPort->grab.client && (client != pPort->grab.client))
829 (CompareTimeStamps(time, pPort->time) == EARLIER))
835 if (client == pPort->grab.client)
843 if (!AddResource(id, XvRTGrab, &pPort->grab))
850 if ((pPort->pDraw) && (client != pPort->client))
852 XvdiStopVideo(NULL, pPort, pPort->pDraw);
855 pPort->grab.client = client;
856 pPort->grab.id = id;
858 pPort->time = currentTime;
869 XvPortPtr pPort,
877 if ((!pPort->grab.client) || (client != pPort->grab.client))
883 (CompareTimeStamps(time, pPort->time) == EARLIER))
890 FreeResource(pPort->grab.id, XvRTGrab);
891 pPort->grab.client = NULL;
893 pPort->time = currentTime;
985 XvPortPtr pPort,
993 pn = pPort->pNotify;
1023 tpn->next = pPort->pNotify;
1024 pPort->pNotify = tpn;
1038 XvPortPtr pPort,
1045 if (!pPort->pDraw || (pPort->pDraw != pDraw))
1047 XvdiSendVideoNotify(pPort, pDraw, XvStopped);
1054 if ((client) && (pPort->grab.client) && (pPort->grab.client != client))
1056 XvdiSendVideoNotify(pPort, pDraw, XvBusy);
1060 XvdiSendVideoNotify(pPort, pDraw, XvStopped);
1062 status = (* pPort->pAdaptor->ddStopVideo)(client, pPort, pDraw);
1064 pPort->pDraw = NULL;
1065 pPort->client = (ClientPtr)client;
1066 pPort->time = currentTime;
1075 XvPortPtr pPort,
1082 if (!pPort->pDraw || (pPort->pDraw != pDraw)) return Success;
1084 XvdiSendVideoNotify(pPort, pPort->pDraw, XvPreempted);
1086 status = (* pPort->pAdaptor->ddStopVideo)(client, pPort, pPort->pDraw);
1088 pPort->pDraw = NULL;
1089 pPort->client = (ClientPtr)client;
1090 pPort->time = currentTime;
1098 XvPortPtr pPort,
1106 pa = pPort->pAdaptor;
1132 XvPortPtr pPort,
1138 status = (* pPort->pAdaptor->ddSetPortAttribute)(client, pPort, attribute, value);
1140 XvdiSendPortNotify(pPort, attribute, value);
1148 XvPortPtr pPort,
1154 (* pPort->pAdaptor->ddGetPortAttribute)(client, pPort, attribute, p_value);