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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? image.hh

?? PIXIL is a small footprint operating environment, complete with PDA PIM applications, a browser and
?? 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品国产精品乱码不99| 91精品国产综合久久精品| 久久久久久99久久久精品网站| 日韩在线播放一区二区| 欧美一区二区三区四区高清| 九九**精品视频免费播放| www国产成人免费观看视频 深夜成人网| 美腿丝袜亚洲综合| 精品第一国产综合精品aⅴ| 国产乱码一区二区三区| 国产精品久久久久影院老司 | 亚洲欧美另类小说视频| 日韩精品一区二区在线| 精品在线亚洲视频| 国产欧美日韩另类视频免费观看 | 99久久精品久久久久久清纯| 夜夜嗨av一区二区三区中文字幕 | 国产午夜精品理论片a级大结局| 丁香天五香天堂综合| 亚洲精品国产精品乱码不99| 欧美嫩在线观看| 国产成人日日夜夜| 亚洲h在线观看| 欧美国产视频在线| 欧美日韩aaaaaa| 国产成人免费av在线| 一区二区三区四区激情| 91精品国产综合久久久久久久久久 | 欧美bbbbb| 中文字幕av一区二区三区高 | 午夜久久福利影院| 国产亚洲精久久久久久| 欧美三级欧美一级| 高清国产一区二区| 青青草一区二区三区| 国产精品不卡一区| 日韩精品一区二区三区中文不卡| 91亚洲精华国产精华精华液| 秋霞电影一区二区| 麻豆91免费观看| 樱花影视一区二区| 中文幕一区二区三区久久蜜桃| 欧美日韩日日摸| 成人动漫视频在线| 狠狠色狠狠色综合| 天天做天天摸天天爽国产一区| 国产亚洲成aⅴ人片在线观看| 欧美日韩电影在线| 在线视频国内一区二区| 国产99久久久久久免费看农村| 日韩av网站在线观看| 一区二区三区四区亚洲| 国产精品三级视频| 国产亚洲成av人在线观看导航| 欧美一区二区三区不卡| 欧美日韩小视频| 91丨porny丨国产入口| 国产成人免费9x9x人网站视频| 免费观看在线色综合| 午夜久久久影院| 一区二区三区精品在线| 欧美激情一区二区三区全黄| 久久久久国产精品免费免费搜索| 日韩一区二区高清| 日韩午夜在线观看视频| 69久久夜色精品国产69蝌蚪网| 在线观看三级视频欧美| 91网站在线播放| 色综合久久九月婷婷色综合| bt欧美亚洲午夜电影天堂| 懂色av中文一区二区三区| 青青草精品视频| 男女激情视频一区| 日本不卡视频一二三区| 青青草97国产精品免费观看| 午夜久久久影院| 五月综合激情网| 日韩高清不卡一区二区三区| 性做久久久久久| 天堂一区二区在线| 国产成人在线观看免费网站| 国内精品视频一区二区三区八戒| 麻豆精品一区二区综合av| 日韩成人免费电影| 麻豆精品在线视频| 国产精品综合视频| 成人精品视频网站| 91伊人久久大香线蕉| 91久久精品午夜一区二区| 欧美日韩免费一区二区三区| 欧美日韩亚洲综合一区二区三区| 日韩一区二区三区四区五区六区| 日韩欧美一级在线播放| 国产亚洲精品精华液| 1区2区3区欧美| 亚洲一线二线三线视频| 免费在线看成人av| 成人性生交大片免费看中文网站| 99精品久久只有精品| 欧美日韩大陆在线| 精品国产伦一区二区三区免费| 国产亚洲精品资源在线26u| 亚洲精品中文字幕乱码三区| 天天综合日日夜夜精品| 韩日av一区二区| av色综合久久天堂av综合| 欧美视频一区二区三区四区| 欧美电影免费观看完整版| 国产精品久久久久影视| 三级欧美在线一区| 国产91丝袜在线18| 欧美色综合天天久久综合精品| 日韩精品中文字幕一区| 成人免费一区二区三区视频 | 中文字幕制服丝袜一区二区三区| 亚洲最色的网站| 精品在线观看视频| 在线国产电影不卡| 国产亚洲欧美日韩日本| 亚洲一区二区欧美激情| 国产乱码精品一区二区三区av| 色拍拍在线精品视频8848| 日韩欧美www| 亚洲一区二区五区| 成人在线视频一区二区| 日韩午夜电影在线观看| 国产寡妇亲子伦一区二区| www.亚洲免费av| 91精品国产手机| 激情欧美一区二区| 日本强好片久久久久久aaa| 成人av手机在线观看| 欧美极品少妇xxxxⅹ高跟鞋| 国产精品综合av一区二区国产馆| 日韩欧美黄色影院| 久久99精品久久久久| 欧美mv日韩mv| 国内精品不卡在线| 国产日产欧美一区| jlzzjlzz国产精品久久| 亚洲婷婷综合色高清在线| 色综合久久综合网欧美综合网| 亚洲视频 欧洲视频| 94-欧美-setu| 亚洲在线观看免费视频| 欧美日韩美少妇| 天天影视涩香欲综合网| 欧美xxxxx牲另类人与| 国产精品自产自拍| 国产精品久久久久久一区二区三区| 成人av免费在线播放| 一区二区三区在线观看网站| 欧美日韩国产乱码电影| 久久国产尿小便嘘嘘尿| 国产午夜精品理论片a级大结局| 北岛玲一区二区三区四区| 艳妇臀荡乳欲伦亚洲一区| 欧美猛男超大videosgay| 免费久久精品视频| 欧美激情一区二区三区蜜桃视频| 99精品久久99久久久久| 视频一区二区欧美| 久久久精品天堂| 色狠狠av一区二区三区| 日本中文字幕一区二区视频| 欧美精品一区二区三区四区| www.亚洲精品| 日韩精品五月天| 精品国产成人系列| 91免费在线播放| 日韩国产成人精品| 中文字幕精品在线不卡| 欧美三电影在线| 国产精品一区二区三区99| 亚洲激情第一区| 欧美成人免费网站| 色噜噜狠狠成人网p站| 日本系列欧美系列| **欧美大码日韩| 欧美一区二区黄| 99精品视频在线免费观看| 男男gaygay亚洲| 亚洲精品免费看| 国产夜色精品一区二区av| 在线视频欧美精品| 国产成人av电影免费在线观看| 午夜精品久久久久| 国产精品麻豆久久久| 日韩欧美一二三区| 一本色道亚洲精品aⅴ| 国产一区二区三区视频在线播放| 一区二区三区不卡在线观看| 久久九九久久九九| 欧美丰满少妇xxxxx高潮对白| 成人免费毛片app| 久久国产精品99久久人人澡| 亚洲欧美日韩小说| 国产欧美一区二区精品仙草咪| 91精品国产福利在线观看| 一本久久a久久精品亚洲|