亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? hints.c

?? 一個Xpdf應(yīng)用的例子
?? C
?? 第 1 頁 / 共 3 頁
字號:
/*:h2 id=subpath.Navigation Through Edge Lists For continuity checking purposes, we need to navigate through edgelists by the "subpath" chains and answer questions about edges.  Thesubpath chain links together edges that were part of the same subpath(no intervening move segments) when the interior of the path wascalculated.  Here we use the term "edge" to mean every edge listthat was created in between changes of direction. The subpath chains are singly-linked circular chains.  For the convenienceof building them, they direction of the list (from edge to edge) is thereverse of the order in which they were built.  Within any single edge,the subpath chain goes from top-to-bottom.  (There might be a violationof this because of the way the user started the first chain; see:hdref refid=fixsubp..). :h3.ISTOP() and ISBOTTOM() - Flag Bits for Edge Lists at the Top andBottom of Their SubPaths*/ #define   ISTOP(flag)     ((flag)&0x20)#define   ISBOTTOM(flag)  ((flag)&0x10)/*:h3.ISLEFT() - Flag Bit for Left Edges*/ #define   ISLEFT(flag)    ((flag)&0x08) /*:h3.XofY() - Macro to Find X Value at Given Y This macro can only be used if it is known that the Y is within thegiven edgelist's ymin and ymax.*/ #define   XofY(edge, y)   edge->xvalues[y - edge->ymin] /*:h3.findXofY() - Like XofY(), Except not Restricted If the Y is out of bounds of the given edgelist, this macro willcall SearchXofY to search the edge's subpath chain for the correctY range.  If the Y value is off the edge, MINPEL is returned.*/#define   findXofY(edge, y)  ((y < edge->ymin || y >= edge->ymax) ? SearchXofY(edge, y) : XofY(edge, y)) /*:h4.SearchXofY() - Routine Called by FindXofY() for Difficult Cases The concept of this routine is to follow the subpath chain to find theedge just below (i.e., next in chain) or just above (i.e., immediatelybefore in chain.  It is assumed that the Y value is no more than oneoff of the edge's range; XofY() could be replace by FindXofY() tocall ourselves recursively if this were not true.*/ static pel SearchXofY(edge, y)       register struct edgelist *edge;  /* represents edge                   */       register pel y;       /* 'y' value to find edge for                   */{       register struct edgelist *e;  /* loop variable                        */        if (y < edge->ymin) {               if (ISTOP(edge->flag))                       return(MINPEL);               for (e = edge->subpath; e->subpath != edge; e = e->subpath) { ; }               if (e->ymax == edge->ymin)                        return(XofY(e, y));       }       else if (y >= edge->ymax) {               if (ISBOTTOM(edge->flag))                       return(MINPEL);               e = edge->subpath;               if (e->ymin == edge->ymax)                         return(XofY(e, y));       }       else               return(XofY(edge, y));        abort("bad subpath chain", 11);       /*NOTREACHED*/       /* To make ANSI-C-compiler happy: */       return(y);       }/*:h3.ISBREAK() Macro - Tests if an Edge List is at a "Break" The subpath chains are organized top to bottom.  When the bottom ofa given edge is reached, the subpath chain points to the top of thenext edge.  We call this a "break" in the chain.  The following macrois the simple test for the break condition:*/ #define  ISBREAK(top,bot) (top->ymax != bot->ymin)  /*:h3.ImpliedHorizontalLine() - Tests for Horizontal Connectivity This function returns true if two edges are connected horizontally.They are connected horizontally if they are consecutive in the subpath,and either we are at the bottom and the first edge is going down or weare at the top and the first edge is going up.*/ #define  BLACKABOVE  -1#define  BLACKBELOW  +1#define  NONE         0 static int ImpliedHorizontalLine(e1, e2, y)       register struct edgelist *e1,*e2;  /* two edges to check              */       register int y;       /* y where they might be connected              */{       register struct edgelist *e3,*e4;        if (ISDOWN(e1->flag) == ISDOWN(e2->flag))               return(NONE);  /* can't be consecutive unless different directions *//*Now we check for consecutiveness:  Can we get from 'e1' to 'e2' withonly one intervening break?  Can we get from 'e2' to 'e1' with only oneintervening break?  'e3' will be as far as we can get after 'e1'; 'e4'will be has far as we can get after 'e2':*/       for (e3 = e1; !ISBREAK(e3, e3->subpath); e3 = e3->subpath) { ; }       for (e3 = e3->subpath; e3 != e2; e3 = e3->subpath)               if (ISBREAK(e3, e3->subpath))                       break;        for (e4 = e2; !ISBREAK(e4, e4->subpath); e4 = e4->subpath) { ; }       for (e4 = e4->subpath; e4 != e1; e4 = e4->subpath)               if (ISBREAK(e4, e4->subpath))                       break;/*If the edges are mutually consecutive, we must have horizontal linesboth top and bottom:*/       if (e3 == e2 && e4 == e1)               return(TRUE);/*If the edges are not consecutive either way, no horizontal lines arepossible:*/       if (e3 != e2 && e4 != e1)               return(NONE);/*Now let's swap 'e1' and 'e2' if necessary to enforce the rule that 'e2'follows 'e1'.  Remember that subpath chains go in the opposite directionfrom the way the subpaths were built; this led to the simplest waydo build them.*/       if (e4 != e1) {               e2 = e1;               e1 = e3;  /* remember e3 == e2, this just swaps 'e1' and 'e2' */       }/*Now we have everything to return the answer:*/       if (ISTOP(e1->flag) && y == e1->ymin)               return(ISDOWN(e2->flag));       else if (ISBOTTOM(e1->flag) && y == e1->ymax)               return(!ISDOWN(e2->flag));       else               abort("ImpliedHorizontalLine:  why ask?", 12);       /*NOTREACHED*/       /* To make ANSI-C-compiler happy */       return(0);       } /*:h3 id=fixsubp.FixSubPaths() - Must be Called to Organize Subpath Chains The region-building code in Interior(), in particular splitedge(),maintains the rule that sub-paths are linked top-to-bottom exceptat breaks.  However, it is possible that there may be a "false break"because the user started the subpath in the middle of an edge (andwent in the "wrong" direction from there, up instead of down).  Thisroutine finds and fixes false breaks. Also, this routine sets the ISTOP and ISBOTTOM flags in the edge lists.*/ static void FixSubPaths(R)       register struct region *R;       /* anchor of region                */{       register struct edgelist *e;     /* fast loop variable                */       register struct edgelist *edge;  /* current edge in region            */       register struct edgelist *next;  /* next in subpath after 'edge'      */       register struct edgelist *break1;  /* first break after 'next'        */       register struct edgelist *break2=NULL; /* last break before 'edge'        */       register struct edgelist *prev;    /* previous edge for fixing links  */       int left = TRUE;        for (edge = R->anchor; edge != NULL; edge = edge->link) {                if (left)                       edge->flag |= ISLEFT(ON);               left = !left;                next = edge->subpath;                if (!ISBREAK(edge, next))                       continue;               if (edge->ymax < next->ymin)                       abort("disjoint subpath?", 13);/*'edge' now contains an edgelist at the bottom of an edge, and 'next'contains the next subsequent edgelist in the subpath, which must be atthe top.  We refer to this a "break" in the subpath.*/               next->flag |= ISTOP(ON);               edge->flag |= ISBOTTOM(ON);                if (ISDOWN(edge->flag) != ISDOWN(next->flag))                       continue;/*We are now in the unusual case; both edges are going in the samedirection so this must be a "false break" due to the way that the usercreated the path.  We'll have to fix it.*/               for (break1 = next; !ISBREAK(break1, break1->subpath); break1 = break1->subpath) { ; }                for (e = break1->subpath; e != edge; e = e->subpath)                       if (ISBREAK(e, e->subpath))                               break2 = e;/*Now we've set up 'break1' and 'break2'.  I've found the followingdiagram invaluable.  'break1' is the first break after 'next'.  'break2'is the LAST break before 'edge'.&drawing.         next        +------+     +---->+------+   +--->|    >-----+ |     |    >-----+   |    |      |   | |     |      |   |   | +-------------+ |  +-------------+   | |  |break1|     |  |  |      |   | +->|    >-------+  +->|    >-----+   |    |      |           |      |   |   |    |      |        +-------------+   |    +------+        |  |      |   | +----------------+ |  |      |   | |  +------+      | +->|    >-----+   | +->|    >-----+  |    |      |   |   |    |      |   |  | +-------------+   | +-------------+  | |  |      |   | |  |edge  |      | |  |break2|   | +->|    >-----+  | +->|    >-----+   |    |      |   |  |    |      |   |   |    |      |   |  |    |      |   |   |    |      |   |  |    |      |   |   |    +------+   |  |    +------+   |   |               |  |               |   +---------------+  +---------------+ &edrawing.We want to fix this situation by having 'edge' point to where 'break1'now points, and having 'break1' point to where 'break2' now points.Finally, 'break2' should point to 'next'.  Also, we observe that'break1' can't be a bottom, and is also not a top unless it is the sameas 'next':*/               edge->subpath = break1->subpath;                break1->subpath = break2->subpath;               if (ISBREAK(break1, break1->subpath))                       abort("unable to fix subpath break?", 14);                break2->subpath = next;                break1->flag &= ~ISBOTTOM(ON);               if (break1 != next)                       break1->flag &= ~ISTOP(ON);       }/*This region might contain "ambiguous" edges; edges exactly equal toedge->link.  Due to the random dynamics of where they get sorted intothe list, they can yield false crossings, where the edges appearto cross.  This confuses our continuity logic no end.  Since we canswap them without changing the region, we do.*/       for (edge = R->anchor, prev = NULL; VALIDEDGE(edge); prev = edge, edge = prev->link) {                if (! ISAMBIGUOUS(edge->flag))                       continue;                next = edge->subpath;                while (ISAMBIGUOUS(next->flag) && next != edge)                       next = next->subpath;/*We've finally found a non-ambiguous edge; we make sure it is left/rightcompatible with 'edge':*/               if ( (ISLEFT(edge->flag) == ISLEFT(next->flag) && ISDOWN(edge->flag) == ISDOWN(next->flag) )                    || (ISLEFT(edge->flag) != ISLEFT(next->flag) && ISDOWN(edge->flag) != ISDOWN(next->flag) ) )                       continue; /*Incompatible, we will swap 'edge' and the following edge in the list.You may think that there must be a next edge in this swath.  So did I.No!  If there is a totally ambiguous inner loop, for example, we couldget all the way to the outside without resolving ambiguity.*/               next = edge->link;  /* note new meaning of 'next' */               if (next == NULL || edge->ymin != next->ymin)                       continue;               if (prev == NULL)                       R->anchor = next;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品色呦呦| 欧美色图免费看| 久久婷婷国产综合精品青草| 黄网站免费久久| 久久久不卡网国产精品一区| 国产东北露脸精品视频| 亚洲男人的天堂av| 欧美一区中文字幕| 国产伦精品一区二区三区视频青涩 | 欧美激情一区在线| 成人三级伦理片| 一区二区在线观看视频| 欧美午夜一区二区三区| 午夜亚洲国产au精品一区二区| 欧美一区二区私人影院日本| 日本在线不卡一区| 亚洲日本欧美天堂| 精品国产电影一区二区| 奇米色777欧美一区二区| 中文字幕一区三区| 欧美一级二级在线观看| 91在线观看视频| 五月激情综合色| 亚洲另类中文字| 国产精品白丝在线| 久久婷婷成人综合色| 欧美日韩激情一区二区| 91美女片黄在线观看91美女| 国产美女在线精品| 亚洲尤物在线视频观看| 成人欧美一区二区三区小说 | 国产精品一品视频| 日韩在线一二三区| 国产精品家庭影院| 日韩一区二区麻豆国产| 色综合久久天天| 国产白丝网站精品污在线入口| 亚洲男人都懂的| 亚洲日本欧美天堂| 一区二区中文视频| 一区二区高清视频在线观看| 精品久久人人做人人爰| 91精品欧美综合在线观看最新| 99久久精品国产导航| 国产高清不卡一区二区| 国产1区2区3区精品美女| 日韩午夜av电影| 精品国产第一区二区三区观看体验 | 免费黄网站欧美| 99久久夜色精品国产网站| 成人av电影免费观看| 欧美视频第二页| 欧美在线观看一二区| 欧美精品一区二区三区一线天视频 | 国产一区二区三区免费看| 成人黄色777网| 91久久免费观看| 日韩免费高清电影| 日韩美女精品在线| 日韩不卡一二三区| 国产成人8x视频一区二区| av一区二区不卡| 日韩女优电影在线观看| 亚洲欧美另类小说| 国内精品自线一区二区三区视频| 成人黄色国产精品网站大全在线免费观看| 欧美日韩国产综合一区二区三区| 日韩欧美国产综合| 亚洲成人自拍一区| 色成人在线视频| 中日韩av电影| av亚洲精华国产精华| 久久综合狠狠综合久久激情| 中文字幕精品—区二区四季| 国内精品写真在线观看| 91精品国产丝袜白色高跟鞋| 亚洲日本欧美天堂| 日本精品一区二区三区高清| 国产精品成人午夜| 国产河南妇女毛片精品久久久| 欧美一区二区久久久| 日本一不卡视频| 欧美一区二区二区| 轻轻草成人在线| 精品三级在线看| 高清在线成人网| 国产精品成人网| 欧美日韩情趣电影| 日韩精品午夜视频| 欧美日韩免费观看一区二区三区| 麻豆精品久久久| 欧美精品一区在线观看| 99久久免费国产| 婷婷丁香激情综合| 国产毛片一区二区| 亚洲美女一区二区三区| 欧美无砖砖区免费| 成人永久免费视频| 五月综合激情日本mⅴ| 国产欧美一区二区三区在线看蜜臀 | 国产成人午夜精品5599| 男男gaygay亚洲| 一区二区三区免费| 中文字幕巨乱亚洲| 欧美变态凌虐bdsm| 欧美一区二区三区四区五区| 成人h动漫精品一区二区| 麻豆91精品视频| 午夜国产精品影院在线观看| 亚洲女人的天堂| 国产网站一区二区| 国产免费观看久久| 久久精品水蜜桃av综合天堂| 欧美日韩免费一区二区三区| 色哟哟在线观看一区二区三区| 成人午夜电影小说| 国产a区久久久| 成人av在线影院| 成人动漫中文字幕| 日本韩国精品在线| 欧美视频在线观看一区二区| 97se亚洲国产综合自在线观| 成人午夜视频免费看| 成人国产一区二区三区精品| 成人精品鲁一区一区二区| 国模少妇一区二区三区| 国产不卡视频一区二区三区| 岛国精品一区二区| 色综合天天综合网国产成人综合天| 91在线免费看| 91精品国产91久久综合桃花| 日韩欧美激情在线| 欧美韩国日本一区| 青娱乐精品视频| 成人av资源网站| 欧美mv和日韩mv的网站| 五月婷婷综合在线| 日韩一区二区免费电影| 午夜欧美一区二区三区在线播放| 在线观看一区不卡| 亚洲午夜久久久久中文字幕久| 99精品欧美一区二区蜜桃免费| 国产精品欧美一级免费| 91免费精品国自产拍在线不卡| 国产精品三级av在线播放| av电影天堂一区二区在线 | 久久精品二区亚洲w码| av在线不卡免费看| 日本一区二区三级电影在线观看 | 91精品国产色综合久久不卡电影| 久久久久久久久久久久久女国产乱 | 精品一区二区三区av| 67194成人在线观看| 一区二区三区蜜桃| 欧美在线视频你懂得| 亚洲精品国久久99热| 99精品视频一区二区| 国产精品亲子伦对白| 极品少妇xxxx精品少妇偷拍| 欧美老女人在线| 久久se精品一区精品二区| 精品国产网站在线观看| 国产一区二区视频在线| 中文字幕在线免费不卡| 日本aⅴ免费视频一区二区三区| 99re免费视频精品全部| 欧美一区二区三区在| 国产精品福利av| 国产麻豆午夜三级精品| 欧美日韩久久不卡| 亚洲免费观看高清完整版在线| 一区二区三区四区中文字幕| 国内欧美视频一区二区| 日韩你懂的在线播放| 国产成人99久久亚洲综合精品| 久久久久九九视频| 91视频观看视频| 日本亚洲免费观看| 国产精品久久久久久一区二区三区 | 亚洲精品老司机| 日韩欧美一级片| 色噜噜夜夜夜综合网| 日韩国产在线一| 中文字幕人成不卡一区| 欧美一二三四区在线| 色综合久久久久综合99| 美女一区二区视频| 亚洲免费观看高清完整版在线观看| 欧美一区二区三区思思人| 欧洲精品一区二区三区在线观看| 国产一区二区三区综合| 亚洲一区在线观看网站| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 91视频观看免费| 成人app网站| fc2成人免费人成在线观看播放| 国产一级精品在线| 紧缚奴在线一区二区三区| 精品一区二区三区日韩| 美女免费视频一区|