Lines Matching defs:pCache
1416 XAACacheInfoPtr pCache,
1423 while((w << 1) <= pCache->w) {
1424 (*infoRec->SubsequentScreenToScreenCopy)(pScrn, pCache->x, pCache->y,
1425 pCache->x + w, pCache->y, w, h);
1428 if(w != pCache->w) {
1429 (*infoRec->SubsequentScreenToScreenCopy)(pScrn, pCache->x, pCache->y,
1430 pCache->x + w, pCache->y, pCache->w - w, h);
1431 w = pCache->w;
1434 while((h << 1) <= pCache->h) {
1435 (*infoRec->SubsequentScreenToScreenCopy)(pScrn, pCache->x, pCache->y,
1436 pCache->x, pCache->y + h, w, h);
1439 if(h != pCache->h) {
1440 (*infoRec->SubsequentScreenToScreenCopy)(pScrn, pCache->x, pCache->y,
1441 pCache->x, pCache->y + h, w, pCache->h - h);
1455 XAACacheInfoPtr pCache, cacheRoot = NULL;
1482 pCache = cacheRoot;
1485 for(i = 0; i < max; i++, pCache++) {
1486 if(pCache->serialNumber == pPix->drawable.serialNumber) {
1487 pCache->trans_color = -1;
1488 return pCache;
1492 pCache = &cacheRoot[(*current)++];
1495 pCache->serialNumber = pPix->drawable.serialNumber;
1496 pCache->trans_color = pCache->bg = pCache->fg = -1;
1497 pCache->orig_w = w; pCache->orig_h = h;
1499 pScrn, pCache->x, pCache->y, w, h, pPix->devPrivate.ptr,
1502 ((w != pCache->w) || (h != pCache->h)))
1503 XAATileCache(pScrn, pCache, w, h);
1505 return pCache;
1516 XAACacheInfoPtr pCache, cacheRoot = NULL;
1545 pCache = cacheRoot;
1548 for(i = 0; i < max; i++, pCache++) {
1549 if((pCache->serialNumber == pPix->drawable.serialNumber) &&
1550 (pCache->fg == -1) && (pCache->bg == -1)) {
1551 pCache->trans_color = -1;
1552 return pCache;
1556 pCache = &cacheRoot[(*current)++];
1559 pCache->serialNumber = pPix->drawable.serialNumber;
1560 pCache->trans_color = pCache->bg = pCache->fg = -1;
1561 pCache->orig_w = w; pCache->orig_h = h;
1568 pad = BitmapBytePad(pCache->w * bpp);
1570 dstPtr = data = (unsigned char*)malloc(pad * pCache->h);
1589 while((h<<1) <= pCache->h) {
1594 if(h < pCache->h)
1595 memcpy(data + (pad * h), data, pad * (pCache->h - h));
1598 pScrn, pCache->x, pCache->y, pCache->w, pCache->h, data,
1603 return pCache;
1614 XAACacheInfoPtr pCache, cacheRoot = NULL;
1641 pCache = cacheRoot;
1644 for(i = 0; i < max; i++, pCache++) {
1645 if((pCache->serialNumber == pPix->drawable.serialNumber) &&
1646 (pCache->fg == -1) && (pCache->bg == -1)) {
1647 pCache->trans_color = -1;
1648 return pCache;
1652 pCache = &cacheRoot[(*current)++];
1655 pCache->serialNumber = pPix->drawable.serialNumber;
1656 pCache->trans_color = pCache->bg = pCache->fg = -1;
1657 pCache->orig_w = w; pCache->orig_h = h;
1660 (*infoRec->WriteBitmapToCache)(pScrn, pCache->x, pCache->y,
1664 ((w != pCache->w) || (h != pCache->h)))
1665 XAATileCache(pScrn, pCache, w, h);
1667 return pCache;
1685 XAACacheInfoPtr pCache, cacheRoot = NULL;
1712 pCache = cacheRoot;
1715 for(i = 0; i < max; i++, pCache++) {
1716 if((pCache->serialNumber == pPix->drawable.serialNumber) &&
1717 (fg == pCache->fg) && (pCache->fg != pCache->bg)) {
1718 pCache->trans_color = pCache->bg;
1719 return pCache;
1723 for(i = 0; i < max; i++, pCache++) {
1724 if((pCache->serialNumber == pPix->drawable.serialNumber) &&
1725 (fg == pCache->fg) && (bg == pCache->bg)) {
1726 pCache->trans_color = -1;
1727 return pCache;
1731 pCache = &cacheRoot[(*current)++];
1734 pCache->serialNumber = pPix->drawable.serialNumber;
1735 pCache->fg = fg;
1737 pCache->trans_color = bg = fg ^ 1;
1739 pCache->trans_color = -1;
1740 pCache->bg = bg;
1742 pCache->orig_w = w; pCache->orig_h = h;
1743 (*infoRec->WriteBitmapToCache)(pScrn, pCache->x, pCache->y,
1747 ((w != pCache->w) || (h != pCache->h)))
1748 XAATileCache(pScrn, pCache, w, h);
1750 return pCache;
1761 XAACacheInfoPtr pCache = pCachePriv->InfoMono;
1764 for(i = 0; i < pCachePriv->NumMono; i++, pCache++) {
1765 if(pCache->serialNumber &&
1766 (pCache->pat0 == pat0) && (pCache->pat1 == pat1))
1767 return pCache;
1771 pCache = &pCachePriv->InfoMono[pCachePriv->CurrentMono++];
1775 pCache->serialNumber = 1; /* we don't care since we do lookups by pattern */
1776 pCache->pat0 = pat0;
1777 pCache->pat1 = pat1;
1779 (*infoRec->WriteMono8x8PatternToCache)(pScrn, pCache);
1781 return pCache;
1792 XAACacheInfoPtr pCache = pCachePriv->InfoColor;
1797 for(i = 0; i < pCachePriv->NumColor; i++, pCache++) {
1798 if(pCache->serialNumber == pPix->drawable.serialNumber) {
1799 pCache->trans_color = -1;
1800 return pCache;
1803 pCache = &pCachePriv->InfoColor[pCachePriv->CurrentColor++];
1807 pCache->serialNumber = pPix->drawable.serialNumber;
1808 pCache->trans_color = pCache->fg = pCache->bg = -1;
1818 for(i = 0; i < pCachePriv->NumColor; i++, pCache++) {
1819 if(pCache->serialNumber &&
1820 (pCache->pat0 == pat0) && (pCache->pat1 == pat1) &&
1821 (pCache->fg == fg) && (pCache->bg != fg)) {
1822 pCache->trans_color = pCache->bg;
1823 return pCache;
1827 for(i = 0; i < pCachePriv->NumColor; i++, pCache++) {
1828 if(pCache->serialNumber &&
1829 (pCache->pat0 == pat0) && (pCache->pat1 == pat1) &&
1830 (pCache->fg == fg) && (pCache->bg == bg)) {
1831 pCache->trans_color = -1;
1832 return pCache;
1836 pCache = &pCachePriv->InfoColor[pCachePriv->CurrentColor++];
1841 pCache->trans_color = bg = fg ^ 1;
1843 pCache->trans_color = -1;
1845 pCache->pat0 = pat0; pCache->pat1 = pat1;
1846 pCache->fg = fg; pCache->bg = bg;
1847 pCache->serialNumber = 1;
1850 (*infoRec->WriteColor8x8PatternToCache)(pScrn, pPix, pCache);
1852 return pCache;
1971 XAACacheInfoPtr pCache
1979 pCache->offsets = pCachePriv->MonoOffsets;
1981 pad = BitmapBytePad(pCache->w * pScrn->bitsPerPixel);
1983 data = (unsigned char*)malloc(pad * pCache->h);
1988 ptr[0] = pCache->pat0; ptr[1] = pCache->pat1;
1991 DDXPointPtr pPoint = pCache->offsets;
1995 patx = pCache->pat0; paty = pCache->pat1;
2004 (*infoRec->WritePixmapToCache)(pScrn, pCache->x, pCache->y,
2005 pCache->w, pCache->h, data, pad, pScrn->bitsPerPixel, pScrn->depth);
2014 XAACacheInfoPtr pCache
2023 pCache->offsets = pCachePriv->ColorOffsets;
2027 pad = BitmapBytePad(pCache->w);
2028 data = (unsigned char*)malloc(pad * pCache->h);
2034 ptr[0] = pCache->pat0; ptr[1] = pCache->pat1;
2039 ptr[0] = ptr[2] = pCache->pat0; ptr[1] = ptr[3] = pCache->pat1;
2041 patx = pCache->pat0; paty = pCache->pat1;
2050 (*infoRec->WriteBitmapToCache)(pScrn, pCache->x, pCache->y,
2051 pCache->w, pCache->h, data, pad, pCache->fg, pCache->bg);
2060 pad = BitmapBytePad(pCache->w * pScrn->bitsPerPixel);
2062 data = (unsigned char*)malloc(pad * pCache->h);
2098 (*infoRec->WritePixmapToCache)(pScrn, pCache->x, pCache->y,
2099 pCache->w, pCache->h, data, pad, pScrn->bitsPerPixel, pScrn->depth);