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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? spaces.c

?? 遠程桌面連接工具
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* $XConsortium: spaces.c,v 1.8 95/06/08 23:20:39 gildea Exp $ *//* Copyright International Business Machines, Corp. 1991 * All Rights Reserved * Copyright Lexmark International, Inc. 1991 * All Rights Reserved * * License to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of IBM or Lexmark not be * used in advertising or publicity pertaining to distribution of the * software without specific, written prior permission. * * IBM AND LEXMARK PROVIDE THIS SOFTWARE "AS IS", WITHOUT ANY WARRANTIES OF * ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO ANY * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, * AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.  THE ENTIRE RISK AS TO THE * QUALITY AND PERFORMANCE OF THE SOFTWARE, INCLUDING ANY DUTY TO SUPPORT * OR MAINTAIN, BELONGS TO THE LICENSEE.  SHOULD ANY PORTION OF THE * SOFTWARE PROVE DEFECTIVE, THE LICENSEE (NOT IBM OR LEXMARK) ASSUMES THE * ENTIRE COST OF ALL SERVICING, REPAIR AND CORRECTION.  IN NO EVENT SHALL * IBM OR LEXMARK BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF * THIS SOFTWARE. */ /* SPACES   CWEB         V0021 ********                             *//*:h1 id=spaces.SPACES Module - Handles Coordinate Spaces This module is responsible for handling the TYPE1IMAGER "XYspace" object. &author. Jeffrey B. Lotspiech (lotspiech@almaden.ibm.com)  :h3.Include Files*/#include "objects.h"#include "spaces.h"#include "paths.h"#include "pictures.h"#include "fonts.h"#include "arith.h"#include "trig.h"static void FindFfcn();static void FindIfcn();/*:h3.Entry Points Provided to the TYPE1IMAGER User*/ /*SHARED LINE(S) ORIGINATED HERE*/ /*:h3.Entry Points Provided to Other Modules*/ /*In addition, other modules call the SPACES module through functionvectors in the "XYspace" structure.  The entry points accessed thatway are "FConvert()", "IConvert()", and "ForceFloat()".*/ /*SHARED LINE(S) ORIGINATED HERE*//*:h3.Macros and Typedefs Provided to Other Modules :h4.Duplicating and Killing Spaces Destroying XYspaces is so simple we can do it with amacro:*/ /*SHARED LINE(S) ORIGINATED HERE*//*On the other hand, duplicating XYspaces is slightly more difficultbecause of the need to keep a unique ID in the space, see:hdref refid=dupspace.. :h4.Fixed Point Pel Representation We represent pel positions with fixed point numbers.  This does NOTmean integer, but truly means fixed point, with a certain numberof binary digits (FRACTBITS) representing the fractional part of thepel.*/ /*SHARED LINE(S) ORIGINATED HERE*//*:h2.Data Structures for Coordinate Spaces and Points*//*:h3 id=matrix.Matrices TYPE1IMAGER uses 2x2 transformation matrices.  We'll use C notation forsuch a matrix (M[2][2]), the first index being rows, the second columns.*/ /*:h3.The "doublematrix" Structure We frequently find it desirable to store both a matrix and itsinverse.  We store these in a "doublematrix" structure.*/ /*SHARED LINE(S) ORIGINATED HERE*/ /*:h3.The "XYspace" Structure The XYspace structure represents the XYspace object.*/ /*SHARED LINE(S) ORIGINATED HERE*/#define    RESERVED  10      /* 'n' IDs are reserved for invalid & immortal spaces *//**/#define    NEXTID    ((SpaceID < RESERVED) ? (SpaceID = RESERVED) : ++SpaceID) static unsigned int SpaceID = 1; struct XYspace *CopySpace(S)       register struct XYspace *S;{       S = (struct XYspace *)Allocate(sizeof(struct XYspace), S, 0);       S->ID = NEXTID;       return(S);}/*:h3.The "fractpoint" Structure A fractional point is just a "fractpel" x and y:*/ /*SHARED LINE(S) ORIGINATED HERE*/ /*:h3.Lazy Evaluation of Matrix Inverses Calculating the inverse of a matrix is somewhat involved, and we usuallydo not need them.  So, we flag whether or not the space has the inversealready calculated:*/ #define    HASINVERSE(flag)   ((flag)&0x80) /*The following macro forces a space to have an inverse:*/ #define    CoerceInverse(S)   if (!HASINVERSE((S)->flag)) { \    MatrixInvert((S)->tofract.normal, (S)->tofract.inverse); (S)->flag |= HASINVERSE(ON); }/*:h3.IDENTITY Space IDENTITY space is (logically) the space corresponding to the identitytransformation matrix.  However, since all our transformation matriceshave a common FRACTFLOAT scale factor to convert to 'fractpel's, thatis actually what we store in 'tofract' matrix of IDENTITY:*/ static struct XYspace identity = { SPACETYPE, ISPERMANENT(ON) + ISIMMORTAL(ON)                        + HASINVERSE(ON), 2, /* added 3-26-91 PNM */                        NULL, NULL,                        NULL, NULL, NULL, NULL,                        INVALIDID + 1, 0,                        FRACTFLOAT, 0.0, 0.0, FRACTFLOAT,                        1.0/FRACTFLOAT, 0.0, 0.0, 1.0/FRACTFLOAT,                        0, 0, 0, 0 };struct XYspace *IDENTITY = &identity; /**/#define  MAXCONTEXTS   16 static struct doublematrix contexts[MAXCONTEXTS]; #ifdef notdefstatic int nextcontext = 1; /*SHARED LINE(S) ORIGINATED HERE*/#ifdef __STDC__#define   pointer          void *#else#define   pointer          char *#endif /*:h3.FindDeviceContext() - Find the Context Given a Device This routine, given a device, returns the index of the device'stransformation matrix in the context array.  If it cannot find it,it will allocate a new array entry and fill it out.*/ static int FindDeviceContext(device)       pointer device;       /* device token                                 */{       double M[2][2];       /* temporary matrix                             */       float Xres,Yres;      /* device  resolution                           */       int orient = -1;      /* device orientation                           */       int rc = -1;          /* return code for QueryDeviceState             */        if (rc != 0)          /* we only bother with this check once          */               abort("Context:  QueryDeviceState didn't work");        M[0][0] = M[1][0] = M[0][1] = M[1][1] = 0.0;        switch (orient) {           case 0:               M[0][0] = Xres;  M[1][1] = -Yres;               break;           case 1:               M[1][0] = Yres;  M[0][1] = Xres;               break;           case 2:               M[0][0] = -Xres;  M[1][1] = Yres;               break;           case 3:               M[1][0] = -Yres;  M[0][1] = -Xres;               break;           default:               abort("QueryDeviceState returned invalid orientation");       }       return(FindContext(M));} /*:h3.FindContext() - Find the Context Given a Matrix This routine, given a matrix, returns the index of that matrix matrix inthe context array.  If it cannot find it, it will allocate a new arrayentry and fill it out.*/ int FindContext(M)       double M[2][2];       /* array to search for                          */{       register int i;       /* loop variable for search                     */       for (i=0; i < nextcontext; i++)               if (M[0][0] == contexts[i].normal[0][0] && M[1][0] == contexts[i].normal[1][0]                   && M[0][1] == contexts[i].normal[0][1] && M[1][1] == contexts[i].normal[1][1])                       break;        if (i >= nextcontext) {               if (i >= MAXCONTEXTS)                       abort("Context:  out of them");               LONGCOPY(contexts[i].normal, M, sizeof(contexts[i].normal));               MatrixInvert(M, contexts[i].inverse);               nextcontext++;       }        return(i);} /*:h3.Context() - Create a Coordinate Space for a Device This user operator is implemented by first finding the device contextarray index, then transforming IDENTITY space to create an appropriatecooridnate space.*/ struct XYspace *Context(device, units)       pointer device;       /* device token                                 */       double units;         /* multiples of one inch                        */{       double M[2][2];       /* device transformation matrix                 */       register int n;       /* will hold device context number              */       register struct XYspace *S;  /* XYspace constructed                   */        IfTrace2((MustTraceCalls),"Context(%x, %f)\n", device, &units);        ARGCHECK((device == NULL), "Context of NULLDEVICE not allowed",                    NULL, IDENTITY, (0), struct XYspace *);       ARGCHECK((units == 0.0), "Context: bad units", NULL, IDENTITY, (0), struct XYspace *);        n = FindDeviceContext(device);        LONGCOPY(M, contexts[n].normal, sizeof(M));        M[0][0] *= units;       M[0][1] *= units;       M[1][0] *= units;       M[1][1] *= units;        S = (struct XYspace *)Xform(IDENTITY, M);        S->context = n;       return(S);}#endif /*:h3.ConsiderContext() - Adjust a Matrix to Take Out Device Transform Remember, we have :f/x times U times D/ and :f/M/ and and we want :f/xtimes U times M times D/.  An easy way to do this is to calculate:f/D sup <-1> times M times D/, because::formula.x times U times D times D sup <-1> times M times D = x times U times M times D:formula.So this subroutine, given an :f/M/and an object, finds the :f/D/ for thatobject and modifies :f/M/ so it is :f/D sup <-1> times M times D/.*/ static void ConsiderContext(obj, M)       register struct xobject *obj;  /* object to be transformed            */       register double M[2][2];    /* matrix (may be changed)                */{       register int context; /* index in contexts array                      */        if (obj == NULL) return;        if (ISPATHTYPE(obj->type)) {               struct segment *path = (struct segment *) obj;                context = path->context;       }       else if (obj->type == SPACETYPE) {               struct XYspace *S = (struct XYspace *) obj;                context = S->context;       }       else if (obj->type == PICTURETYPE) {       }       else               context = NULLCONTEXT; 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
香港成人在线视频| 人人狠狠综合久久亚洲| 欧美理论电影在线| 国产精品一区二区无线| 洋洋成人永久网站入口| 久久综合久色欧美综合狠狠| 欧美午夜精品久久久久久孕妇| 国产一区二区不卡| 偷拍一区二区三区四区| 亚洲天堂久久久久久久| 日韩写真欧美这视频| 色综合中文字幕| 国产伦精品一区二区三区免费迷| 亚洲国产精品自拍| 国产精品久久久久久久久图文区 | 日韩在线观看一区二区| 国产欧美日韩中文久久| 欧美不卡在线视频| 精品视频全国免费看| av一二三不卡影片| 国产福利视频一区二区三区| 青青草伊人久久| 亚洲国产精品久久人人爱蜜臀 | 青青草视频一区| 一级精品视频在线观看宜春院| 久久精品免视看| 欧美电视剧在线观看完整版| 欧美一区二区在线不卡| 欧洲精品中文字幕| 99久久国产免费看| 99精品黄色片免费大全| 不卡电影免费在线播放一区| 国产黄色成人av| 国产精品综合久久| 国产一区二区三区四区在线观看| 麻豆成人久久精品二区三区红| 天天综合色天天综合| 亚洲午夜激情av| 亚洲成国产人片在线观看| 一区二区三区四区乱视频| 亚洲欧美偷拍另类a∨色屁股| 综合久久久久久久| 自拍偷在线精品自拍偷无码专区| 国产精品蜜臀av| 国产精品污www在线观看| 中文字幕免费不卡| 国产精品国产三级国产普通话99| 欧美极品aⅴ影院| 国产精品久久久久久久久久久免费看| 国产欧美一区二区精品婷婷| 国产精品色婷婷| **性色生活片久久毛片| 亚洲嫩草精品久久| 亚洲一区二区av在线| 天堂va蜜桃一区二区三区漫画版 | 亚洲一区二区视频| 亚洲一区自拍偷拍| 日本vs亚洲vs韩国一区三区二区| 免费的国产精品| 国产精品一二三四| 91在线观看地址| 欧美日韩一区二区在线观看 | 国产精品毛片大码女人| ...av二区三区久久精品| 亚洲国产成人porn| 老汉av免费一区二区三区| 成人午夜看片网址| 欧美专区日韩专区| 日韩美女一区二区三区| 中文字幕高清不卡| 亚洲自拍偷拍欧美| 看电视剧不卡顿的网站| 国产精品系列在线观看| 99久久婷婷国产综合精品电影| 日本韩国视频一区二区| 欧美一级二级三级蜜桃| 中文字幕欧美三区| 性久久久久久久久久久久| 黄网站免费久久| 色狠狠桃花综合| 日韩丝袜情趣美女图片| 综合亚洲深深色噜噜狠狠网站| 亚洲高清在线视频| 国产成a人无v码亚洲福利| 欧美性videosxxxxx| 久久久av毛片精品| 一个色在线综合| 国产成人亚洲综合a∨婷婷图片| 在线视频你懂得一区二区三区| 欧美成人艳星乳罩| 一区二区三区久久久| 久久99国产精品成人| 色94色欧美sute亚洲线路一久| 精品乱人伦小说| 亚洲自拍另类综合| 成人涩涩免费视频| 日韩一级完整毛片| 一区二区三区在线高清| 成人综合日日夜夜| 欧美一个色资源| 亚洲午夜免费福利视频| 成人sese在线| 久久欧美一区二区| 日韩电影在线一区| 91麻豆免费视频| 国产亲近乱来精品视频| 老鸭窝一区二区久久精品| 欧美在线观看一二区| 国产欧美日韩精品a在线观看| 麻豆成人在线观看| 在线不卡一区二区| 亚洲精品乱码久久久久久久久 | 午夜久久久久久| 日本久久电影网| 日韩毛片在线免费观看| 国产寡妇亲子伦一区二区| 欧美一区二区三区视频免费| 亚洲尤物在线视频观看| 波多野结衣中文字幕一区| 久久久久久久网| 久久成人18免费观看| 欧美一区二区三区四区视频| 亚洲成a人片在线不卡一二三区| 色先锋aa成人| 亚洲人一二三区| 成人动漫一区二区在线| 国产精品系列在线| 成人99免费视频| 国产精品久久久久三级| 99久久综合色| 亚洲欧洲国产日韩| 91亚洲精品久久久蜜桃网站 | caoporn国产精品| 国产精品久久久久永久免费观看| 国产一区二区0| 国产日产欧美一区| 国产v综合v亚洲欧| 国产亚洲一二三区| 国产99久久久国产精品| 国产清纯美女被跳蛋高潮一区二区久久w | 裸体一区二区三区| 日韩亚洲欧美在线观看| 久久精品国产免费看久久精品| 欧美一区二区观看视频| 男男gaygay亚洲| 精品日韩欧美在线| 国产一区二区电影| 日本一区二区三区四区在线视频| 国产91在线看| 亚洲欧美色图小说| 欧美三电影在线| 看片网站欧美日韩| 国产午夜久久久久| 成人av电影免费观看| 一区二区在线电影| 欧美日韩免费观看一区二区三区| 午夜久久久久久| 精品国精品国产| 国产suv一区二区三区88区| 中文字幕一区二区三区四区不卡 | 国产精品一区二区三区乱码| 国产精品网站导航| 在线免费亚洲电影| 青青草一区二区三区| 久久久久久久精| 色欧美日韩亚洲| 日韩国产欧美在线观看| 精品成人a区在线观看| 成人免费观看av| 亚洲成人av一区二区三区| 久久久精品一品道一区| 色视频欧美一区二区三区| 另类小说欧美激情| 亚洲欧美偷拍卡通变态| 欧美v亚洲v综合ⅴ国产v| 9i在线看片成人免费| 日韩—二三区免费观看av| 国产欧美一区二区精品久导航| 欧美无砖砖区免费| 国产精品一区三区| 亚洲成人先锋电影| 国产欧美日韩不卡| 欧美一区二区三区影视| 不卡影院免费观看| 免费成人在线观看| 一区二区三区国产精华| 久久中文字幕电影| 欧美日韩和欧美的一区二区| 丰满白嫩尤物一区二区| 日本欧美一区二区三区| 综合在线观看色| 久久综合色鬼综合色| 欧美浪妇xxxx高跟鞋交| 成人h动漫精品一区二区| 久久成人久久鬼色| 亚洲综合区在线| 一区二区中文视频| 精品国产一区二区国模嫣然| 欧美午夜精品一区二区三区| 懂色av一区二区夜夜嗨|