亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲国产裸拍裸体视频在线观看乱了 | 国产精品乱子久久久久| 蜜桃视频一区二区| 日韩精品一区二区三区在线播放| 久色婷婷小香蕉久久| 337p日本欧洲亚洲大胆精品| 狠狠色丁香久久婷婷综合_中| 久久久www成人免费无遮挡大片| 国产成人精品免费| 亚洲成人动漫av| 久久久久久夜精品精品免费| 2020国产精品久久精品美国| 精品精品国产高清a毛片牛牛| 99精品在线免费| 蜜桃av一区二区三区电影| 日韩欧美一区二区免费| 欧美日韩精品欧美日韩精品一综合| 三级亚洲高清视频| 国产精品热久久久久夜色精品三区 | 91精品久久久久久久91蜜桃| 国产成人av一区| a4yy欧美一区二区三区| 老司机精品视频在线| 黄色精品一二区| 国产成人精品午夜视频免费| 91蜜桃在线观看| 国产91在线观看| 久久精品国产99国产| 丰满亚洲少妇av| 在线视频国内自拍亚洲视频| 美女脱光内衣内裤视频久久网站 | 国产曰批免费观看久久久| 亚洲一区二区影院| 国产网红主播福利一区二区| 欧美日韩成人在线一区| 欧美成人a视频| 欧美一级在线视频| 欧美在线影院一区二区| 久久一区二区视频| 亚洲一区二区影院| 成人免费视频视频在线观看免费| 国产在线国偷精品免费看| aaa欧美色吧激情视频| 欧美一区二区精美| 国产精品家庭影院| 中文字幕电影一区| 国产精品久久久久久久久果冻传媒| 一区二区三区电影在线播| 一区在线中文字幕| 亚洲欧洲日本在线| 精品亚洲国内自在自线福利| 经典三级一区二区| 在线精品视频免费播放| 亚洲国产成人在线| 久久99精品久久久久久| 欧美日韩亚洲不卡| 制服丝袜在线91| 中文字幕一区在线观看视频| 经典三级视频一区| 91精品国产91久久久久久最新毛片| 中国色在线观看另类| 麻豆成人久久精品二区三区红| 欧美中文字幕一区二区三区亚洲 | 欧美日韩一二三| 亚洲激情六月丁香| 秋霞午夜鲁丝一区二区老狼| 国内精品国产成人| 欧美日韩精品欧美日韩精品一 | 人人超碰91尤物精品国产| 在线观看日产精品| 亚洲精品国产视频| 成人免费看片app下载| 久久青草欧美一区二区三区| 毛片av一区二区| 91精品国产色综合久久不卡电影| 亚洲一区二区三区四区不卡| 一本大道久久a久久精二百 | 午夜精品成人在线视频| 看片的网站亚洲| 精品入口麻豆88视频| 久久99精品国产.久久久久久| 日韩视频免费观看高清完整版在线观看 | 天堂av在线一区| 制服丝袜成人动漫| 免费看欧美女人艹b| 日韩欧美综合一区| 激情综合一区二区三区| 久久久精品免费免费| 成人动漫av在线| 91精品久久久久久蜜臀| 视频一区二区三区在线| 日韩欧美国产成人一区二区| 日本视频免费一区| 国产成人av电影| 亚洲视频中文字幕| 精品一区二区三区在线视频| 久久综合久久综合久久综合| 国产99精品在线观看| 亚洲午夜三级在线| 日韩欧美精品三级| 成人性生交大片免费看在线播放 | 成人免费在线观看入口| 色94色欧美sute亚洲线路一ni| 精品1区2区在线观看| 成人福利视频网站| 亚洲一区影音先锋| 精品国产成人系列| 99国内精品久久| 毛片av中文字幕一区二区| 国产欧美1区2区3区| 久久爱另类一区二区小说| 久久婷婷久久一区二区三区| 97超碰欧美中文字幕| 日韩激情中文字幕| 国产视频亚洲色图| 欧美日韩一区二区三区免费看| 日韩在线播放一区二区| 国产亚洲婷婷免费| 欧美精品色一区二区三区| 亚洲综合激情网| 久久免费的精品国产v∧| 色视频成人在线观看免| 久久精品国产精品亚洲红杏| 亚洲综合色网站| 久久精品视频一区二区| 欧美日韩午夜影院| av毛片久久久久**hd| 久久精品国产99| 亚洲a一区二区| 亚洲视频在线观看三级| 精品久久久久久综合日本欧美| 日本黄色一区二区| 国产福利视频一区二区三区| 热久久免费视频| 亚洲综合免费观看高清在线观看 | 成人18视频日本| 另类小说欧美激情| 亚欧色一区w666天堂| 国产精品二区一区二区aⅴ污介绍| 91精品视频网| 欧美三级日韩三级国产三级| 色综合久久综合| 成人app下载| 北条麻妃一区二区三区| 国产一区二区三区在线看麻豆| 视频一区视频二区中文字幕| 一区二区欧美在线观看| 亚洲男人的天堂在线观看| 欧美亚男人的天堂| 精品一区二区综合| 日韩激情在线观看| 日韩精品1区2区3区| 午夜av电影一区| 天天亚洲美女在线视频| 五月综合激情网| 天堂va蜜桃一区二区三区 | 国产精品白丝jk白祙喷水网站| 久久久精品国产免费观看同学| 欧美大片日本大片免费观看| 欧美肥胖老妇做爰| 欧美一区二区久久久| 精品国产123| 久久理论电影网| 久久久精品天堂| 国产精品国产三级国产aⅴ中文| 久久精品亚洲精品国产欧美 | 国产麻豆精品一区二区| 国产在线不卡一区| 风间由美一区二区三区在线观看| 国产精品一区二区男女羞羞无遮挡| 国产在线播精品第三| 国产成人免费视频| 91蜜桃在线免费视频| 欧美美女直播网站| 欧美一级二级三级蜜桃| 26uuu亚洲综合色| 欧美激情一区二区在线| 一区二区三区不卡视频| 日韩精品电影在线观看| 国产综合久久久久久鬼色 | 精品久久久网站| 国产喷白浆一区二区三区| 亚洲视频在线一区观看| 五月激情综合色| 国产盗摄一区二区| 97成人超碰视| 精品国产一区二区亚洲人成毛片| 欧美精品一区二区三区四区| 国产精品三级av在线播放| 亚洲第一成年网| 国产成人精品亚洲午夜麻豆| 欧美日韩一区二区三区在线看| 欧美岛国在线观看| 一区二区三区四区不卡视频| 人人爽香蕉精品| 色噜噜狠狠一区二区三区果冻| 91麻豆精品国产91久久久久久久久 | 国产精品一区二区在线观看不卡| 91麻豆成人久久精品二区三区| 91精品国产入口在线|