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

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

?? spaces.c

?? unix vnc 協議源碼. VNC是一款遠程控制工具軟件.
?? 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一区二区三区免费野_久草精品视频
亚洲欧美日韩国产另类专区| 国产精品中文字幕一区二区三区| 亚洲裸体在线观看| 欧美国产日本视频| 欧美激情在线观看视频免费| 久久精品一区二区三区四区| 欧美精品一区二区三区一线天视频 | 日韩精品一区二区三区中文不卡 | 3d动漫精品啪啪1区2区免费| 在线观看免费一区| 欧美日韩国产高清一区二区| 欧美三级电影一区| 日韩亚洲欧美一区二区三区| 欧美xxxx老人做受| 26uuu亚洲| 日本一区二区三级电影在线观看 | 天堂av在线一区| 五月激情综合婷婷| 男女男精品网站| 久久精品免费观看| 成人午夜精品一区二区三区| 99视频在线精品| 在线观看成人免费视频| 91精品国产一区二区三区蜜臀| 日韩一区二区精品葵司在线| 26uuu精品一区二区在线观看| 日本一区二区视频在线| 久久精品国产一区二区三区免费看| 亚洲免费观看高清完整版在线| 中文字幕乱码亚洲精品一区| 国产精品理论片| 中文乱码免费一区二区| 国产欧美日韩三区| 最新日韩在线视频| 亚洲色图19p| 亚洲综合视频网| 亚洲电影一区二区| 亚洲精选视频在线| 手机精品视频在线观看| 日本午夜一本久久久综合| 久久99精品国产麻豆婷婷洗澡| 三级成人在线视频| 国产一区二区三区免费| 国产成人午夜99999| www.欧美.com| 欧美美女一区二区在线观看| 欧美岛国在线观看| 国产精品美女视频| 亚洲国产另类av| 激情小说亚洲一区| a在线播放不卡| 精品成人在线观看| 欧美韩国日本不卡| 国产美女娇喘av呻吟久久| 欧美色图天堂网| 欧美日韩成人在线一区| 欧美中文字幕不卡| 亚洲精品在线电影| 亚洲精品水蜜桃| 一本大道久久a久久综合婷婷| 天堂在线一区二区| 亚洲免费视频成人| 精品中文av资源站在线观看| 97精品久久久午夜一区二区三区| 日韩精品一区二区三区中文不卡| 国产精品久久久久久久久免费丝袜| 丝袜美腿亚洲一区二区图片| 北条麻妃一区二区三区| 精品福利在线导航| 亚洲成人资源网| 一本大道久久a久久精二百| 久久综合国产精品| 国产亚洲一区字幕| 国产九九视频一区二区三区| 欧美日韩国产片| 亚洲国产欧美在线| 91美女视频网站| 欧美—级在线免费片| 美女精品自拍一二三四| 欧美美女bb生活片| 亚洲曰韩产成在线| 91国偷自产一区二区开放时间 | 亚洲一二三区不卡| 国产成人精品免费网站| 国产视频一区在线播放| 国产制服丝袜一区| wwww国产精品欧美| 久久成人18免费观看| 精品国产一二三区| 久久不见久久见免费视频1| 欧美三级韩国三级日本三斤| 亚洲精品综合在线| 欧美亚洲国产一区二区三区va | 亚洲成a人片在线观看中文| 国产成人精品午夜视频免费| 欧美日韩久久一区二区| 亚洲二区在线视频| 日韩你懂的电影在线观看| 暴力调教一区二区三区| 97久久超碰国产精品电影| 视频一区欧美日韩| 亚洲精选视频在线| 99精品1区2区| 亚洲欧美影音先锋| 男男视频亚洲欧美| 免费xxxx性欧美18vr| 国产精品污污网站在线观看| 日本一区二区三区四区| 日韩精品视频网站| 欧美日韩一区成人| 同产精品九九九| 2017欧美狠狠色| 欧美视频一区二区在线观看| 久久精品国产久精国产爱| 中文字幕视频一区| 日韩一区二区三| 99久久婷婷国产综合精品| 亚洲18影院在线观看| 亚洲精品在线免费观看视频| 91视频观看免费| 首页国产欧美久久| 亚洲免费在线播放| 欧美大片顶级少妇| 正在播放亚洲一区| 91视频免费看| 岛国精品在线播放| 美女在线观看视频一区二区| 国产精品福利av| 久久综合资源网| 欧美高清一级片在线| 91亚洲精品一区二区乱码| 国产伦精一区二区三区| 日韩精品一二三四| 一区二区日韩电影| 亚洲视频中文字幕| 国产精品毛片久久久久久久| 欧美成人艳星乳罩| 日韩一区二区精品葵司在线| 欧美三级一区二区| 欧美一级久久久| 国产精品私人影院| 精品国产污网站| 欧美日韩美少妇| 99re热这里只有精品免费视频| 欧美日韩一级黄| 午夜精品久久久久久久99水蜜桃| 91免费观看在线| 国产精品美女一区二区三区 | 久久精品国产免费看久久精品| 三级欧美在线一区| 久久成人久久爱| 日韩欧美国产三级| 国产精品毛片无遮挡高清| 日本一区二区三区四区| 国产精品久久精品日日| 中文字幕色av一区二区三区| 综合电影一区二区三区 | 欧美精品在线一区二区三区| 欧美精品自拍偷拍| 久久网站最新地址| 一区在线中文字幕| 亚洲国产另类av| 国产精品自产自拍| 91黄色小视频| 日韩欧美高清在线| 久久精品这里都是精品| 亚洲毛片av在线| 激情综合五月婷婷| 欧日韩精品视频| 欧美大片国产精品| 一区二区三区国产精品| 免费日韩伦理电影| 91在线码无精品| 精品久久久久久久久久久久久久久| 国产亚洲综合色| 亚洲二区在线观看| 色综合久久中文综合久久97| 欧美一区二区性放荡片| 亚洲三级在线免费| 国产一区二区三区美女| 欧美男人的天堂一二区| 国产视频一区二区在线观看| 日韩成人免费电影| 欧美性大战xxxxx久久久| 五月天精品一区二区三区| 欧美mv日韩mv| 婷婷中文字幕一区三区| 欧美午夜片在线看| 久久影音资源网| 国产精品久久久久久久久免费桃花| 亚洲自拍偷拍九九九| 欧美中文字幕一区二区三区| 国产在线精品一区二区三区不卡| 亚洲一区二区av电影| 国产午夜一区二区三区| 99re这里只有精品视频首页| 国产成人小视频| 国产亚洲综合色| xf在线a精品一区二区视频网站| 国产一区二区三区在线观看免费视频|