Lines Matching defs:pPort
473 XvPortPtr pPort;
481 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
483 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
491 rep.num_encodings = pPort->pAdaptor->nEncodings;
495 ne = pPort->pAdaptor->nEncodings;
496 pe = pPort->pAdaptor->pEncodings;
508 ne = pPort->pAdaptor->nEncodings;
509 pe = pPort->pAdaptor->pEncodings;
530 XvPortPtr pPort;
538 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
540 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
546 if (!(pPort->pAdaptor->type & XvInputMask) ||
547 !(pPort->pAdaptor->type & XvVideoMask))
553 status = XvdiMatchPort(pPort, pDraw);
559 return XvdiPutVideo(client, pDraw, pPort, pGC, stuff->vid_x, stuff->vid_y,
568 XvPortPtr pPort;
576 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
578 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
584 if (!(pPort->pAdaptor->type & XvInputMask) ||
585 !(pPort->pAdaptor->type & XvStillMask))
591 status = XvdiMatchPort(pPort, pDraw);
597 return XvdiPutStill(client, pDraw, pPort, pGC, stuff->vid_x, stuff->vid_y,
606 XvPortPtr pPort;
614 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
616 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
622 if (!(pPort->pAdaptor->type & XvOutputMask) ||
623 !(pPort->pAdaptor->type & XvVideoMask))
629 status = XvdiMatchPort(pPort, pDraw);
635 return XvdiGetVideo(client, pDraw, pPort, pGC, stuff->vid_x, stuff->vid_y,
644 XvPortPtr pPort;
652 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
654 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
660 if (!(pPort->pAdaptor->type & XvOutputMask) ||
661 !(pPort->pAdaptor->type & XvStillMask))
667 status = XvdiMatchPort(pPort, pDraw);
673 return XvdiGetStill(client, pDraw, pPort, pGC, stuff->vid_x, stuff->vid_y,
697 XvPortPtr pPort;
701 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
703 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
709 return XvdiSelectPortNotify(client, pPort, stuff->onoff);
716 XvPortPtr pPort;
721 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
723 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
729 status = XvdiGrabPort(client, pPort, stuff->time, &result);
750 XvPortPtr pPort;
754 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
756 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
762 return XvdiUngrabPort(client, pPort, stuff->time);
770 XvPortPtr pPort;
774 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
776 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
786 return XvdiStopVideo(client, pPort, pDraw);
793 XvPortPtr pPort;
797 VALIDATE_XV_PORT(stuff->port, pPort, DixSetAttrAccess);
799 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
811 status = XvdiSetPortAttribute(client, pPort, stuff->attribute, stuff->value);
826 XvPortPtr pPort;
831 VALIDATE_XV_PORT(stuff->port, pPort, DixGetAttrAccess);
833 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
845 status = XvdiGetPortAttribute(client, pPort, stuff->attribute, &value);
867 XvPortPtr pPort;
872 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
874 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
884 (* pPort->pAdaptor->ddQueryBestSize)(client, pPort, stuff->motion,
902 XvPortPtr pPort;
909 VALIDATE_XV_PORT(stuff->port, pPort, DixGetAttrAccess);
911 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
919 rep.num_attributes = pPort->pAdaptor->nAttributes;
922 for(i = 0, pAtt = pPort->pAdaptor->pAttributes;
923 i < pPort->pAdaptor->nAttributes; i++, pAtt++)
928 rep.length = (pPort->pAdaptor->nAttributes * sz_xvAttributeInfo)
934 for(i = 0, pAtt = pPort->pAdaptor->pAttributes;
935 i < pPort->pAdaptor->nAttributes; i++, pAtt++)
955 XvPortPtr pPort;
965 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
967 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
973 if (!(pPort->pAdaptor->type & XvImageMask) ||
974 !(pPort->pAdaptor->type & XvInputMask))
980 status = XvdiMatchPort(pPort, pDraw);
986 for(i = 0; i < pPort->pAdaptor->nImages; i++) {
987 if(pPort->pAdaptor->pImages[i].id == stuff->id) {
988 pImage = &(pPort->pAdaptor->pImages[i]);
998 size = (*pPort->pAdaptor->ddQueryImageAttributes)(client,
999 pPort, pImage, &width, &height, NULL, NULL);
1009 return XvdiPutImage(client, pDraw, pPort, pGC, stuff->src_x, stuff->src_y,
1035 XvPortPtr pPort;
1045 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
1047 if ((status = _AllocatePort(stuff->port, pPort)) != Success)
1053 if (!(pPort->pAdaptor->type & XvImageMask) ||
1054 !(pPort->pAdaptor->type & XvInputMask))
1060 status = XvdiMatchPort(pPort, pDraw);
1066 for(i = 0; i < pPort->pAdaptor->nImages; i++) {
1067 if(pPort->pAdaptor->pImages[i].id == stuff->id) {
1068 pImage = &(pPort->pAdaptor->pImages[i]);
1083 size_needed = (*pPort->pAdaptor->ddQueryImageAttributes)(client,
1084 pPort, pImage, &width, &height, NULL, NULL);
1091 status = XvdiPutImage(client, pDraw, pPort, pGC, stuff->src_x, stuff->src_y,
1131 XvPortPtr pPort;
1139 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
1141 for(i = 0; i < pPort->pAdaptor->nImages; i++) {
1142 if(pPort->pAdaptor->pImages[i].id == stuff->id) {
1143 pImage = &(pPort->pAdaptor->pImages[i]);
1150 pImage = XvMCFindXvImage(pPort, stuff->id);
1165 size = (*pPort->pAdaptor->ddQueryImageAttributes)(client, pPort, pImage,
1189 XvPortPtr pPort;
1198 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess);
1202 rep.num_formats = pPort->pAdaptor->nImages;
1203 rep.length = bytes_to_int32(pPort->pAdaptor->nImages * sz_xvImageFormatInfo);
1207 pImage = pPort->pAdaptor->pImages;
1209 for(i = 0; i < pPort->pAdaptor->nImages; i++, pImage++) {