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

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

?? sdl_pixelformat.3

?? 網絡MPEG4IP流媒體開發源代碼
?? 3
字號:
.TH "SDL_PixelFormat" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference" .SH "NAME"SDL_PixelFormat\- Stores surface format information.SH "STRUCTURE DEFINITION".PP.nf\f(CWtypedef struct{  SDL_Palette *palette;  Uint8  BitsPerPixel;  Uint8  BytesPerPixel;  Uint32 Rmask, Gmask, Bmask, Amask;  Uint8  Rshift, Gshift, Bshift, Ashift;  Uint8  Rloss, Gloss, Bloss, Aloss;  Uint32 colorkey;  Uint8  alpha;} SDL_PixelFormat;\fR.fi.PP.SH "STRUCTURE DATA".TP 20\fBpalette\fRPointer to the \fIpalette\fR, or \fBNULL\fP if the \fBBitsPerPixel\fR>8.TP 20\fBBitsPerPixel\fRThe number of bits used to represent each pixel in a surface\&. Usually 8, 16, 24 or 32\&..TP 20\fBBytesPerPixel\fRThe number of bytes used to represent each pixel in a surface\&. Usually one to four\&..TP 20\fB[RGBA]mask\fRBinary mask used to retrieve individual color values.TP 20\fB[RGBA]loss\fRPrecision loss of each color component (2^[RGBA]loss).TP 20\fB[RGBA]shift\fRBinary left shift of each color component in the pixel value.TP 20\fBcolorkey\fRPixel value of transparent pixels.TP 20\fBalpha\fROverall surface alpha value.SH "DESCRIPTION".PPA \fBSDL_PixelFormat\fR describes the format of the pixel data stored at the \fBpixels\fR field of a \fI\fBSDL_Surface\fR\fR\&. Every surface stores a \fBSDL_PixelFormat\fR in the \fBformat\fR field\&..PPIf you wish to do pixel level modifications on a surface, then understanding how SDL stores its color information is essential\&..PP8-bit pixel formats are the easiest to understand\&. Since its an 8-bit format, we have 8 \fBBitsPerPixel\fR and 1 \fBBytesPerPixel\fR\&. Since \fBBytesPerPixel\fR is 1, all pixels are represented by a Uint8 which contains an index into \fBpalette\fR->\fBcolors\fR\&. So, to determine the color of a pixel in a 8-bit surface: we read the color index from \fBsurface\fR->\fBpixels\fR and we use that index to read the \fI\fBSDL_Color\fR\fR structure from \fBsurface\fR->\fBformat\fR->\fBpalette\fR->\fBcolors\fR\&. Like so: .PP.nf\f(CWSDL_Surface *surface;SDL_PixelFormat *fmt;SDL_Color *color;Uint8 index;\&.\&./* Create surface */\&.\&.fmt=surface->format;/* Check the bitdepth of the surface */if(fmt->BitsPerPixel!=8){  fprintf(stderr, "Not an 8-bit surface\&.");  return(-1);}/* Lock the surface */SDL_LockSurface(surface);/* Get the topleft pixel */index=*(Uint8 *)surface->pixels;color=fmt->palette->colors[index];/* Unlock the surface */SDL_UnlockSurface(surface);printf("Pixel Color-> Red: %d, Green: %d, Blue: %d\&. Index: %d",          color->r, color->g, color->b, index);\&.\&.\fR.fi.PP.PPPixel formats above 8-bit are an entirely different experience\&. They are considered to be "TrueColor" formats and the color information is stored in the pixels themselves, not in a palette\&. The mask, shift and loss fields tell us how the color information is encoded\&. The mask fields allow us to isolate each color component, the shift fields tell us the number of bits to the right of each component in the pixel value and the loss fields tell us the number of bits lost from each component when packing 8-bit color component in a pixel\&. .PP.nf\f(CW/* Extracting color components from a 32-bit color value */SDL_PixelFormat *fmt;SDL_Surface *surface;Uint32 temp, pixel;Uint8 red, green, blue, alpha;\&.\&.\&.fmt=surface->format;SDL_LockSurface(surface);pixel=*((Uint32*)surface->pixels);SDL_UnlockSurface(surface);/* Get Red component */temp=pixel&fmt->Rmask; /* Isolate red component */temp=temp>>fmt->Rshift;/* Shift it down to 8-bit */temp=temp<<fmt->Rloss; /* Expand to a full 8-bit number */red=(Uint8)temp;/* Get Green component */temp=pixel&fmt->Gmask; /* Isolate green component */temp=temp>>fmt->Gshift;/* Shift it down to 8-bit */temp=temp<<fmt->Gloss; /* Expand to a full 8-bit number */green=(Uint8)temp;/* Get Blue component */temp=pixel&fmt->Bmask; /* Isolate blue component */temp=temp>>fmt->Bshift;/* Shift it down to 8-bit */temp=temp<<fmt->Bloss; /* Expand to a full 8-bit number */blue=(Uint8)temp;/* Get Alpha component */temp=pixel&fmt->Amask; /* Isolate alpha component */temp=temp>>fmt->Ashift;/* Shift it down to 8-bit */temp=temp<<fmt->Aloss; /* Expand to a full 8-bit number */alpha=(Uint8)temp;printf("Pixel Color -> R: %d,  G: %d,  B: %d,  A: %d", red, green, blue, alpha);\&.\&.\&.\fR.fi.PP.SH "SEE ALSO".PP\fI\fBSDL_Surface\fR\fR, \fI\fBSDL_MapRGB\fP\fR...\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区加勒比av| 亚洲免费在线播放| 欧美日韩一级视频| 色乱码一区二区三区88| 在线看国产一区二区| 亚洲va韩国va欧美va精品| 成人激情文学综合网| 日韩av成人高清| 亚洲欧洲精品一区二区三区 | 欧美精选在线播放| 成人黄色网址在线观看| 国产大陆a不卡| 91丨porny丨最新| 奇米在线7777在线精品| 老司机午夜精品| 久久久综合精品| 久久久久久久免费视频了| 日本一区二区三区高清不卡| 国产女主播视频一区二区| 中文av一区二区| 亚洲天堂2014| 日韩av电影一区| 国产精品一区二区你懂的| 国产一区日韩二区欧美三区| 国产成人高清视频| 91麻豆精东视频| 日韩视频一区二区在线观看| 久久久久久免费| 一区二区久久久| 韩国成人精品a∨在线观看| 国产精品亚洲成人| 欧美三级中文字幕| 欧美精品一区二区三区四区| 国产精品视频一区二区三区不卡| 中文字幕一区二区三区不卡| 香蕉加勒比综合久久 | 成人av网在线| 制服丝袜中文字幕亚洲| 欧美极品xxx| 日韩不卡在线观看日韩不卡视频| 国产成人在线影院| 欧美另类高清zo欧美| 国产精品美女www爽爽爽| 亚洲成人中文在线| 成+人+亚洲+综合天堂| 日韩一区二区三免费高清| 自拍偷拍欧美激情| 精品一区二区日韩| 欧美丰满美乳xxx高潮www| 国产精品色婷婷| 国产做a爰片久久毛片| 欧美性色黄大片| 亚洲视频电影在线| 成人小视频免费在线观看| 日韩欧美区一区二| 天天爽夜夜爽夜夜爽精品视频| 国产成人在线免费观看| 欧美一级片在线看| 一区二区三区在线观看动漫| 国产成人综合视频| 亚洲精品一线二线三线| 日本aⅴ亚洲精品中文乱码| 色噜噜狠狠色综合中国| 中文字幕一区二| 成人免费精品视频| 中日韩免费视频中文字幕| 久久99精品一区二区三区| 日韩一区二区三区四区| 亚洲不卡一区二区三区| 欧美三级视频在线播放| 亚洲日本丝袜连裤袜办公室| 暴力调教一区二区三区| 国产精品美女久久福利网站| 成人国产精品免费观看动漫| 久久久久久一二三区| 国产91精品免费| 成人欧美一区二区三区黑人麻豆| 成人精品国产福利| 亚洲天堂免费在线观看视频| 99精品久久免费看蜜臀剧情介绍| 国产精品视频一区二区三区不卡| 不卡一区在线观看| 亚洲精品福利视频网站| 色播五月激情综合网| 亚洲乱码国产乱码精品精小说| 91网址在线看| 五月天亚洲婷婷| 日韩一卡二卡三卡四卡| 国产一区二区三区免费播放| 国产欧美日韩另类一区| 99精品一区二区三区| 一区二区三区四区在线免费观看| 欧美日韩视频一区二区| 精品一区二区在线免费观看| 国产日产欧美一区二区视频| 成人国产精品视频| 五月婷婷久久丁香| 国产欧美日韩亚州综合| 91浏览器入口在线观看| 日韩精品成人一区二区三区| 精品久久久久一区二区国产| 成人激情小说网站| 日韩国产欧美三级| 国产区在线观看成人精品 | 久久奇米777| 97精品电影院| 美国欧美日韩国产在线播放| 国产三级精品在线| 欧美日韩午夜精品| 大胆亚洲人体视频| 日韩国产欧美在线观看| 国产精品日产欧美久久久久| 欧美视频在线一区二区三区 | 9色porny自拍视频一区二区| 亚洲成人7777| 欧美国产精品中文字幕| 欧美日韩高清不卡| 丁香激情综合国产| 日韩主播视频在线| 亚洲欧美另类在线| 日韩精品一区二区三区三区免费 | 欧美日韩五月天| 成人av在线播放网站| 日本视频一区二区三区| 亚洲男帅同性gay1069| 26uuu精品一区二区| 欧美精品丝袜久久久中文字幕| 国产麻豆精品在线观看| 天堂成人国产精品一区| 亚洲欧美日韩久久精品| 久久久久九九视频| 日韩精品一区二区三区老鸭窝| 色久综合一二码| eeuss影院一区二区三区| 国产综合色视频| 久久精品国产免费看久久精品| 亚洲综合一区二区精品导航| 国产精品女主播在线观看| 精品成人一区二区| 日韩一区二区三区视频在线| 在线视频欧美区| 99久久精品国产导航| 国产成人精品一区二区三区四区| 另类小说一区二区三区| 日本va欧美va瓶| 奇米888四色在线精品| 亚洲bdsm女犯bdsm网站| 亚洲高清在线精品| 亚洲成人午夜影院| 亚洲最大成人综合| 亚洲午夜影视影院在线观看| 亚洲免费av高清| 一区二区欧美精品| 午夜精品久久久久久久99樱桃| 一区二区三区高清| 午夜电影久久久| 美女视频黄 久久| 精品一二三四区| 国产美女视频91| 国产99精品在线观看| 成人黄色电影在线 | 欧美三级视频在线观看| 欧美日韩视频一区二区| 欧美高清一级片在线| 日韩欧美黄色影院| 久久久久久久久久久久久久久99 | 老鸭窝一区二区久久精品| 国产一区二区女| 成人丝袜18视频在线观看| av午夜精品一区二区三区| 色呦呦国产精品| 91精品国产色综合久久ai换脸| 日韩一级欧美一级| 国产日韩av一区| 一区二区三区色| 天堂午夜影视日韩欧美一区二区| 麻豆精品在线视频| 国产精品亚洲一区二区三区在线| 99久久99久久久精品齐齐| 欧美体内she精高潮| 久久网这里都是精品| 亚洲日本在线看| 美女久久久精品| 99re成人精品视频| 日韩亚洲欧美综合| 国产精品国产成人国产三级| 亚洲国产精品视频| 国产河南妇女毛片精品久久久| 91色乱码一区二区三区| 日韩一区二区三区视频在线观看| 欧美国产综合一区二区| 天堂影院一区二区| 97se亚洲国产综合自在线不卡| 欧美一区二区在线看| 欧美高清一级片在线观看| 视频一区二区中文字幕| 成人sese在线| 久久亚洲欧美国产精品乐播| 亚洲一级电影视频| www.综合网.com|