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

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

?? bitmap.hh

?? PIXIL is a small footprint operating environment, complete with PDA PIM applications, a browser and
?? HH
字號:
/********************************************************************************  libvideogfx/graphics/basic/bitmap.hh  purpose:    Abstract data type 'bitmap'.  notes:  to do:  author(s):   - Dirk Farin, farin@ti.uni-mannheim.de     University Mannheim, Dept. Circuitry and Simulation     B 6,26 EG, room 0.10 / D-68131 Mannheim / Germany  modifications:    19/May/2000 - Dirk Farin - adapted comments to doxygen    11/Jan/2000 - Dirk Farin - new method: SetSize()    05/Nov/1999 - Dirk Farin - adapted comments to DOC++    08/Jul/1999 - Dirk Farin - introduced ContentsNotImportant-hint    23/Jun/1999 - Dirk Farin - bitmap border    22/Jun/1999 - Dirk Farin - bitmap data is now shared    02/Jun/1999 - Dirk Farin - first implementation based on DVDview code ********************************************************************************    Copyright (C) 1999  Dirk Farin    This program is distributed under GNU Public License (GPL) as    outlined in the COPYING file that comes with the source distribution.    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This program is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    GNU General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA ********************************************************************************/#ifndef LIBVIDEOGFX_GRAPHICS_BASIC_BITMAP_HH#define LIBVIDEOGFX_GRAPHICS_BASIC_BITMAP_HH#include "libvideogfx/types.hh"/**   A two dimensional bitmap template class for arbitrary types.   Bitmap can easily be created given its size, optional alignment and surrounding border.   Access to the data is the same whether you want frame or field access.   This data type is implemented as a shared data object. That means   that assignment of bitmaps is very efficient.   You get access to the actual bitmap data by using a variant of the AskFrame() / AskField()   methods. These return a pointer array with pointers to the beginning of the lines of data.   The border area can be accessed with values that are below 0 or greater/equal bitmap width.   Use the *\_const version whenever possible as this improves performance when using bitmap sharing.   \image latex bitmapdimensions.eps width=7cm   Notes:   <UL>   <LI> Whenever you call the non-const versions of AskFrame() or AskField(),      all pointers you got back from preceding calls to these methods may      become illegal!      So if it is possible that you access const-pointers and non-const-pointers      to the same image at the same time (like in a color conversion routine)      always get the non-const-pointers first!   <LI> Resize(int width,int height,int halign=1,int valign=1,int border=0,bool exactalign=false)      is not really needed. It is better to create a new one and copy the envelope object.   <LI> Hint-methods do not affect the logical behavior of the object but can be     used to increase performance.   </UL>*/template <class Pel> class Bitmap{public:  Bitmap();   /// Create Bitmap object with no bitmap data attached.  Bitmap(const Bitmap&);  ~Bitmap();  void Create(int width,int height,int halign=1,int valign=1,int border=0,bool exactsize=false);  void CreateFromExistingMemory(Pel* data,int width,int height,int border=0,				int internalw=0,int internalh=0);  /** Change the alignment of the bitmap. If possible the old internal bitmap sizes are not modified      to be more time efficient. For example removing a border does nothing if \c exactsize is false. */  void SetAlignment(int halign,int valign,int border,bool exactsize=false);  /** Free bitmap. */  void Destroy();  /// Get write access to full bitmap data.  Pel*const* AskFrame();  /// Get read-only access to full bitmap data.  const Pel*const* AskFrame_const() const;  /** Get write access to a field of the bitmap. This means that consecutive elements of the pointer array      point to lines with a distance of 2. */  Pel*const* AskField(bool top);  /// Get read-only access to a field of the bitmap.  const Pel*const* AskField_const(bool top) const;  const Pel* operator[](int y) const { return AskFrame_const()[y]; }  /** Ask logical bitmap width.      Logical sizes do not include aligment and border sizes. */  int AskWidth()  const { assert(indirect); return indirect->d_width;  }  /** Ask logical bitmap height.      Logical sizes do not include aligment and border sizes. */  int AskHeight() const { assert(indirect); return indirect->d_height; }  /** Ask internal bitmap width.      Internal sizes include alignment and borders.      Internal sizes can be different from (be greater than) the values you expect them to be,      except you have created the bitmap without setting 'exactsize' to true. */  int AskInternalWidth()  const { assert(indirect); return indirect->d_internal_width;  }  /// Ask internal bitmap height. See AskInternalWidth() for more information.  int AskInternalHeight() const { assert(indirect); return indirect->d_internal_height; }  /// Ask border size.  int AskBorderWidth()    const { assert(indirect); return indirect->d_border; }  /** Resizes bitmap. Contents will not be destroyed. You cannot resize the bitmap to any size larger      than the current internal size excluding the borders. The new bitmap has the same alignment      as the old one. */  void SetSize(int w,int h);  /** Check if bitmap contains data. This can be useful when defining images that consist of a not fixed      set of bitmaps. You could test for example if the alpha-channel bitmap exists. */  bool IsEmpty() const { return indirect==NULL; }  /// Assignment operator. Not only the bitmap contents but also the alignment information will be copied.  const Bitmap<Pel>& operator=(const Bitmap<Pel>&);  /** Call this hint if you know that you do not need the image contents any more.      This could be the case when:      <UL>      <LI> You are about to destroy it soon (but give it as parameter to another function before).      <LI> The next time you write to the image, the contents will be completely overwritten.      </UL>  */  void Hint_ContentsIsNotUsedAnymore() { d_hint_contents_not_important=true; }  // DEBUG. Very ugly method only intended for debugging purpose.  int AskRefCntr() const { if (!indirect) return 0;  else return (d_hint_contents_not_important ? 100 : 0) + indirect->d_ref_cntr; }  void ShowParam() const;private:  /* IMPLEMENTATION:     Bitmap really is only an envelope class for BitmapData objects. As much as possible bitmap sharing     is used.  */  /* Make a private copy of the bitmap if it is shared with other Bitmap envelope objects.   */  void Decouple();    struct BitmapData  {    int   d_ref_cntr;  // envelope->letter access counter	     int   d_width,d_height;    int   d_internal_width, d_internal_height;    int   d_halign,d_valign;    int   d_border;    bool  d_directmemory; ///< Bitmap class is a wrapper for a fixed memory area (behave like a singleton).    Pel*  d_bitmapptr; // pointer to linear bitmap data.        /* These pointers point to arrays of pointers that point to the beginnings of bitmap lines       (behind the border). d_*[0] points to the topmost line including the border.       So the top left pixel of the bitmap is accessed as d_frameptr[d_border][0] */    Pel** d_frameptr;    Pel** d_top_field;    Pel** d_bottom_field;    /* Create new bitmap. You will get exactly the size you specified. */    void Create(int width,int height,int halign,int valign,int border);    /* Create a wrapper for a fixed memory area. */    void CreateDirectBitmap(Pel* start,int width,int height,			    int internal_width,int internal_height,int border);  private:    friend class Bitmap<Pel>;    static int AlignUp(int val,int alignment);  }* indirect;  bool  d_hint_contents_not_important; // TRUE if contents is not relevant using this Bitmap interface};/*! \fn void Bitmap<Pel>::Create(int width,int height,int halign=1,int valign=1,int border=0,bool exactsize=false)  \brief Create new bitmap.  \param width bitmap width  \param height bitmap height  \param halign horizontal alignment. \c width will be extended to be a multiple of this value   (\f$width\ \textrm{mod}\ halign\f$ will be 0).  \param valign vertical alignment. \c height will be extended to be a multiple of this value.   (\f$height\ \textrm{mod}\ valign\f$ will be 0).  \param border additional space that is added to all four sides after alignment has occurred.  \param exactsize force the bitmap to have the minimum size that fulfills all given parameters  Notes:  <UL>  <LI> Position [0][0] is the top left of the bitmap, left and top border pixels are       addressed using negative indices.  <LI> \c border should be an even number if you intend to use field access.  <LI> Set \c exactsize to \c false if you do not depend on the actual memory layout       as this allows for better memory reuseage.  <LI> You may call Create() without destroying the old contents with Destroy().  </UL>*/#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆国产自产在线观看| 成人av集中营| 亚洲国产成人tv| 3d成人动漫网站| 91精品国产一区二区三区蜜臀| 欧美日韩高清一区二区不卡| 欧美亚洲高清一区| 欧美色窝79yyyycom| 91精品国产美女浴室洗澡无遮挡| 91.麻豆视频| 欧美成人video| 久久精品网站免费观看| 国产精品人成在线观看免费| 国产精品久久久久四虎| 伊人婷婷欧美激情| 天堂一区二区在线免费观看| 免费观看日韩电影| 成人伦理片在线| 在线观看国产日韩| 日韩欧美一区中文| 国产精品无圣光一区二区| 亚洲四区在线观看| 天天综合网天天综合色| 国产美女在线精品| 在线免费观看不卡av| 91精品国产福利在线观看| 亚洲国产成人av网| 男人操女人的视频在线观看欧美| 国产精品伊人色| 欧美亚洲尤物久久| 久久夜色精品一区| 性做久久久久久| 国产精品亚洲一区二区三区在线| 91色在线porny| 精品区一区二区| 亚洲精品日产精品乱码不卡| 秋霞av亚洲一区二区三| aaa欧美大片| 日韩欧美你懂的| 亚洲男人天堂av网| 国产真实乱对白精彩久久| 99精品视频一区二区| 精品乱码亚洲一区二区不卡| 伊人婷婷欧美激情| 国产乱国产乱300精品| 欧美日韩夫妻久久| 国产精品白丝在线| 国产精品综合在线视频| 91精品国产福利在线观看| 亚洲视频1区2区| 成人午夜精品在线| 精品剧情v国产在线观看在线| 一区二区三区.www| 一本色道久久综合亚洲精品按摩| 精品国产a毛片| 日日夜夜精品视频天天综合网| 91亚洲男人天堂| 欧美激情综合网| 国产一区二区在线免费观看| 欧美一区二区三区精品| 亚洲一二三四在线观看| 色综合久久综合| 国产精品久久福利| 懂色av中文一区二区三区| 精品国免费一区二区三区| 日本女优在线视频一区二区| 精品视频一区二区三区免费| 伊人婷婷欧美激情| 色94色欧美sute亚洲线路二| 中日韩免费视频中文字幕| 国产91在线|亚洲| 国产清纯美女被跳蛋高潮一区二区久久w | 久久电影国产免费久久电影| 欧美日本一区二区三区| 亚洲国产毛片aaaaa无费看| 一本一本大道香蕉久在线精品| 亚洲人成网站影音先锋播放| 粉嫩av一区二区三区| 国产精品精品国产色婷婷| gogogo免费视频观看亚洲一| 国产精品的网站| 色综合久久久久久久久久久| 一区二区三区久久| 欧美日韩免费在线视频| 日韩中文字幕亚洲一区二区va在线| 欧美高清你懂得| 久久狠狠亚洲综合| 久久综合av免费| 99久久国产免费看| 国产精品盗摄一区二区三区| 色伊人久久综合中文字幕| 亚洲一区二区美女| 日韩精品一区二区三区在线| 国产麻豆精品一区二区| 自拍偷拍欧美精品| 欧美日韩国产高清一区二区| 久久av中文字幕片| 国产精品久久久久婷婷二区次| 日本精品视频一区二区三区| 蜜桃精品在线观看| 欧美极品另类videosde| 欧美午夜在线一二页| 九九视频精品免费| 亚洲欧美日韩国产成人精品影院| 欧美日韩日本视频| 国产精品1区2区| 亚洲国产一二三| 国产亚洲精品精华液| 欧美在线一区二区| 国产精品888| 亚洲成精国产精品女| 久久久噜噜噜久久人人看 | 精品日本一线二线三线不卡| 不卡视频一二三| 热久久免费视频| 亚洲免费大片在线观看| 精品福利在线导航| 欧美视频一区二区| 成人h动漫精品一区二| 喷白浆一区二区| 亚洲一二三四在线| 中文字幕免费一区| 日韩欧美另类在线| 欧美日韩午夜精品| 99综合电影在线视频| 精品一区二区久久| 亚洲高清视频中文字幕| 国产精品久99| 国产欧美日韩激情| 欧美xxx久久| 777午夜精品免费视频| 一本色道久久综合亚洲aⅴ蜜桃 | 在线观看国产精品网站| 成人做爰69片免费看网站| 蜜臀av性久久久久蜜臀aⅴ流畅| 亚洲视频小说图片| 国产精品午夜免费| 国产午夜精品在线观看| 日韩欧美中文一区| 91精品国产色综合久久| 欧美日韩在线一区二区| 91老师国产黑色丝袜在线| 亚洲伊人伊色伊影伊综合网| 国产99精品在线观看| 精品亚洲国内自在自线福利| 午夜精品福利久久久| 亚洲影视资源网| 亚洲伦在线观看| 欧美自拍偷拍午夜视频| 成人av网站大全| jlzzjlzz亚洲女人18| 99久久精品国产一区二区三区| 成人夜色视频网站在线观看| 国产v综合v亚洲欧| av亚洲精华国产精华精| www.色精品| 国产乱码精品一区二区三区av| 免费在线观看一区二区三区| 亚洲精品一区二区三区蜜桃下载| 国产精品嫩草99a| 另类小说视频一区二区| 99久久精品99国产精品| 欧美第一区第二区| 亚洲国产欧美日韩另类综合| 国产999精品久久| 欧美一级艳片视频免费观看| 亚洲美女免费视频| 国产成人午夜片在线观看高清观看 | 欧美性生活影院| 国产精品网站一区| 麻豆专区一区二区三区四区五区| 色悠久久久久综合欧美99| 精品对白一区国产伦| 午夜精品福利久久久| 91丨九色丨蝌蚪丨老版| 国产日韩亚洲欧美综合| 欧美在线观看视频一区二区| 久久久777精品电影网影网 | 亚洲一区电影777| 91亚洲资源网| 日韩一区中文字幕| 国产成人在线观看| 精品国产百合女同互慰| 蜜臀精品一区二区三区在线观看 | 免费视频最近日韩| 欧美美女激情18p| 一区二区欧美在线观看| 91浏览器打开| 亚洲男同1069视频| 91蝌蚪porny| 亚洲精品视频免费看| 91美女视频网站| 国产精品大尺度| 99久精品国产| 亚洲美女淫视频| 在线观看国产日韩| 亚洲成av人综合在线观看| 欧美性受xxxx黑人xyx性爽| 亚洲国产日韩综合久久精品| 91传媒视频在线播放|