亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美性大战久久| 国产精品美女一区二区在线观看| 精品动漫一区二区三区在线观看| 一区精品在线播放| 激情av综合网| 欧美电影一区二区| 自拍偷自拍亚洲精品播放| 日日夜夜免费精品| 一本色道久久综合亚洲91| 久久久久久久综合色一本| 三级一区在线视频先锋| 99久久久久久| 欧美—级在线免费片| 蜜桃av一区二区三区| 欧美三级电影一区| 亚洲国产成人精品视频| 国产99久久久精品| 精品少妇一区二区三区免费观看| 亚洲午夜电影网| 色综合久久久久久久久| 亚洲人成电影网站色mp4| 丁香婷婷综合五月| 精品国产不卡一区二区三区| 日本不卡123| 欧美日韩激情一区| 欧美白人最猛性xxxxx69交| 午夜精品福利一区二区三区av| 成人av网站在线观看| 欧美经典一区二区| 国产mv日韩mv欧美| 国产欧美精品一区| thepron国产精品| 中文一区二区在线观看| 成人丝袜18视频在线观看| 国产三级一区二区三区| 欧美日韩在线播| 亚洲天堂网中文字| av福利精品导航| 久久久99久久精品欧美| 亚洲国产精品久久久久婷婷884| 99久久夜色精品国产网站| 国产精品久久久久久福利一牛影视 | 精品免费国产一区二区三区四区| 日韩av电影免费观看高清完整版 | 韩国中文字幕2020精品| 精品久久久久一区| 国产成人丝袜美腿| 1区2区3区国产精品| 色婷婷精品大在线视频| 亚洲1区2区3区4区| 精品捆绑美女sm三区| 丁香婷婷综合网| 亚洲成人午夜电影| 国产麻豆日韩欧美久久| 26uuu另类欧美| 国产98色在线|日韩| 亚洲精品国产无天堂网2021| 欧美日韩一区二区三区四区五区| 偷拍与自拍一区| www国产精品av| 色婷婷综合久久久| 日本欧美一区二区三区| 国产日韩欧美一区二区三区乱码 | 制服丝袜一区二区三区| 狠狠色狠狠色综合日日91app| 国产精品美女久久久久aⅴ国产馆| 色哟哟欧美精品| 美女在线一区二区| 亚洲欧洲色图综合| 日韩视频免费直播| 99re视频这里只有精品| 美女一区二区三区在线观看| 亚洲欧洲性图库| 久久综合久久99| 欧美揉bbbbb揉bbbbb| 国产福利精品导航| 日韩中文字幕不卡| 国产精品福利在线播放| 欧美一区二区播放| 91丨porny丨中文| 精品一区二区三区在线播放| 亚洲欧美日韩一区二区三区在线观看 | 久久蜜桃香蕉精品一区二区三区| 色狠狠桃花综合| 风间由美中文字幕在线看视频国产欧美| 亚洲已满18点击进入久久| 国产三级欧美三级日产三级99 | 久久国内精品自在自线400部| 亚洲男人的天堂av| 久久精品一区二区三区四区| 欧美日韩日日摸| 一本一道综合狠狠老| 在线不卡a资源高清| 亚洲mv大片欧洲mv大片精品| 国产三级欧美三级日产三级99 | 国产精品亲子伦对白| 日韩视频在线永久播放| 欧美怡红院视频| 色综合久久综合| 成人av在线电影| 丁香五精品蜜臀久久久久99网站| 老司机午夜精品99久久| 丝袜国产日韩另类美女| 一区二区三区免费| 亚洲女与黑人做爰| 亚洲人一二三区| 国产精品欧美精品| 欧美激情在线观看视频免费| 2024国产精品| 久久久综合视频| 久久婷婷国产综合精品青草| 日韩欧美第一区| 久久精品视频在线看| 九色porny丨国产精品| 亚洲一卡二卡三卡四卡五卡| 国产精品日日摸夜夜摸av| 久久久激情视频| 中文字幕不卡的av| 欧美激情一区不卡| 亚洲人成伊人成综合网小说| 亚洲欧美日韩综合aⅴ视频| 亚洲精品国产第一综合99久久| 亚洲日本va午夜在线电影| 亚洲一区日韩精品中文字幕| 亚洲风情在线资源站| 激情五月婷婷综合| 国产成人夜色高潮福利影视| 丁香啪啪综合成人亚洲小说| 91在线国内视频| 欧美日韩黄色一区二区| 日韩精品一区二区三区视频在线观看 | 久久精品网站免费观看| 中文字幕+乱码+中文字幕一区| 亚洲欧洲另类国产综合| 风间由美一区二区三区在线观看| 久久综合九色综合欧美98| 精品国产一区二区三区不卡| 久久久影视传媒| 亚洲色欲色欲www| 亚洲成人一二三| 极品少妇xxxx偷拍精品少妇| 福利一区二区在线观看| 色94色欧美sute亚洲13| 在线综合+亚洲+欧美中文字幕| 久久久久99精品国产片| 亚洲欧美偷拍三级| 蜜臀久久久99精品久久久久久| 国产成人精品免费| 欧美日韩国产三级| 国产亚洲va综合人人澡精品| 亚洲永久精品国产| 国产一区二区三区在线看麻豆| 99久久精品国产一区二区三区 | 成人免费看的视频| 欧美视频在线一区二区三区| 亚洲精品在线电影| 亚洲一区二区美女| 国产一区二区三区在线看麻豆| 欧美在线高清视频| 精品国一区二区三区| 一区二区高清视频在线观看| 国产精品一二二区| 欧美日韩视频第一区| 国产精品色哟哟| 免费成人深夜小野草| 99久久免费视频.com| 亚洲精品一区二区三区在线观看| 樱桃视频在线观看一区| 国产a久久麻豆| 欧美videos大乳护士334| 国产午夜一区二区三区| 欧美日韩国产123区| 亚洲国产精品精华液2区45| 首页国产欧美久久| 色网综合在线观看| 国产日韩av一区二区| 麻豆国产精品777777在线| 色婷婷综合久久| 最新成人av在线| 国产精品1024| 精品成a人在线观看| 日韩精品免费专区| 在线观看日产精品| 亚洲黄色av一区| 91浏览器打开| 中文字幕综合网| 97精品电影院| 亚洲天堂成人网| 色综合久久久久网| 丝袜亚洲另类丝袜在线| 色婷婷狠狠综合| 一区二区三区日韩在线观看| 91免费在线视频观看| 中文字幕精品一区二区精品绿巨人| 国产一区二区伦理片| 久久综合狠狠综合久久综合88 | 欧美一区二区三区人| 中文字幕中文字幕在线一区| 国产精品一区二区在线观看网站| 欧美videofree性高清杂交|