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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? image.hh

?? pixil 最新的嵌入linux 應(yīng)用程序集,別的地方很難下載
?? HH
字號(hào):
/********************************************************************************  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

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美日韩国产综合| 成人黄色一级视频| 成人av片在线观看| 91精品国产一区二区| 亚洲人成网站影音先锋播放| 国产在线播放一区二区三区| 这里只有精品视频在线观看| 亚洲精品国产精品乱码不99| 九九视频精品免费| 欧美日韩国产a| 亚洲自拍都市欧美小说| 91丨九色丨国产丨porny| 国产片一区二区三区| 国产精品自在在线| 日韩欧美高清一区| 亚洲国产日韩精品| 91视频91自| 亚洲卡通动漫在线| 99国产一区二区三精品乱码| 国产精品色哟哟| 国产jizzjizz一区二区| 久久久一区二区| 国产尤物一区二区在线| 久久麻豆一区二区| 国产在线麻豆精品观看| 精品国产91洋老外米糕| 久久精品国产网站| 精品少妇一区二区三区日产乱码| 青青草伊人久久| 欧美一区二区精品| 国产在线观看一区二区| 久久久午夜精品理论片中文字幕| 激情五月婷婷综合网| 精品91自产拍在线观看一区| 激情成人综合网| 国产日韩欧美综合在线| 风流少妇一区二区| 成人免费一区二区三区视频 | 中文一区二区完整视频在线观看| 激情文学综合丁香| 国产调教视频一区| www..com久久爱| 中文字幕一区二区三区不卡| 99久久免费精品高清特色大片| 国产精品久久久久久久久久免费看| 成人不卡免费av| 亚洲综合一二三区| 日韩午夜av一区| 国产一区二区三区香蕉| 中文字幕日韩一区| 884aa四虎影成人精品一区| 美女脱光内衣内裤视频久久影院| www国产精品av| 91丨porny丨户外露出| 五月天网站亚洲| 久久九九久精品国产免费直播| 成人激情电影免费在线观看| 亚洲一区二区三区视频在线播放| 日韩欧美一级在线播放| 成人h动漫精品| 日韩国产成人精品| 中文字幕精品综合| 欧美精品成人一区二区三区四区| 国产精品亚洲视频| 亚洲一区二区在线播放相泽 | 日韩电影在线免费看| 久久亚洲影视婷婷| 精品国产91乱码一区二区三区 | 成人午夜电影网站| 亚洲永久精品大片| 久久精品夜夜夜夜久久| 欧美色网站导航| 成熟亚洲日本毛茸茸凸凹| 亚洲国产cao| 国产精品久久久久久久久果冻传媒| 欧美揉bbbbb揉bbbbb| 粉嫩aⅴ一区二区三区四区五区| 亚洲亚洲精品在线观看| 欧美国产精品中文字幕| 欧美久久久一区| 一本在线高清不卡dvd| 激情伊人五月天久久综合| 亚洲成人免费看| 亚洲欧洲精品天堂一级 | 1区2区3区欧美| 日韩一级完整毛片| 欧美性色欧美a在线播放| 成人性生交大片| 国产在线不卡一卡二卡三卡四卡| 亚洲国产另类av| 最新中文字幕一区二区三区| 久久嫩草精品久久久精品| 88在线观看91蜜桃国自产| 色欲综合视频天天天| 成人国产视频在线观看| 韩国女主播一区| 日韩av不卡在线观看| 亚欧色一区w666天堂| 亚洲免费av观看| 日韩伦理电影网| 中文在线一区二区| 国产日韩三级在线| 久久久久久免费| 26uuu国产在线精品一区二区| 7777女厕盗摄久久久| 欧美日韩国产大片| 欧美色综合久久| 欧美美女一区二区| 欧美日韩国产一区| 欧美撒尿777hd撒尿| 欧美猛男超大videosgay| 欧美视频在线一区| 欧美色区777第一页| 欧美日韩国产一二三| 欧美丰满少妇xxxxx高潮对白 | 国产欧美日韩在线| 国产女人18水真多18精品一级做| 国产日韩视频一区二区三区| 久久久久久久久久久黄色| 欧美不卡一区二区| 欧美精品一区二区久久婷婷| 337p粉嫩大胆噜噜噜噜噜91av | 日韩不卡在线观看日韩不卡视频| 午夜婷婷国产麻豆精品| 日韩在线卡一卡二| 韩国av一区二区三区四区| 国产米奇在线777精品观看| 国产v综合v亚洲欧| 99久久99久久精品免费观看| 在线视频国内一区二区| 欧美视频一区二区在线观看| 91麻豆精品国产91久久久久久| 欧美一区二区三区视频免费播放 | 一区二区三区在线免费视频| 亚洲欧美偷拍三级| 日韩福利电影在线| 国内精品国产成人国产三级粉色 | 亚洲激情五月婷婷| 日韩二区三区四区| 国产激情一区二区三区四区 | 亚洲777理论| 精品无人区卡一卡二卡三乱码免费卡| 国产综合色视频| 91在线看国产| 日韩免费高清av| 综合精品久久久| 蜜臀av亚洲一区中文字幕| 成人动漫在线一区| 777午夜精品视频在线播放| 久久久久成人黄色影片| 亚洲一二三四在线观看| 国产做a爰片久久毛片| 欧美最猛性xxxxx直播| 欧美成人猛片aaaaaaa| 亚洲三级久久久| 国产一区二区三区四区五区美女| 一道本成人在线| 国产偷国产偷亚洲高清人白洁 | 欧美一区二区观看视频| 日本一区二区三区电影| 午夜精品久久久久| 北条麻妃一区二区三区| 精品久久久久久久人人人人传媒 | 中文字幕精品三区| 日韩成人dvd| 欧美日精品一区视频| 国产精品欧美精品| 黄一区二区三区| 777亚洲妇女| 一区二区三区精品视频| 成人国产精品视频| 2019国产精品| 久久成人免费网站| 欧美高清性hdvideosex| **网站欧美大片在线观看| 国产电影一区二区三区| 欧美大黄免费观看| 日本欧美久久久久免费播放网| 91浏览器在线视频| 亚洲一区二三区| 色综合 综合色| 亚洲图片你懂的| 成人av免费在线| 中文字幕成人在线观看| 国产成人av资源| 久久色在线观看| 国精产品一区一区三区mba视频 | 精品一区二区在线观看| 678五月天丁香亚洲综合网| 伊人夜夜躁av伊人久久| www.欧美精品一二区| 欧美极品美女视频| 国产精品一区二区在线观看不卡 | 国产风韵犹存在线视精品| 精品久久久三级丝袜| 韩国v欧美v日本v亚洲v| 国产肉丝袜一区二区| 成人网男人的天堂| 欧美激情综合在线| 96av麻豆蜜桃一区二区|