Lines Matching refs:pPort

417     XvPortPtr pPort;  in ProcXvQueryEncodings()  local
424 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvQueryEncodings()
429 .num_encodings = pPort->pAdaptor->nEncodings in ProcXvQueryEncodings()
434 ne = pPort->pAdaptor->nEncodings; in ProcXvQueryEncodings()
435 pe = pPort->pAdaptor->pEncodings; in ProcXvQueryEncodings()
446 ne = pPort->pAdaptor->nEncodings; in ProcXvQueryEncodings()
447 pe = pPort->pAdaptor->pEncodings; in ProcXvQueryEncodings()
467 XvPortPtr pPort; in ProcXvPutVideo() local
475 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvPutVideo()
477 if (!(pPort->pAdaptor->type & XvInputMask) || in ProcXvPutVideo()
478 !(pPort->pAdaptor->type & XvVideoMask)) { in ProcXvPutVideo()
483 status = XvdiMatchPort(pPort, pDraw); in ProcXvPutVideo()
488 return XvdiPutVideo(client, pDraw, pPort, pGC, stuff->vid_x, stuff->vid_y, in ProcXvPutVideo()
497 XvPortPtr pPort; in ProcXvPutStill() local
505 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvPutStill()
507 if (!(pPort->pAdaptor->type & XvInputMask) || in ProcXvPutStill()
508 !(pPort->pAdaptor->type & XvStillMask)) { in ProcXvPutStill()
513 status = XvdiMatchPort(pPort, pDraw); in ProcXvPutStill()
518 return XvdiPutStill(client, pDraw, pPort, pGC, stuff->vid_x, stuff->vid_y, in ProcXvPutStill()
527 XvPortPtr pPort; in ProcXvGetVideo() local
535 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvGetVideo()
537 if (!(pPort->pAdaptor->type & XvOutputMask) || in ProcXvGetVideo()
538 !(pPort->pAdaptor->type & XvVideoMask)) { in ProcXvGetVideo()
543 status = XvdiMatchPort(pPort, pDraw); in ProcXvGetVideo()
548 return XvdiGetVideo(client, pDraw, pPort, pGC, stuff->vid_x, stuff->vid_y, in ProcXvGetVideo()
557 XvPortPtr pPort; in ProcXvGetStill() local
565 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvGetStill()
567 if (!(pPort->pAdaptor->type & XvOutputMask) || in ProcXvGetStill()
568 !(pPort->pAdaptor->type & XvStillMask)) { in ProcXvGetStill()
573 status = XvdiMatchPort(pPort, pDraw); in ProcXvGetStill()
578 return XvdiGetStill(client, pDraw, pPort, pGC, stuff->vid_x, stuff->vid_y, in ProcXvGetStill()
603 XvPortPtr pPort; in ProcXvSelectPortNotify() local
608 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvSelectPortNotify()
610 return XvdiSelectPortNotify(client, pPort, stuff->onoff); in ProcXvSelectPortNotify()
617 XvPortPtr pPort; in ProcXvGrabPort() local
623 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvGrabPort()
625 status = XvdiGrabPort(client, pPort, stuff->time, &result); in ProcXvGrabPort()
645 XvPortPtr pPort; in ProcXvUngrabPort() local
650 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvUngrabPort()
652 return XvdiUngrabPort(client, pPort, stuff->time); in ProcXvUngrabPort()
660 XvPortPtr pPort; in ProcXvStopVideo() local
665 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvStopVideo()
671 return XvdiStopVideo(client, pPort, pDraw); in ProcXvStopVideo()
678 XvPortPtr pPort; in ProcXvSetPortAttribute() local
683 VALIDATE_XV_PORT(stuff->port, pPort, DixSetAttrAccess); in ProcXvSetPortAttribute()
691 XvdiSetPortAttribute(client, pPort, stuff->attribute, stuff->value); in ProcXvSetPortAttribute()
706 XvPortPtr pPort; in ProcXvGetPortAttribute() local
712 VALIDATE_XV_PORT(stuff->port, pPort, DixGetAttrAccess); in ProcXvGetPortAttribute()
719 status = XvdiGetPortAttribute(client, pPort, stuff->attribute, &value); in ProcXvGetPortAttribute()
741 XvPortPtr pPort; in ProcXvQueryBestSize() local
747 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvQueryBestSize()
749 (*pPort->pAdaptor->ddQueryBestSize) (pPort, stuff->motion, in ProcXvQueryBestSize()
771 XvPortPtr pPort; in ProcXvQueryPortAttributes() local
779 VALIDATE_XV_PORT(stuff->port, pPort, DixGetAttrAccess); in ProcXvQueryPortAttributes()
784 .num_attributes = pPort->pAdaptor->nAttributes, in ProcXvQueryPortAttributes()
788 for (i = 0, pAtt = pPort->pAdaptor->pAttributes; in ProcXvQueryPortAttributes()
789 i < pPort->pAdaptor->nAttributes; i++, pAtt++) { in ProcXvQueryPortAttributes()
793 rep.length = (pPort->pAdaptor->nAttributes * sz_xvAttributeInfo) in ProcXvQueryPortAttributes()
799 for (i = 0, pAtt = pPort->pAdaptor->pAttributes; in ProcXvQueryPortAttributes()
800 i < pPort->pAdaptor->nAttributes; i++, pAtt++) { in ProcXvQueryPortAttributes()
819 XvPortPtr pPort; in ProcXvPutImage() local
829 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvPutImage()
831 if (!(pPort->pAdaptor->type & XvImageMask) || in ProcXvPutImage()
832 !(pPort->pAdaptor->type & XvInputMask)) { in ProcXvPutImage()
837 status = XvdiMatchPort(pPort, pDraw); in ProcXvPutImage()
842 for (i = 0; i < pPort->pAdaptor->nImages; i++) { in ProcXvPutImage()
843 if (pPort->pAdaptor->pImages[i].id == stuff->id) { in ProcXvPutImage()
844 pImage = &(pPort->pAdaptor->pImages[i]); in ProcXvPutImage()
854 size = (*pPort->pAdaptor->ddQueryImageAttributes) (pPort, pImage, &width, in ProcXvPutImage()
865 return XvdiPutImage(client, pDraw, pPort, pGC, stuff->src_x, stuff->src_y, in ProcXvPutImage()
879 XvPortPtr pPort; in ProcXvShmPutImage() local
889 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvShmPutImage()
891 if (!(pPort->pAdaptor->type & XvImageMask) || in ProcXvShmPutImage()
892 !(pPort->pAdaptor->type & XvInputMask)) { in ProcXvShmPutImage()
897 status = XvdiMatchPort(pPort, pDraw); in ProcXvShmPutImage()
902 for (i = 0; i < pPort->pAdaptor->nImages; i++) { in ProcXvShmPutImage()
903 if (pPort->pAdaptor->pImages[i].id == stuff->id) { in ProcXvShmPutImage()
904 pImage = &(pPort->pAdaptor->pImages[i]); in ProcXvShmPutImage()
919 size_needed = (*pPort->pAdaptor->ddQueryImageAttributes) (pPort, pImage, in ProcXvShmPutImage()
928 status = XvdiPutImage(client, pDraw, pPort, pGC, stuff->src_x, stuff->src_y, in ProcXvShmPutImage()
967 XvPortPtr pPort; in ProcXvQueryImageAttributes() local
976 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvQueryImageAttributes()
978 for (i = 0; i < pPort->pAdaptor->nImages; i++) { in ProcXvQueryImageAttributes()
979 if (pPort->pAdaptor->pImages[i].id == stuff->id) { in ProcXvQueryImageAttributes()
980 pImage = &(pPort->pAdaptor->pImages[i]); in ProcXvQueryImageAttributes()
987 pImage = XvMCFindXvImage(pPort, stuff->id); in ProcXvQueryImageAttributes()
1002 size = (*pPort->pAdaptor->ddQueryImageAttributes) (pPort, pImage, in ProcXvQueryImageAttributes()
1029 XvPortPtr pPort; in ProcXvListImageFormats() local
1039 VALIDATE_XV_PORT(stuff->port, pPort, DixReadAccess); in ProcXvListImageFormats()
1044 .num_formats = pPort->pAdaptor->nImages, in ProcXvListImageFormats()
1046 bytes_to_int32(pPort->pAdaptor->nImages * sz_xvImageFormatInfo) in ProcXvListImageFormats()
1051 pImage = pPort->pAdaptor->pImages; in ProcXvListImageFormats()
1053 for (i = 0; i < pPort->pAdaptor->nImages; i++, pImage++) { in ProcXvListImageFormats()