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

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

?? ftbbox.c

?? a very goog book
?? C
?? 第 1 頁 / 共 2 頁
字號(hào):
/***************************************************************************//*                                                                         *//*  ftbbox.c                                                               *//*                                                                         *//*    FreeType bbox computation (body).                                    *//*                                                                         *//*  Copyright 1996-2001, 2002 by                                           *//*  David Turner, Robert Wilhelm, and Werner Lemberg.                      *//*                                                                         *//*  This file is part of the FreeType project, and may only be used        *//*  modified and distributed under the terms of the FreeType project       *//*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     *//*  this file you indicate that you have read the license and              *//*  understand and accept it fully.                                        *//*                                                                         *//***************************************************************************/  /*************************************************************************/  /*                                                                       */  /* This component has a _single_ role: to compute exact outline bounding */  /* boxes.                                                                */  /*                                                                       */  /*************************************************************************/#include <ft2build.h>#include FT_BBOX_H#include FT_IMAGE_H#include FT_OUTLINE_H#include FT_INTERNAL_CALC_H  typedef struct  TBBox_Rec_  {    FT_Vector  last;    FT_BBox    bbox;  } TBBox_Rec;  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    BBox_Move_To                                                       */  /*                                                                       */  /* <Description>                                                         */  /*    This function is used as a `move_to' and `line_to' emitter during  */  /*    FT_Outline_Decompose().  It simply records the destination point   */  /*    in `user->last'; no further computations are necessary since we    */  /*    the cbox as the starting bbox which must be refined.               */  /*                                                                       */  /* <Input>                                                               */  /*    to   :: A pointer to the destination vector.                       */  /*                                                                       */  /* <InOut>                                                               */  /*    user :: A pointer to the current walk context.                     */  /*                                                                       */  /* <Return>                                                              */  /*    Always 0.  Needed for the interface only.                          */  /*                                                                       */  static int  BBox_Move_To( FT_Vector*  to,                TBBox_Rec*  user )  {    user->last = *to;    return 0;  }#define CHECK_X( p, bbox )  \          ( p->x < bbox.xMin || p->x > bbox.xMax )#define CHECK_Y( p, bbox )  \          ( p->y < bbox.yMin || p->y > bbox.yMax )  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    BBox_Conic_Check                                                   */  /*                                                                       */  /* <Description>                                                         */  /*    Finds the extrema of a 1-dimensional conic Bezier curve and update */  /*    a bounding range.  This version uses direct computation, as it     */  /*    doesn't need square roots.                                         */  /*                                                                       */  /* <Input>                                                               */  /*    y1  :: The start coordinate.                                       */  /*    y2  :: The coordinate of the control point.                        */  /*    y3  :: The end coordinate.                                         */  /*                                                                       */  /* <InOut>                                                               */  /*    min :: The address of the current minimum.                         */  /*    max :: The address of the current maximum.                         */  /*                                                                       */  static void  BBox_Conic_Check( FT_Pos   y1,                    FT_Pos   y2,                          FT_Pos   y3,                          FT_Pos*  min,                          FT_Pos*  max )  {    if ( y1 <= y3 )    {      if ( y2 == y1 )               /* Flat arc */        goto Suite;    }    else if ( y1 < y3 )    {      if ( y2 >= y1 && y2 <= y3 )   /* Ascending arc */        goto Suite;    }    else    {      if ( y2 >= y3 && y2 <= y1 )   /* Descending arc */      {        y2 = y1;        y1 = y3;        y3 = y2;        goto Suite;      }    }    y1 = y3 = y1 - FT_MulDiv( y2 - y1, y2 - y1, y1 - 2*y2 + y3 );  Suite:    if ( y1 < *min ) *min = y1;    if ( y3 > *max ) *max = y3;  }  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    BBox_Conic_To                                                      */  /*                                                                       */  /* <Description>                                                         */  /*    This function is used as a `conic_to' emitter during               */  /*    FT_Raster_Decompose().  It checks a conic Bezier curve with the    */  /*    current bounding box, and computes its extrema if necessary to     */  /*    update it.                                                         */  /*                                                                       */  /* <Input>                                                               */  /*    control :: A pointer to a control point.                           */  /*    to      :: A pointer to the destination vector.                    */  /*                                                                       */  /* <InOut>                                                               */  /*    user    :: The address of the current walk context.                */  /*                                                                       */  /* <Return>                                                              */  /*    Always 0.  Needed for the interface only.                          */  /*                                                                       */  /* <Note>                                                                */  /*    In the case of a non-monotonous arc, we compute directly the       */  /*    extremum coordinates, as it is sufficiently fast.                  */  /*                                                                       */  static int  BBox_Conic_To( FT_Vector*  control,                 FT_Vector*  to,                 TBBox_Rec*  user )  {    /* we don't need to check `to' since it is always an `on' point, thus */    /* within the bbox                                                    */    if ( CHECK_X( control, user->bbox ) )      BBox_Conic_Check( user->last.x,                        control->x,                        to->x,                        &user->bbox.xMin,                        &user->bbox.xMax );    if ( CHECK_Y( control, user->bbox ) )      BBox_Conic_Check( user->last.y,                        control->y,                        to->y,                        &user->bbox.yMin,                        &user->bbox.yMax );    user->last = *to;    return 0;  }  /*************************************************************************/  /*                                                                       */  /* <Function>                                                            */  /*    BBox_Cubic_Check                                                   */  /*                                                                       */  /* <Description>                                                         */  /*    Finds the extrema of a 1-dimensional cubic Bezier curve and        */  /*    updates a bounding range.  This version uses splitting because we  */  /*    don't want to use square roots and extra accuracies.               */  /*                                                                       */  /* <Input>                                                               */  /*    p1  :: The start coordinate.                                       */  /*    p2  :: The coordinate of the first control point.                  */  /*    p3  :: The coordinate of the second control point.                 */  /*    p4  :: The end coordinate.                                         */  /*                                                                       */  /* <InOut>                                                               */  /*    min :: The address of the current minimum.                         */  /*    max :: The address of the current maximum.                         */  /*                                                                       */#if 0  static void  BBox_Cubic_Check( FT_Pos   p1,                    FT_Pos   p2,                    FT_Pos   p3,                    FT_Pos   p4,                    FT_Pos*  min,                    FT_Pos*  max )  {    FT_Pos  stack[32*3 + 1], *arc;    arc = stack;    arc[0] = p1;    arc[1] = p2;    arc[2] = p3;    arc[3] = p4;    do    {      FT_Pos  y1 = arc[0];      FT_Pos  y2 = arc[1];      FT_Pos  y3 = arc[2];      FT_Pos  y4 = arc[3];      if ( y1 == y4 )      {        if ( y1 == y2 && y1 == y3 )                         /* Flat */          goto Test;      }      else if ( y1 < y4 )      {        if ( y2 >= y1 && y2 <= y4 && y3 >= y1 && y3 <= y4 ) /* Ascending */          goto Test;      }      else      {        if ( y2 >= y4 && y2 <= y1 && y3 >= y4 && y3 <= y1 ) /* Descending */        {          y2 = y1;          y1 = y4;          y4 = y2;          goto Test;        }      }      /* Unknown direction -- split the arc in two */      arc[6] = y4;      arc[1] = y1 = ( y1 + y2 ) / 2;      arc[5] = y4 = ( y4 + y3 ) / 2;      y2 = ( y2 + y3 ) / 2;      arc[2] = y1 = ( y1 + y2 ) / 2;      arc[4] = y4 = ( y4 + y2 ) / 2;      arc[3] = ( y1 + y4 ) / 2;      arc += 3;      goto Suite;   Test:      if ( y1 < *min ) *min = y1;      if ( y4 > *max ) *max = y4;      arc -= 3;    Suite:      ;    } while ( arc >= stack );  }#else  static void  test_cubic_extrema( FT_Pos    y1,                      FT_Pos    y2,                      FT_Pos    y3,                      FT_Pos    y4,                      FT_Fixed  u,                      FT_Pos*   min,                      FT_Pos*   max )  { /* FT_Pos    a = y4 - 3*y3 + 3*y2 - y1; */    FT_Pos    b = y3 - 2*y2 + y1;    FT_Pos    c = y2 - y1;    FT_Pos    d = y1;    FT_Pos    y;    FT_Fixed  uu;    FT_UNUSED ( y4 );    /* The polynom is                       */    /*                                      */    /*   a*x^3 + 3b*x^2 + 3c*x + d      .   */    /*                                      */    /* However, we also have                */    /*                                      */    /*   dP/dx(u) = 0       ,               */    /*                                      */    /* which implies that                   */    /*                                      */    /*   P(u) = b*u^2 + 2c*u + d            */    if ( u > 0 && u < 0x10000L )    {      uu = FT_MulFix( u, u );      y  = d + FT_MulFix( c, 2*u ) + FT_MulFix( b, uu );      if ( y < *min ) *min = y;      if ( y > *max ) *max = y;    }  }  static void  BBox_Cubic_Check( FT_Pos   y1,                    FT_Pos   y2,                    FT_Pos   y3,                    FT_Pos   y4,                    FT_Pos*  min,

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜精品久久久久久免费视| 国产一区二区h| 日本不卡的三区四区五区| 精品亚洲国产成人av制服丝袜 | 欧美三级视频在线观看| 欧美一级片在线观看| 91亚洲精品一区二区乱码| voyeur盗摄精品| www.日韩精品| 日本韩国欧美一区| 欧美日韩综合一区| 欧美一级黄色片| 精品国产一区二区三区不卡 | 最新热久久免费视频| 最新热久久免费视频| 一区二区三区国产| 日本三级亚洲精品| 国产在线精品一区在线观看麻豆| 国产精品一区二区三区网站| 国产91精品久久久久久久网曝门| 99视频国产精品| 欧美中文一区二区三区| 欧美挠脚心视频网站| 欧美xfplay| 亚洲欧洲无码一区二区三区| 亚洲国产日日夜夜| 久久国产三级精品| 成人久久久精品乱码一区二区三区| 99热在这里有精品免费| 欧美日韩亚洲综合在线 | 久久亚洲一区二区三区四区| 欧美国产日韩精品免费观看| 亚洲欧美日韩小说| 日本成人在线不卡视频| 国产精品一二一区| 91女人视频在线观看| 欧美影视一区在线| 精品1区2区在线观看| 亚洲高清免费一级二级三级| av在线综合网| 国产亚洲精品bt天堂精选| 免费观看成人av| 欧美日韩亚洲综合在线| 中文字幕一区二区视频| 黄页视频在线91| 777久久久精品| 亚洲国产人成综合网站| 色综合久久久网| 国产精品天美传媒| 国产成人精品www牛牛影视| 日韩—二三区免费观看av| 欧美羞羞免费网站| 亚洲视频一区在线| 本田岬高潮一区二区三区| www国产精品av| 国内欧美视频一区二区| 日韩一区二区三区在线| 天天影视涩香欲综合网| 欧美在线综合视频| 亚洲精品中文在线观看| 看片的网站亚洲| 国产成人午夜99999| 91精品国产欧美日韩| 亚洲欧美日韩人成在线播放| 国产一区二区毛片| 这里只有精品99re| 一区二区在线观看不卡| 欧美三区在线观看| 亚洲男人的天堂网| 色菇凉天天综合网| 亚洲女人****多毛耸耸8| 色偷偷一区二区三区| 欧美成人乱码一区二区三区| 亚洲视频在线观看一区| 处破女av一区二区| 欧美va亚洲va| 视频一区视频二区中文字幕| 99久久精品国产网站| 国产清纯白嫩初高生在线观看91 | 91浏览器在线视频| 中文字幕不卡的av| 国产一区福利在线| 日韩欧美在线不卡| 午夜精品久久久久久久蜜桃app| 99久久er热在这里只有精品66| 国产亚洲精品7777| 国产精品99久久不卡二区| 精品日韩一区二区三区 | 91豆麻精品91久久久久久| 中文字幕av一区二区三区高| 国产乱码精品一品二品| 欧美电影免费观看高清完整版在线观看 | 成人一区在线看| 久久久久久久久久久久久久久99| 久久国产精品一区二区| 91精品国产品国语在线不卡| 天天色 色综合| 欧美精品日韩一区| 日韩精品一级二级| 一本一道综合狠狠老| 最新热久久免费视频| 欧美日韩亚洲另类| 国产一区999| 亚洲精品欧美综合四区| 欧美一级二级在线观看| 国产真实乱偷精品视频免| 国产精品青草久久| 亚洲激情成人在线| 日韩欧美国产麻豆| 北条麻妃一区二区三区| 午夜激情一区二区三区| 国产欧美中文在线| 欧美中文字幕亚洲一区二区va在线| 午夜日韩在线电影| 中文字幕精品三区| 欧美裸体bbwbbwbbw| 国产成人午夜精品影院观看视频| 亚洲自拍偷拍欧美| 久久网这里都是精品| 色一情一乱一乱一91av| 狠狠狠色丁香婷婷综合激情 | 日韩欧美的一区| 国产精品一线二线三线精华| 国产精品视频线看| 在线免费一区三区| 男女性色大片免费观看一区二区| 久久这里只精品最新地址| 成人aa视频在线观看| 一区二区三区蜜桃| 91精品国产色综合久久久蜜香臀| 国产一区视频网站| 亚洲日本丝袜连裤袜办公室| 欧美精品一卡两卡| 国产一区二区三区免费观看| 中文字幕一区二区三区不卡| 欧美性做爰猛烈叫床潮| 国产制服丝袜一区| 亚洲男人的天堂在线aⅴ视频| 3d动漫精品啪啪| 成人性生交大片免费看中文| 亚洲另类中文字| 日韩欧美黄色影院| 92国产精品观看| 免费人成在线不卡| 国产精品沙发午睡系列990531| 在线精品观看国产| 国产精品一区二区三区网站| 亚洲乱码国产乱码精品精的特点| 欧美不卡一区二区三区四区| av电影在线不卡| 日本麻豆一区二区三区视频| 中文字幕精品—区二区四季| 欧美理论在线播放| 成人av电影在线播放| 青青草97国产精品免费观看无弹窗版| 国产精品伦一区| 日韩视频在线永久播放| 91福利资源站| 丁香六月久久综合狠狠色| 午夜视频久久久久久| 国产精品大尺度| 26uuu精品一区二区在线观看| 91国内精品野花午夜精品| 国产一区二三区| 日韩不卡一区二区三区| 亚洲激情第一区| 欧美极品xxx| 精品日韩在线一区| 欧美日本在线视频| 一本大道久久a久久综合| 国内偷窥港台综合视频在线播放| 午夜在线成人av| 欧美日韩你懂得| 99re66热这里只有精品3直播| 成人国产精品免费网站| 成人免费视频caoporn| 成人一级片在线观看| 丰满亚洲少妇av| 不卡视频一二三| 9i看片成人免费高清| 中文字幕中文字幕一区| 国产欧美日韩另类视频免费观看| 精品国产露脸精彩对白| 精品久久一区二区三区| 欧美电影免费观看高清完整版在线| 欧美一区二区三区免费观看视频| 91麻豆精品国产91久久久使用方法| 欧美精品国产精品| 欧美一区二区三区播放老司机| 欧美精品免费视频| 91精品国产免费| 精品国产精品一区二区夜夜嗨 | 国产99精品视频| 大尺度一区二区| 色一情一伦一子一伦一区| 欧美午夜寂寞影院| 亚洲国产人成综合网站| 亚洲国产一区视频| 亚洲成人精品影院| 亚洲国产精品久久久久秋霞影院|