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

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

?? ftoutln.c

?? a very goog book
?? C
?? 第 1 頁 / 共 2 頁
字號:
/***************************************************************************//*                                                                         *//*  ftoutln.c                                                              *//*                                                                         *//*    FreeType outline management (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.                                        *//*                                                                         *//***************************************************************************/  /*************************************************************************/  /*                                                                       */  /* All functions are declared in freetype.h.                             */  /*                                                                       */  /*************************************************************************/#include <ft2build.h>#include FT_OUTLINE_H#include FT_INTERNAL_OBJECTS_H  /*************************************************************************/  /*                                                                       */  /* The macro FT_COMPONENT is used in trace mode.  It is an implicit      */  /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log  */  /* messages during execution.                                            */  /*                                                                       */#undef  FT_COMPONENT#define FT_COMPONENT  trace_outline  static  const FT_Outline  null_outline = { 0, 0, 0, 0, 0, 0 };  /* documentation is in ftoutln.h */  FT_EXPORT_DEF( FT_Error )  FT_Outline_Decompose( FT_Outline*              outline,                        const FT_Outline_Funcs*  func_interface,                        void*                    user )  {#undef SCALED#define SCALED( x )  ( ( (x) << shift ) - delta )    FT_Vector   v_last;    FT_Vector   v_control;    FT_Vector   v_start;    FT_Vector*  point;    FT_Vector*  limit;    char*       tags;    FT_Error    error;    FT_Int   n;         /* index of contour in outline     */    FT_UInt  first;     /* index of first point in contour */    FT_Int   tag;       /* current point's state           */    FT_Int   shift;    FT_Pos   delta;    if ( !outline || !func_interface )      return FT_Err_Invalid_Argument;    shift = func_interface->shift;    delta = func_interface->delta;    first = 0;    for ( n = 0; n < outline->n_contours; n++ )    {      FT_Int  last;  /* index of last point in contour */      last  = outline->contours[n];      limit = outline->points + last;      v_start = outline->points[first];      v_last  = outline->points[last];      v_start.x = SCALED( v_start.x ); v_start.y = SCALED( v_start.y );      v_last.x  = SCALED( v_last.x );  v_last.y  = SCALED( v_last.y );      v_control = v_start;      point = outline->points + first;      tags  = outline->tags  + first;      tag   = FT_CURVE_TAG( tags[0] );      /* A contour cannot start with a cubic control point! */      if ( tag == FT_Curve_Tag_Cubic )        goto Invalid_Outline;      /* check first point to determine origin */      if ( tag == FT_Curve_Tag_Conic )      {        /* first point is conic control.  Yes, this happens. */        if ( FT_CURVE_TAG( outline->tags[last] ) == FT_Curve_Tag_On )        {          /* start at last point if it is on the curve */          v_start = v_last;          limit--;        }        else        {          /* if both first and last points are conic,         */          /* start at their middle and record its position    */          /* for closure                                      */          v_start.x = ( v_start.x + v_last.x ) / 2;          v_start.y = ( v_start.y + v_last.y ) / 2;          v_last = v_start;        }        point--;        tags--;      }      error = func_interface->move_to( &v_start, user );      if ( error )        goto Exit;      while ( point < limit )      {        point++;        tags++;        tag = FT_CURVE_TAG( tags[0] );        switch ( tag )        {        case FT_Curve_Tag_On:  /* emit a single line_to */          {            FT_Vector  vec;            vec.x = SCALED( point->x );            vec.y = SCALED( point->y );            error = func_interface->line_to( &vec, user );            if ( error )              goto Exit;            continue;          }        case FT_Curve_Tag_Conic:  /* consume conic arcs */          v_control.x = SCALED( point->x );          v_control.y = SCALED( point->y );        Do_Conic:          if ( point < limit )          {            FT_Vector  vec;            FT_Vector  v_middle;            point++;            tags++;            tag = FT_CURVE_TAG( tags[0] );            vec.x = SCALED( point->x );            vec.y = SCALED( point->y );            if ( tag == FT_Curve_Tag_On )            {              error = func_interface->conic_to( &v_control, &vec, user );              if ( error )                goto Exit;              continue;            }            if ( tag != FT_Curve_Tag_Conic )              goto Invalid_Outline;            v_middle.x = ( v_control.x + vec.x ) / 2;            v_middle.y = ( v_control.y + vec.y ) / 2;            error = func_interface->conic_to( &v_control, &v_middle, user );            if ( error )              goto Exit;            v_control = vec;            goto Do_Conic;          }          error = func_interface->conic_to( &v_control, &v_start, user );          goto Close;        default:  /* FT_Curve_Tag_Cubic */          {            FT_Vector  vec1, vec2;            if ( point + 1 > limit                             ||                 FT_CURVE_TAG( tags[1] ) != FT_Curve_Tag_Cubic )              goto Invalid_Outline;            point += 2;            tags  += 2;            vec1.x = SCALED( point[-2].x ); vec1.y = SCALED( point[-2].y );            vec2.x = SCALED( point[-1].x ); vec2.y = SCALED( point[-1].y );            if ( point <= limit )            {              FT_Vector  vec;              vec.x = SCALED( point->x );              vec.y = SCALED( point->y );              error = func_interface->cubic_to( &vec1, &vec2, &vec, user );              if ( error )                goto Exit;              continue;            }            error = func_interface->cubic_to( &vec1, &vec2, &v_start, user );            goto Close;          }        }      }      /* close the contour with a line segment */      error = func_interface->line_to( &v_start, user );    Close:      if ( error )        goto Exit;      first = last + 1;    }    return 0;  Exit:    return error;  Invalid_Outline:    return FT_Err_Invalid_Outline;  }  FT_EXPORT_DEF( FT_Error )  FT_Outline_New_Internal( FT_Memory    memory,                           FT_UInt      numPoints,                           FT_Int       numContours,                           FT_Outline  *anoutline )  {    FT_Error  error;    if ( !anoutline || !memory )      return FT_Err_Invalid_Argument;    *anoutline = null_outline;    if ( FT_NEW_ARRAY( anoutline->points,   numPoints * 2L ) ||         FT_NEW_ARRAY( anoutline->tags,     numPoints      ) ||         FT_NEW_ARRAY( anoutline->contours, numContours    ) )      goto Fail;    anoutline->n_points    = (FT_UShort)numPoints;    anoutline->n_contours  = (FT_Short)numContours;    anoutline->flags      |= ft_outline_owner;    return FT_Err_Ok;  Fail:    anoutline->flags |= ft_outline_owner;    FT_Outline_Done_Internal( memory, anoutline );    return error;  }  /* documentation is in ftoutln.h */  FT_EXPORT_DEF( FT_Error )  FT_Outline_New( FT_Library   library,                  FT_UInt      numPoints,                  FT_Int       numContours,                  FT_Outline  *anoutline )  {    if ( !library )      return FT_Err_Invalid_Library_Handle;    return FT_Outline_New_Internal( library->memory, numPoints,                                    numContours, anoutline );  }  /* documentation is in ftoutln.h */  FT_EXPORT_DEF( FT_Error )  FT_Outline_Check( FT_Outline*  outline )  {    if ( outline )    {      FT_Int  n_points   = outline->n_points;      FT_Int  n_contours = outline->n_contours;      FT_Int  end0, end;      FT_Int  n;      /* empty glyph? */      if ( n_points == 0 && n_contours == 0 )        return 0;      /* check point and contour counts */      if ( n_points <= 0 || n_contours <= 0 )        goto Bad;      end0 = end = -1;      for ( n = 0; n < n_contours; n++ )      {        end = outline->contours[n];        /* note that we don't accept empty contours */        if ( end <= end0 || end >= n_points )          goto Bad;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一二三在| 国产精品天美传媒沈樵| 亚洲18女电影在线观看| 欧美日韩一区二区三区免费看| 亚洲一区二区三区国产| 欧美日本韩国一区二区三区视频| 性做久久久久久| 精品国产91洋老外米糕| 国产精品99久久久久久有的能看| 国产精品区一区二区三区| 91原创在线视频| 亚洲国产精品一区二区www| 欧美一卡2卡三卡4卡5免费| 激情综合网av| 国产精品久久久久久亚洲毛片 | 欧美一区二区三区色| 另类小说欧美激情| 中文字幕日本乱码精品影院| 91福利社在线观看| 久久99国产精品久久99果冻传媒| 国产精品亲子伦对白| 欧美视频完全免费看| 国产一区不卡视频| 一区二区三区中文免费| 亚洲精品在线三区| 色综合久久天天综合网| 日本欧美一区二区在线观看| 中文字幕精品一区二区三区精品| 在线视频欧美区| 国产精品亚洲专一区二区三区 | 国产精品综合网| 一区二区在线电影| 欧美zozo另类异族| 色94色欧美sute亚洲线路一ni | 99精品黄色片免费大全| 丝袜诱惑制服诱惑色一区在线观看 | 国模大尺度一区二区三区| 亚洲色欲色欲www| 日韩免费高清电影| 日本韩国精品在线| 国产aⅴ精品一区二区三区色成熟| 亚洲午夜羞羞片| 亚洲欧洲色图综合| 欧美电视剧免费观看| 91福利在线看| 岛国精品在线观看| 精品午夜一区二区三区在线观看| 亚洲视频一区二区在线观看| 精品国产一区a| 91精品国产欧美一区二区18| 99久久国产综合精品女不卡| 久久91精品国产91久久小草| 亚洲一区二区三区免费视频| 国产精品久久久久久久久免费相片 | 精品少妇一区二区三区视频免付费 | 9人人澡人人爽人人精品| 蜜桃久久久久久久| 视频精品一区二区| 亚洲综合色区另类av| 欧美高清在线视频| 久久久精品人体av艺术| 日韩精品自拍偷拍| 欧美一区二区播放| 91麻豆精品国产自产在线观看一区| 99v久久综合狠狠综合久久| 国产精品一区二区久久不卡| 韩国v欧美v日本v亚洲v| 美腿丝袜亚洲色图| 免费av成人在线| 日韩精品成人一区二区三区| 亚洲一区二区三区四区在线观看 | 美女视频黄a大片欧美| 天堂午夜影视日韩欧美一区二区| 一区二区免费在线| 亚洲精品一二三区| 亚洲乱码日产精品bd| 亚洲美腿欧美偷拍| 一二三区精品视频| 亚洲3atv精品一区二区三区| 午夜激情一区二区| 日欧美一区二区| 男女视频一区二区| 国产原创一区二区| 国产不卡高清在线观看视频| 成人亚洲一区二区一| 成人激情综合网站| 色香色香欲天天天影视综合网| 色爱区综合激月婷婷| 欧美老肥妇做.爰bbww| 91精品一区二区三区久久久久久| 日韩三级在线观看| 久久免费视频色| 中文字幕一区在线观看视频| 亚洲区小说区图片区qvod| 一区二区三区日韩欧美精品| 亚洲国产视频一区| 青草国产精品久久久久久| 国产精品正在播放| 94-欧美-setu| 6080国产精品一区二区| 久久日韩精品一区二区五区| 国产精品午夜春色av| 亚洲女与黑人做爰| 美女免费视频一区| 国产成人在线色| 色伊人久久综合中文字幕| 日韩欧美一级在线播放| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 欧美日韩亚洲另类| 欧美xxxxx牲另类人与| 国产精品久久三| 污片在线观看一区二区| 国产成人免费在线观看| 91麻豆福利精品推荐| 日韩欧美综合一区| 国产精品高清亚洲| 美女视频黄免费的久久| 99免费精品视频| 精品欧美一区二区三区精品久久| 中文字幕日韩精品一区| 麻豆精品视频在线观看| 91在线国内视频| 2020国产精品自拍| 亚洲综合男人的天堂| 国产酒店精品激情| 777xxx欧美| 国产精品久久久久久久久晋中 | 蜜桃91丨九色丨蝌蚪91桃色| 波多野结衣中文字幕一区| 91精品午夜视频| 自拍偷拍亚洲综合| 激情综合五月天| 欧美一区二区视频在线观看| ...av二区三区久久精品| 蜜桃av一区二区| 欧美日韩国产高清一区二区三区| 国产精品欧美综合在线| 免费高清不卡av| 欧美私人免费视频| 亚洲欧洲另类国产综合| 狠狠色丁香久久婷婷综| 欧美日本在线播放| 亚洲免费av高清| www.日韩精品| 久久精品一区二区三区四区| 免费在线观看一区| 欧美日韩一区二区三区四区五区 | 日韩手机在线导航| 天天色天天爱天天射综合| 色婷婷综合在线| 国产精品理论在线观看| 国产综合成人久久大片91| 69精品人人人人| 午夜精品一区二区三区电影天堂| 色综合久久综合| 亚洲欧洲另类国产综合| 成人国产一区二区三区精品| 国产日韩精品视频一区| 国产一区二区三区在线观看免费| 欧美一区二区三区喷汁尤物| 亚洲成人激情自拍| 欧美久久久久中文字幕| 日本中文在线一区| 欧美一区二区在线免费播放| 天天射综合影视| 日韩一区二区三区免费看| 日韩在线一二三区| 91麻豆精品国产91久久久使用方法 | 91精品国产91热久久久做人人| 亚洲一区二区三区三| 欧美色图12p| 视频一区欧美精品| 日韩精品一区在线| 黑人巨大精品欧美一区| 久久久久99精品一区| 成人妖精视频yjsp地址| 一区精品在线播放| 欧美天天综合网| 免费成人深夜小野草| 亚洲精品一区二区三区99| 久久99国产精品久久| 国产视频不卡一区| 色先锋资源久久综合| 午夜久久久久久| 欧美精品一区二区三区蜜臀| 国产成人精品亚洲日本在线桃色| 国产精品国产三级国产aⅴ原创| 99精品一区二区三区| 亚洲制服丝袜av| 精品国产一区二区三区忘忧草| 国产高清在线精品| 一区二区三区四区在线| 欧美精品久久99| 国产99久久久国产精品潘金 | 亚洲欧洲av在线| 欧美三级韩国三级日本三斤| 六月丁香综合在线视频| 国产午夜亚洲精品羞羞网站| 在线观看网站黄不卡| 久久99精品国产麻豆不卡|