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

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

?? bitmap.hh

?? pixil 最新的嵌入linux 應用程序集,別的地方很難下載
?? 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一区二区三区免费野_久草精品视频
中文子幕无线码一区tr| 亚洲精品高清在线观看| 精品一区二区免费| 国产日韩亚洲欧美综合| 成人涩涩免费视频| 天天射综合影视| 日韩欧美二区三区| 国产91精品在线观看| 樱花影视一区二区| xvideos.蜜桃一区二区| 99国产精品一区| 久久国产尿小便嘘嘘尿| 综合精品久久久| 欧美午夜一区二区三区免费大片| 老司机午夜精品| 亚洲精品自拍动漫在线| 久久久久国色av免费看影院| 欧美视频一区二| 欧美视频一区二区三区四区 | 欧美日韩免费观看一区三区| 精品无人区卡一卡二卡三乱码免费卡 | 中文在线资源观看网站视频免费不卡| 在线视频国产一区| av影院午夜一区| 风间由美一区二区av101| 国产成人小视频| 国产美女精品一区二区三区| 日本亚洲天堂网| 青青草97国产精品免费观看 | 精品人在线二区三区| 欧美午夜精品久久久久久超碰 | 男男成人高潮片免费网站| 亚洲成人av电影| 亚洲国产成人av| 日韩精品亚洲一区二区三区免费| 亚洲电影一区二区三区| 亚洲成人一区二区| 蜜桃精品视频在线| 国产精品99精品久久免费| 99久久久国产精品免费蜜臀| 欧美主播一区二区三区美女| 欧美日韩情趣电影| 26uuu亚洲| 美女精品自拍一二三四| 久久国产精品99精品国产| 高清国产一区二区三区| 91黄色免费看| 国产亚洲一二三区| 欧美aⅴ一区二区三区视频| 在线观看免费亚洲| 久久精品人人爽人人爽| 国产精品色哟哟| 中文字幕字幕中文在线中不卡视频| 国产呦精品一区二区三区网站| 宅男在线国产精品| 美日韩一区二区三区| 久久伊99综合婷婷久久伊| 国内成人免费视频| 国产精品久久久久久久久图文区| 粉嫩绯色av一区二区在线观看| 国产精品人成在线观看免费| kk眼镜猥琐国模调教系列一区二区| 亚洲欧洲日韩av| 欧美亚洲禁片免费| 国产一区二区剧情av在线| 亚洲国产高清在线观看视频| 91高清视频免费看| 韩国成人福利片在线播放| 亚洲国产精品激情在线观看 | 欧美在线制服丝袜| 看片网站欧美日韩| 玉米视频成人免费看| 欧美精品一区二区三区很污很色的 | 亚洲午夜在线视频| 亚洲精品在线三区| 欧美在线看片a免费观看| 丁香天五香天堂综合| 亚洲精品成人天堂一二三| 精品国产一区二区三区不卡| 色av成人天堂桃色av| 国产精品乡下勾搭老头1| 欧美国产精品专区| 欧美精品三级日韩久久| 美女国产一区二区三区| 亚洲青青青在线视频| 日韩三级免费观看| 欧美亚洲图片小说| 日韩精品免费视频人成| 亚洲欧洲美洲综合色网| 日韩一级二级三级| 欧美色图在线观看| 国产一二三精品| 亚洲aⅴ怡春院| 亚洲欧美一区二区不卡| 日韩美女一区二区三区| 99re8在线精品视频免费播放| 午夜久久久影院| 亚洲高清一区二区三区| 国产精品久久久久aaaa樱花| 欧美日韩精品一区二区三区蜜桃| 国产99久久久国产精品潘金| 国产一区三区三区| 国产毛片精品视频| 国产福利91精品一区| 国产乱子伦一区二区三区国色天香| 午夜精品福利一区二区蜜股av| 一区二区激情小说| 中文字幕日本不卡| 亚洲欧美日韩国产综合在线| 国产精品国产馆在线真实露脸 | 成人免费看的视频| 风间由美一区二区三区在线观看 | 日韩一区有码在线| 1区2区3区精品视频| 亚洲老妇xxxxxx| 奇米四色…亚洲| 粉嫩av一区二区三区| 在线观看91视频| 亚洲天堂av一区| 国产精品资源在线| 国产亚洲污的网站| 国产一区二区精品久久99| 欧美日韩mp4| 久久精品一区四区| 五月激情六月综合| 99久久99久久精品国产片果冻| 欧美日韩一区二区电影| 久久久久国产精品麻豆| 中文字幕在线不卡一区| 国内精品嫩模私拍在线| 欧美日本韩国一区二区三区视频| 国产无人区一区二区三区| 亚洲成人精品一区二区| 99re66热这里只有精品3直播| 日韩欧美国产午夜精品| 亚洲综合久久久久| 福利电影一区二区| 日韩女优制服丝袜电影| 视频一区二区三区入口| 亚洲成人免费看| 亚洲免费视频成人| 欧美性猛片xxxx免费看久爱| 亚洲.国产.中文慕字在线| 亚洲国产精品综合小说图片区| 成人aa视频在线观看| 亚洲另类中文字| 日本道精品一区二区三区| 亚洲综合在线五月| 日韩欧美中文字幕制服| 国产一区二区精品久久99| 国产精品伦一区二区三级视频| 91久久免费观看| 免费在线看成人av| 亚洲国产精品传媒在线观看| 久久精品免费看| 欧洲国产伦久久久久久久| 欧美一区二区三区免费| 国产高清无密码一区二区三区| 色综合久久六月婷婷中文字幕| 欧美日韩三级在线| 国产精品亲子乱子伦xxxx裸| 日韩av一级电影| 在线欧美日韩精品| 国产亚洲成年网址在线观看| 热久久免费视频| 99久久久精品免费观看国产蜜| 欧美日韩国产综合一区二区三区| 久久久久久影视| 国产一区二区三区电影在线观看| heyzo一本久久综合| 久久精品综合网| 韩日av一区二区| 日韩免费福利电影在线观看| 亚洲午夜激情网页| 欧美在线一区二区| 亚洲天堂2014| 99国产精品国产精品久久| 国产欧美日韩不卡| 国产一区二区三区四| 久久综合久久99| 国产乱码精品一区二区三区五月婷| 欧美日韩一卡二卡三卡| 99久久99久久精品免费观看| 久久亚洲欧美国产精品乐播| 国产精选一区二区三区| 欧美一区日本一区韩国一区| 国产一区二区日韩精品| 欧美一区二区三区免费大片 | 日韩理论片一区二区| 国产乱色国产精品免费视频| 久久久久88色偷偷免费| 成人少妇影院yyyy| 国产精品成人网| 777xxx欧美| 成人小视频在线观看| 一区二区三区在线视频观看| 成人v精品蜜桃久久一区| 黑人巨大精品欧美黑白配亚洲| 色综合久久久久网| 久久婷婷综合激情|