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

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

?? image.hh

?? pixil 最新的嵌入linux 應用程序集,別的地方很難下載
?? HH
字號:
/********************************************************************************  libvideogfx/graphics/basic/image.hh  purpose:    Data types for RGB and YUV images.  notes:   - Be careful when accessing the image data using more than one     pointer at the same time (see bitmap.hh)   - When extracting a bitmap from the image be sure to save a reference or     a pointer to the bitmap and not use a bitmap object of its own:     USE THIS: Bitmap<Pixel>* bm = &img.AskBitmap(...);     NOT THIS: Bitmap<Pixel>  bm =  img.AskBitmap(...);     The second version means that you extracted bitmap is independent of the     image you took it from. So writing into the Bitmap will not have any     effect on the image.  to do:   - Add Chroma411 format.   - Add Image_YCbCr<T>.  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:    18/Jul/2000 - Dirk Farin - new convenient bitmap access methods    05/Nov/1999 - Dirk Farin - adapted comments to DOC++    24/Aug/1999 - Dirk Farin - moved template instantiation into      separate file to solve multiple defined functions    20/Jul/1999 - Dirk Farin - moved 'border'-entry from      ImageInfo_Alignment to ImageInfo_Base    15/Jul/1999 - Dirk Farin - GetChromaSizes()    12/Jul/1999 - Dirk Farin - class Image is now a base class. The      most common user interface routines did move into the derived      classes Image_RGB and Image_YUV.    02/Jun/1999 - Dirk Farin - first implementation ********************************************************************************    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_IMAGE_HH#define LIBVIDEOGFX_GRAPHICS_BASIC_IMAGE_HH#include "libvideogfx/types.hh"#include "bitmap.hh"/// Chroma format of image.enum ChromaFormat {  /** Subsampling h:2 v:2 */ Chroma420,  /** Subsampling h:2 v:1 */ Chroma422,  /** No subsampling      */ Chroma444};/** Check if chroma is horizontally subsampled. Usage of the more general #ChromaSubH()# is recommended. */inline bool IsSubH(ChromaFormat cf) { return cf != Chroma444; }/** Check if chroma is vertically subsampled. Usage of the more general #ChromaSubV()# is recommended. */inline bool IsSubV(ChromaFormat cf) { return cf == Chroma420; }/** Get horizontal subsampling factor. */inline int  ChromaSubH(ChromaFormat cf) { return (cf != Chroma444) ? 2 : 1; }/** Get vertical subsampling factor. */inline int  ChromaSubV(ChromaFormat cf) { return (cf == Chroma420) ? 2 : 1; }// ------------------------ Image parameters -------------------------------/** Base class for image parameters. */class ImageInfo_Base{public:  ImageInfo_Base()    : width(0), height(0), border(0), has_alphamask(false) { }    /// Image logical width.  int  width;  /// Image logical height.  int  height;  /** Add a border of width 'border' around the image that contains only unused data.      This may be useful for some algorithms like filters that always consider a region      around a pixel. */  int  border;  // --- Image structure information ---  /// If image includes an alpha bitmap.  bool has_alphamask;};/** Bitmap data alignment information. */class ImageInfo_Alignment{public:  /** Default aligmnent constructor. Default values are: not alignment, physical      image size need not match logical image size. */  ImageInfo_Alignment()    : halign(1), valign(1),      exact_size(false) { }  /* See documentation "doc/bitmapdimensions.eps" for an explanation on     what these values are defining, too. */  /// Round width up to a multiple of this value.  int  halign;  /// Round height up to a multiple of this value.  int  valign;  /** If set to #true#: don't allow the alignment or the border to be greater than specified.      {\bf Explanation}: As it is more efficient to keep and older bitmap if the new one      is smaller than the old one, the old one is sometimes used instead of creating      a new one. This does not work if you are depending on the exact memory layout of      the image. So you can disable it by setting exact\_size to true. */  bool exact_size;};/** Extra image parameters for YUV images. */class ImageInfo_YUVExtraInfo{public:  ImageInfo_YUVExtraInfo()    : chroma(Chroma444), nocolor(false), reduced_chroma_size(false) { }  /// Chroma format of the image.  ChromaFormat chroma;  /// Image is a greyscale image. Not bitmaps are allocated for the U- and V-channels.  bool nocolor;  /** Bitmap size of chroma planes will be reduced according to the      value of 'chroma'. */  bool reduced_chroma_size;};/* The ***Param*** structs are for asking image attributes;   the ***Spec*** are for setting the image attributes. *//// Parameters of existing RGB images (size, existence of alpha bitmap)class ImageParam     : public ImageInfo_Base  { };/// Parameters of existing YUV imagesclass ImageParam_YUV : public ImageParam,     public ImageInfo_YUVExtraInfo{public:  int GetChromaWidth()  const { return (width +ChromaSubH(chroma)-1)/ChromaSubH(chroma); }  int GetChromaHeight() const { return (height+ChromaSubV(chroma)-1)/ChromaSubV(chroma); }  /// Get size of chroma bitmaps.  void GetChromaSizes(int& w,int &h) const    {      h = GetChromaHeight();      w = GetChromaWidth();    }};/// Specification of image parameters for RGB image creation.class ImageSpec      : public ImageParam,     public ImageInfo_Alignment { };/// Specification of image parameters for YUV image creation.class ImageSpec_YUV  : public ImageParam_YUV, public ImageInfo_Alignment { };/**   Easy handling of RGB and YUV images. Both types of images can   additionally contain an alpha mask. YUV type images support   4:4:4, 4:2:2 and 4:2:0 chroma formats and greyscale only images.   You can decide if you want the chroma planes to be the same   size even though you are not using 4:4:4. This can help   in later chroma format conversion as it can be done in place.*/template <class Pel> class Image{  friend void EnhanceImageWithBorder(Image<Pixel>&, int, bool);  // GCC 2.96 bug ???public:  virtual ~Image() { }  enum BitmapChannel { Bitmap_Red = 0, Bitmap_Green = 1, Bitmap_Blue = 2,		       Bitmap_Y   = 0, Bitmap_Cr    = 1, Bitmap_Cb   = 2,	                               Bitmap_U     = 1, Bitmap_V    = 2,		       Bitmap_Hue = 0, Bitmap_Saturation = 1, Bitmap_Brightness = 2,                       Bitmap_Alpha=3  };  /// Get colorspace independent image parameters.  void GetParam(ImageParam& p) const { p=d_param; }  /** Get write access to a bitmap in the image. Please use the read-only variant of this method if you do      not need write access. */  Bitmap<Pel>&       AskBitmap      (BitmapChannel bm_id)       { return d_bm[bm_id]; }  /// Get read-only access to a bitmap in the image.  const Bitmap<Pel>& AskBitmap_const(BitmapChannel bm_id) const { return d_bm[bm_id]; }  /** Replace a complete bitmap. Note that the new bitmap either has to be empty or has to      be exactly the same size as the old one.      Furthermore you are responsible that all alignments and the border size is sufficient      for your application. This is not checked!            If you insert or remove (by replacing a bitmap by an empty one) an alpha bitmap,      the alphamask-flag in ImageParam will be set accordingly.  */  void ReplaceBitmap(BitmapChannel id,Bitmap<Pel>&);  /// Set new image parameters.  void SetParam(const ImageParam& param) { d_param=param; }  /// Get write access to alpha bitmap.        Pel*const* AskFrameA()             { return d_bm[Bitmap_Alpha].AskFrame(); }  /// Get read-only access to alpha bitmap.  const Pel*const* AskFrameA_const() const { return d_bm[Bitmap_Alpha].AskFrame_const(); }  Bitmap<Pel>& AskBitmapA() { return d_bm[Bitmap_Alpha]; }  const Bitmap<Pel>& AskBitmapA_const() const { return d_bm[Bitmap_Alpha]; }  // --- hints ---  /** Give the hint that the contents of the image is not used any more. This does not effect      the logical behaviour of the image but can improve performance. */  void Hint_ContentsIsNotUsedAnymore() { for (int i=0;i<4;i++) d_bm[i].Hint_ContentsIsNotUsedAnymore(); }  // DEBUG  int AskRefCntr() const { d_bm[0].AskRefCntr(); }private:protected:  Image() { }  Image(const Image<Pel>&);  const Image<Pel>& operator=(const Image<Pel>&);  void _Create(const ImageSpec&,bool bitmaps12,bool subh,bool subv);  void _Destroy();  Bitmap<Pel> d_bm[4];  ImageParam  d_param;};/** RGB image. */template <class Pel> class Image_RGB : public Image<Pel>{public:  Image_RGB() { }  Image_RGB(const Image_RGB<Pel>& img) : Image<Pel>(img) { }  ~Image_RGB() { }  /// Create new RGB image according to the specifications.  void Create(const ImageSpec&);  /// Free the image.  void Destroy() { _Destroy(); }  // --- shortcuts ---  /// Get write access to the red color channel bitmap.  Pel*const* AskFrameR() { return d_bm[Bitmap_Red  ].AskFrame(); }  /// Get write access to the green color channel bitmap.  Pel*const* AskFrameG() { return d_bm[Bitmap_Green].AskFrame(); }  /// Get write access to the blue color channel bitmap.  Pel*const* AskFrameB() { return d_bm[Bitmap_Blue ].AskFrame(); }  /// Get read-only access to the red color channel bitmap.  const Pel*const* AskFrameR_const() const { return d_bm[Bitmap_Red  ].AskFrame_const(); }  /// Get read-only access to the green color channel bitmap.  const Pel*const* AskFrameG_const() const { return d_bm[Bitmap_Green].AskFrame_const(); }  /// Get read-only access to the blue color channel bitmap.  const Pel*const* AskFrameB_const() const { return d_bm[Bitmap_Blue ].AskFrame_const(); }  Bitmap<Pel>& AskBitmapR() { return d_bm[Bitmap_Red  ]; }  Bitmap<Pel>& AskBitmapG() { return d_bm[Bitmap_Green]; }  Bitmap<Pel>& AskBitmapB() { return d_bm[Bitmap_Blue ]; }  const Bitmap<Pel>& AskBitmapR_const() { return d_bm[Bitmap_Red  ]; }  const Bitmap<Pel>& AskBitmapG_const() { return d_bm[Bitmap_Green]; }  const Bitmap<Pel>& AskBitmapB_const() { return d_bm[Bitmap_Blue ]; }};/** YUV image. */template <class Pel> class Image_YUV : public Image<Pel>{public:  Image_YUV() { }  Image_YUV(const Image_YUV<Pel>& img) : Image<Pel>(img) { d_info_yuvextra=img.d_info_yuvextra; }  ~Image_YUV() { }  /// Create new RGB image according to the specifications.  void Create(const ImageSpec_YUV&);  /// Free the image.  void Destroy() { _Destroy(); }  /// Get image parameters including the YUV specific image parameters.  void GetParam(ImageParam_YUV& p) const { Image<Pel>::GetParam(p); ((ImageInfo_YUVExtraInfo&)p)=d_info_yuvextra; }  /** This method not only alters the chroma format but also checks that all bitmaps      are the right size. That means that if you change the size of bitmaps because      of a chroma convertion, you have to call this functions {\em after} replacing the      bitmaps. */  void SetChromaFormat(ChromaFormat cf);  /// Set image parameters.  void SetParam(const ImageParam_YUV& param) { d_info_yuvextra=param; d_param=param; }  // shortcuts  /// Get write access to the luminance color channel bitmap.  Pel*const* AskFrameY() { return d_bm[Bitmap_Y].AskFrame(); }  /// Get write access to the U-chrominance color channel bitmap.  Pel*const* AskFrameU() { return d_bm[Bitmap_U].AskFrame(); }  /// Get write access to the V-chrominance color channel bitmap.  Pel*const* AskFrameV() { return d_bm[Bitmap_V].AskFrame(); }  /// Get read-only access to the luminance color channel bitmap.  const Pel*const* AskFrameY_const() const { return d_bm[Bitmap_Y].AskFrame_const(); }  /// Get read-only access to the U-chrominance color channel bitmap.  const Pel*const* AskFrameU_const() const { return d_bm[Bitmap_U].AskFrame_const(); }  /// Get read-only access to the V-chrominance color channel bitmap.  const Pel*const* AskFrameV_const() const { return d_bm[Bitmap_V].AskFrame_const(); }  Bitmap<Pel>& AskBitmapY() { return d_bm[Bitmap_Y]; }  Bitmap<Pel>& AskBitmapU() { return d_bm[Bitmap_U]; }  Bitmap<Pel>& AskBitmapV() { return d_bm[Bitmap_V]; }  const Bitmap<Pel>& AskBitmapY_const() { return d_bm[Bitmap_Y]; }  const Bitmap<Pel>& AskBitmapU_const() { return d_bm[Bitmap_U]; }  const Bitmap<Pel>& AskBitmapV_const() { return d_bm[Bitmap_V]; }private:  ImageInfo_YUVExtraInfo d_info_yuvextra;};#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲另类中文字| 免费高清在线一区| 国产色综合一区| 日韩欧美国产不卡| 日韩一级二级三级| 91精品国产综合久久小美女| 欧美亚洲图片小说| 91国偷自产一区二区三区成为亚洲经典| 韩国女主播成人在线| 欧美性感一类影片在线播放| 91热门视频在线观看| 白白色 亚洲乱淫| 97久久超碰国产精品| 色噜噜偷拍精品综合在线| 色婷婷综合久久久久中文一区二区| 成人妖精视频yjsp地址| 成人爱爱电影网址| 日本道精品一区二区三区| 色婷婷亚洲综合| 欧美体内she精视频| 日韩一区二区免费视频| 日韩精品专区在线影院观看| 久久久影院官网| 有码一区二区三区| 日本三级亚洲精品| 国产精品一区二区三区乱码 | 国产91清纯白嫩初高中在线观看| 国产精品99久久久| 色综合视频在线观看| 欧美成人a∨高清免费观看| 国产精品色一区二区三区| 一区二区三区四区在线播放| 激情av综合网| 精品视频在线看| 国产精品美日韩| 日本不卡视频在线| 色一区在线观看| 国产欧美一区二区三区网站| 亚洲福利电影网| 成人做爰69片免费看网站| 日韩一级片网站| 亚洲综合在线五月| 国产sm精品调教视频网站| 51精品国自产在线| 亚洲精品少妇30p| 成人的网站免费观看| 久久久久99精品一区| 石原莉奈一区二区三区在线观看| 成人综合婷婷国产精品久久蜜臀| 日韩一区二区在线播放| 一区二区理论电影在线观看| 成人h版在线观看| 国产亚洲成aⅴ人片在线观看| 玖玖九九国产精品| 欧美精品123区| 亚洲超碰97人人做人人爱| 欧美这里有精品| 亚洲激情综合网| 欧美性色黄大片| 视频一区二区三区中文字幕| 欧美日韩黄色一区二区| 亚洲超丰满肉感bbw| 欧美精品精品一区| 日本中文字幕一区| 国产精品初高中害羞小美女文| 亚洲欧洲精品成人久久奇米网| 狠狠色丁香久久婷婷综合_中| 精品免费视频.| 国产乱码字幕精品高清av | 亚洲欧美激情在线| 91免费观看在线| 亚洲国产三级在线| 337p亚洲精品色噜噜狠狠| 美女网站色91| 亚洲视频你懂的| 欧美日韩一区中文字幕| 看国产成人h片视频| 国产精品天天摸av网| 久久免费偷拍视频| 国产乱码精品一区二区三区忘忧草 | 欧美国产日韩一二三区| 99在线精品一区二区三区| 日韩精品一卡二卡三卡四卡无卡| 91精品国产一区二区三区| 韩国精品久久久| 亚洲激情网站免费观看| 亚洲精品在线观| 欧美日韩黄色影视| 高清在线不卡av| 天堂午夜影视日韩欧美一区二区| 久久青草欧美一区二区三区| 欧美最新大片在线看| 国产露脸91国语对白| 91超碰这里只有精品国产| 亚洲国产一区二区在线播放| 久久精品亚洲精品国产欧美kt∨| 欧美影院一区二区| 国产成人av网站| 久久国产麻豆精品| 亚洲欧美日韩国产成人精品影院| 日韩精品中文字幕一区| 色哟哟一区二区三区| 99久久99久久综合| 国产一区二区伦理片| 午夜精品久久久久久久久久久| 国产精品久久久久久久久免费相片| 日韩欧美亚洲国产精品字幕久久久| 欧美网站大全在线观看| 色综合天天性综合| 91免费看`日韩一区二区| 国产成人亚洲综合a∨婷婷图片| 日本美女视频一区二区| 青青草国产精品97视觉盛宴| 日韩高清在线一区| 日韩av一级片| 精品亚洲porn| 国产黄色成人av| fc2成人免费人成在线观看播放| 国产精品中文字幕日韩精品| 国产成人欧美日韩在线电影 | 亚洲综合精品自拍| 亚洲444eee在线观看| 免费美女久久99| 国产露脸91国语对白| 99久久精品久久久久久清纯| 色婷婷亚洲综合| 欧美一级二级三级蜜桃| 久久午夜免费电影| 国产精品久久福利| 一区二区三区加勒比av| 国内成人自拍视频| 99久久精品国产精品久久| 欧美日韩国产系列| 久久久精品2019中文字幕之3| 亚洲色图都市小说| 蜜桃av噜噜一区二区三区小说| 国产精品综合一区二区三区| 色综合久久久久久久久| 欧美大肚乱孕交hd孕妇| 亚洲丝袜自拍清纯另类| 亚洲综合免费观看高清完整版在线 | 国产盗摄一区二区三区| 在线观看国产一区二区| 国产亚洲制服色| 亚洲电影第三页| 99热精品一区二区| 精品国产乱码久久久久久牛牛| 亚洲人成人一区二区在线观看| 玖玖九九国产精品| 欧美日本韩国一区二区三区视频| 亚洲国产精华液网站w| 久久精品国产亚洲高清剧情介绍| 91麻豆精东视频| 国产精品麻豆欧美日韩ww| 奇米精品一区二区三区在线观看| 色爱区综合激月婷婷| 欧美韩日一区二区三区| 久久se精品一区精品二区| 日韩欧美国产系列| 蜜桃av噜噜一区| 精品国产亚洲在线| 久久精品国产在热久久| 91精品国产品国语在线不卡| 亚洲 欧美综合在线网络| 欧美午夜不卡在线观看免费| 日韩成人av影视| 欧美一区二区在线播放| 久久久久久9999| 亚洲成人av电影在线| 精品盗摄一区二区三区| 日本伦理一区二区| 国产成人精品免费视频网站| 亚洲午夜精品网| 国产蜜臀av在线一区二区三区| 国产91露脸合集magnet| 亚洲激情综合网| 欧美一区二区久久久| 国产成a人无v码亚洲福利| 亚洲欧美在线高清| 91精品国产综合久久精品麻豆| 偷拍自拍另类欧美| 国产精品视频在线看| 精品1区2区3区| 成人性生交大片免费看中文| 亚洲视频免费观看| 3atv在线一区二区三区| 99久久婷婷国产精品综合| 免费成人结看片| 亚洲色图一区二区三区| 欧美v亚洲v综合ⅴ国产v| 成人综合婷婷国产精品久久免费| 亚洲一区二区欧美日韩| 日韩码欧中文字| 国产午夜精品一区二区三区视频| 91精品国产综合久久久久久| 91女厕偷拍女厕偷拍高清| 成人性生交大合| 国产高清视频一区| 蜜桃av一区二区| 美腿丝袜亚洲色图|