亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产乱码精品一区二区三区av| 色呦呦网站一区| 亚洲乱码中文字幕| 国产精品久久久一区麻豆最新章节| 欧美一级二级在线观看| 69堂精品视频| 欧美一区二区三区在线视频| 欧美蜜桃一区二区三区| 欧美精品日韩一本| 91精品婷婷国产综合久久竹菊| 欧美日韩www| 欧美大片一区二区| 欧美精品一区二区三区高清aⅴ| 精品999在线播放| 久久久亚洲午夜电影| 欧美激情一区二区三区在线| 亚洲不卡一区二区三区| 日韩福利电影在线| 另类的小说在线视频另类成人小视频在线| 视频一区在线视频| 蜜臀av在线播放一区二区三区| 亚洲国产三级在线| 精品影视av免费| 成人激情开心网| 91黄色免费看| 欧美成人a在线| 中文字幕色av一区二区三区| 亚洲精品国产无套在线观| 亚洲成精国产精品女| 久久不见久久见免费视频7| 成人av片在线观看| 欧美精品一卡二卡| 欧美激情艳妇裸体舞| 亚洲成人自拍偷拍| 国产激情一区二区三区桃花岛亚洲 | 激情成人午夜视频| 不卡影院免费观看| 欧美福利视频导航| 中文字幕视频一区| 久久精品免费观看| 91网站在线播放| 日韩欧美在线综合网| 亚洲你懂的在线视频| 老司机精品视频在线| 欧美亚洲禁片免费| 国产日韩欧美激情| 麻豆免费精品视频| 欧美亚洲国产一区二区三区va| 2020日本不卡一区二区视频| 亚洲综合免费观看高清在线观看| 久久成人免费网| 欧美日韩国产不卡| 亚洲另类在线视频| 风间由美一区二区三区在线观看| 3751色影院一区二区三区| 国产精品第13页| 国产在线视频一区二区三区| 欧美日韩一区精品| 亚洲免费毛片网站| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 国产精品日产欧美久久久久| 日韩不卡一区二区三区| 欧美天堂一区二区三区| 精品一区二区免费看| 67194成人在线观看| 亚洲中国最大av网站| av电影在线观看不卡| 国产欧美综合色| 国产成人综合网站| 精品日韩在线观看| 免费三级欧美电影| 在线成人高清不卡| 日韩一区精品字幕| 欧美日韩激情一区| 午夜精品久久久久久不卡8050| 91九色最新地址| 亚洲一区二区在线视频| 欧美羞羞免费网站| 污片在线观看一区二区| 欧美精三区欧美精三区| 亚洲成人免费视频| 91精品国模一区二区三区| 日本亚洲天堂网| 日韩丝袜美女视频| 麻豆精品国产传媒mv男同| 日韩欧美亚洲国产另类| 久久国产人妖系列| 国产欧美日韩视频在线观看| 波多野结衣中文一区| 国产一区二区三区四区五区入口 | 欧美日韩一区二区三区视频| 亚洲电影视频在线| 欧美肥妇bbw| 国产剧情一区二区三区| 中文字幕亚洲不卡| 欧美另类久久久品| 久久国产麻豆精品| 国产欧美日韩亚州综合| 色综合色狠狠天天综合色| 亚洲小说欧美激情另类| 日韩欧美中文一区| www.日本不卡| 日韩国产精品久久久| 久久久国际精品| 91国偷自产一区二区三区观看| 亚洲444eee在线观看| 国产亚洲精品7777| 日本二三区不卡| 久久精品噜噜噜成人88aⅴ| 欧美国产日韩一二三区| 欧美体内she精高潮| 国产综合久久久久久鬼色| 最新国产成人在线观看| 91精品国产综合久久国产大片| 日韩一区二区在线观看| 国产成人免费视| 亚洲成a人片在线观看中文| 国产调教视频一区| 欧美精品 日韩| 成人18视频日本| 久久精品999| 亚洲午夜久久久久久久久久久 | 国产精品网曝门| 欧美一卡二卡在线观看| av男人天堂一区| 国产麻豆精品一区二区| 五月激情六月综合| 成人欧美一区二区三区黑人麻豆| 日韩你懂的在线观看| 欧美性色综合网| 成年人国产精品| 国产一区二区电影| 日本不卡1234视频| 亚洲综合偷拍欧美一区色| 国产精品乱人伦| 久久先锋资源网| 欧美xxxxxxxx| 欧美一级高清大全免费观看| 欧美三级视频在线| 色香蕉久久蜜桃| 91蝌蚪porny九色| 成人免费毛片app| 国产成人综合视频| 韩国理伦片一区二区三区在线播放| 午夜影视日本亚洲欧洲精品| 国产精品电影一区二区| 国产精品国产三级国产专播品爱网| 精品国产一区二区三区不卡| 91精品国产综合久久小美女| 国产精品美女www爽爽爽| 久久久久久久精| 久久久久久免费| 国产午夜精品理论片a级大结局| 精品美女一区二区三区| 精品卡一卡二卡三卡四在线| 欧美一级淫片007| 日韩精品一区二区三区蜜臀| 欧美一级二级在线观看| 日韩欧美一二三四区| 精品国一区二区三区| 26uuu国产在线精品一区二区| 日韩美女一区二区三区四区| 日韩欧美一区中文| xf在线a精品一区二区视频网站| 日韩欧美www| 久久久亚洲精品一区二区三区 | 一区二区三区久久| 亚洲电影一级黄| 免费成人在线观看视频| 国产在线不卡一区| 成人理论电影网| 欧美在线色视频| 欧美日韩久久一区| 精品处破学生在线二十三| 国产午夜亚洲精品不卡| 国产日韩欧美综合在线| 中文字幕一区二区三区在线播放 | 激情综合色播五月| 国产精品18久久久久久久久| 99久久精品国产一区二区三区| 日本韩国一区二区三区视频| 欧美一区二区三区电影| 久久久久久久精| 一区二区三区蜜桃网| 免费日本视频一区| 成人av网址在线观看| 欧美亚洲综合久久| 久久综合成人精品亚洲另类欧美 | 欧美一区二区三区爱爱| 中文字幕免费观看一区| 亚洲国产综合在线| 精品一区二区久久久| 色综合夜色一区| 日韩欧美国产精品| 亚洲精品伦理在线| 国产精品99久久久久久似苏梦涵| 99re免费视频精品全部| 日韩免费高清av| 亚洲情趣在线观看| 国内不卡的二区三区中文字幕|