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

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

?? gdk-pixbuf-xlibrgb.c

?? linux下電話本所依賴的一些圖形庫
?? C
?? 第 1 頁 / 共 5 頁
字號:
/** * xlib_rgb_init_with_depth: * @display: X display to use. * @screen: Screen to use. * @prefDepth: Visual depth to use for color substitution tables.  This must * be one of the supported visual depths in the specified @display. *  * Initializes the XlibRGB machinery with a particular depth you specify, * instead of automatically picking the best depth in the display.  This * function or xlib_rgb_init() must be called before using any of the other * functions in XlibRGB. **/voidxlib_rgb_init_with_depth (Display *display, Screen *screen, int prefDepth){  int i;  static const int byte_order[1] = { 1 };  static int initialized = 0;  if (initialized)  {    return;  }  initialized = 1;  /* check endian sanity */#if G_BYTE_ORDER == G_BIG_ENDIAN  if (((char *)byte_order)[0] == 1) {    printf ("xlib_rgb_init: compiled for big endian, but this is a little endian machine.\n\n");    exit(1);  }#else  if (((char *)byte_order)[0] != 1) {    printf ("xlib_rgb_init: compiled for little endian, but this is a big endian machine.\n\n");    exit(1);  }#endif  if (image_info == NULL)    {      image_info = malloc(sizeof(XlibRgbInfo));      memset(image_info, 0, sizeof(XlibRgbInfo));      image_info->display = display;      image_info->screen = screen;      image_info->screen_num = XScreenNumberOfScreen(screen);      image_info->x_visual_info = NULL;      image_info->cmap = 0;      image_info->default_visualid = DefaultVisual(display, image_info->screen_num);      image_info->default_colormap = DefaultColormap(display, image_info->screen_num);      image_info->color_pixels = NULL;      image_info->gray_pixels = NULL;      image_info->reserved_pixels = NULL;      image_info->nred_shades = 6;      image_info->ngreen_shades = 6;      image_info->nblue_shades = 4;      image_info->ngray_shades = 24;      image_info->nreserved = 0;      image_info->bpp = 0;      image_info->cmap_alloced = FALSE;      image_info->gamma_val = 1.0;      image_info->stage_buf = NULL;      image_info->own_gc = NULL;            image_info->red_shift = 0;      image_info->red_prec = 0;      image_info->green_shift = 0;      image_info->green_prec = 0;      image_info->blue_shift = 0;      image_info->blue_prec = 0;      if (prefDepth != -1)        xlib_rgb_choose_visual_for_xprint (prefDepth);      else        xlib_rgb_choose_visual ();      if ((image_info->x_visual_info->class == PseudoColor ||	   image_info->x_visual_info->class == StaticColor) &&	  image_info->x_visual_info->depth < 8 &&	  image_info->x_visual_info->depth >= 3)	{	  image_info->cmap = image_info->default_colormap;	  xlib_rgb_colorcube_222 ();	}      else if (image_info->x_visual_info->class == PseudoColor)	{	  if (xlib_rgb_install_cmap ||	      image_info->x_visual_info->visualid != image_info->default_visualid->visualid)	    {	      image_info->cmap = XCreateColormap(image_info->display,						 RootWindow(image_info->display, image_info->screen_num),						 image_info->x_visual_info->visual,						 AllocNone);	      image_info->cmap_alloced = TRUE;	    }	  if (!xlib_rgb_do_colormaps ())	    {	      image_info->cmap = XCreateColormap(image_info->display,						 RootWindow(image_info->display, image_info->screen_num),						 image_info->x_visual_info->visual,						 AllocNone);	      image_info->cmap_alloced = TRUE;	      xlib_rgb_do_colormaps ();	    }	  if (xlib_rgb_verbose)	    printf ("color cube: %d x %d x %d\n",		    image_info->nred_shades,		    image_info->ngreen_shades,		    image_info->nblue_shades);	  if (!image_info->cmap_alloced)	      image_info->cmap = image_info->default_colormap;	}#ifdef ENABLE_GRAYSCALE      else if (image_info->x_visual_info->class == GrayScale)	{	  image_info->cmap = XCreateColormap(image_info->display,					     RootWindow(image_info->display, image_info->screen_num),					     image_info->x_visual_info->visual,					     AllocNone);	  xlib_rgb_set_gray_cmap (image_info->cmap);	  image_info->cmap_alloced = TRUE;     	}#endif      else	{	  /* Always install colormap in direct color. */	  if (image_info->x_visual_info->class != DirectColor && 	      image_info->x_visual_info->visualid == image_info->default_visualid->visualid)	    image_info->cmap = image_info->default_colormap;	  else	    {	      image_info->cmap = XCreateColormap(image_info->display,						 RootWindow(image_info->display, image_info->screen_num),						 image_info->x_visual_info->visual,						 AllocNone);	      image_info->cmap_alloced = TRUE;	    }	}      image_info->bitmap = (image_info->x_visual_info->depth == 1);      for (i = 0; i < N_IMAGES; i++) {	if (image_info->bitmap) {	  /* Use malloc() instead of g_malloc since X will free() this mem */	  static_image[i] = XCreateImage(image_info->display,					 image_info->x_visual_info->visual,					 1,					 XYBitmap,					 0, NULL, IMAGE_WIDTH, IMAGE_HEIGHT,					 8,					 0);	  static_image[i]->data = malloc(IMAGE_WIDTH * IMAGE_HEIGHT >> 3);	  static_image[i]->bitmap_bit_order = MSBFirst;	  static_image[i]->byte_order = MSBFirst;	}	else {	  static_image[i] = XCreateImage(image_info->display,					 image_info->x_visual_info->visual,					 (unsigned int)image_info->x_visual_info->depth,					 ZPixmap,					 0, NULL,					 IMAGE_WIDTH,					 IMAGE_HEIGHT,					 32, 0);	  /* remove this when we are using shared memory.. */	  static_image[i]->data = malloc((size_t)IMAGE_WIDTH * IMAGE_HEIGHT * image_info->x_visual_info->depth);	  static_image[i]->bitmap_bit_order = MSBFirst;	  static_image[i]->byte_order = MSBFirst;	}      }      /* ok, so apparently, image_info->bpp is actually	 BYTES per pixel.  What fun! */      switch (static_image[0]->bits_per_pixel) {      case 1:      case 8:	image_info->bpp = 1;	break;      case 16:	image_info->bpp = 2;	break;      case 24:	image_info->bpp = 3;	break;      case 32:	image_info->bpp = 4;	break;      }      xlib_rgb_select_conv (static_image[0], MSB_FIRST);    }}/** * xlib_rgb_xpixel_from_rgb: * @rgb: 32-bit representation of an RGB value, specified as 0x00RRGGBB. *  * Converts an RGB triplet into the closest color that XlibRGB visual can * handle. *  * Return value: X pixel value that corresponds to the closest color in the * XlibRGB visual and colormap. **/unsigned longxlib_rgb_xpixel_from_rgb (guint32 rgb){  unsigned long pixel = 0;  if (image_info->bitmap)    {      return ((rgb & 0xff0000) >> 16) +	((rgb & 0xff00) >> 7) +	(rgb & 0xff) > 510;    }  else if (image_info->x_visual_info->class == PseudoColor)    pixel = colorcube[((rgb & 0xf00000) >> 12) |		     ((rgb & 0xf000) >> 8) |		     ((rgb & 0xf0) >> 4)];  else if (image_info->x_visual_info->depth < 8 &&	   image_info->x_visual_info->class == StaticColor)    {      pixel = colorcube_d[((rgb & 0x800000) >> 17) |			 ((rgb & 0x8000) >> 12) |			 ((rgb & 0x80) >> 7)];    }  else if (image_info->x_visual_info->class == TrueColor ||	   image_info->x_visual_info->class == DirectColor)    {#ifdef VERBOSE      printf ("shift, prec: r %d %d g %d %d b %d %d\n",	      image_info->red_shift,	      image_info->red_prec,	      image_info->green_shift,	      image_info->green_prec,	      image_info->blue_shift,	      image_info->blue_prec);#endif      pixel = (((((rgb & 0xff0000) >> 16) >>		 (8 - image_info->red_prec)) <<		image_info->red_shift) +	       ((((rgb & 0xff00) >> 8)  >>		 (8 - image_info->green_prec)) <<		image_info->green_shift) +

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品白丝在线| 日韩精品一区在线观看| 色悠悠亚洲一区二区| www.激情成人| 精品视频一区二区三区免费| 欧美在线你懂的| 91麻豆精品国产自产在线观看一区| 8x福利精品第一导航| 久久久久青草大香线综合精品| 国产精品免费av| 亚洲一区在线视频观看| 久久精品国内一区二区三区| 成人毛片老司机大片| 欧美性欧美巨大黑白大战| www成人在线观看| 亚洲国产日韩综合久久精品| 奇米色777欧美一区二区| 99国产精品国产精品久久| 91精品国产综合久久精品麻豆| 久久久精品免费免费| 一区二区三区免费网站| 国产一区二区不卡在线| 欧美中文字幕亚洲一区二区va在线 | 欧美精品成人一区二区三区四区| 中文字幕不卡在线观看| 裸体一区二区三区| 欧美日韩国产片| 夜夜精品视频一区二区| 成人国产在线观看| 欧美国产一区在线| 成人精品视频一区二区三区 | 一区二区久久久久久| 国产成人三级在线观看| 日韩欧美国产综合在线一区二区三区| 亚洲美女电影在线| 99国产精品久久久久| 国产精品视频免费看| 国产福利精品一区二区| 国产婷婷色一区二区三区在线| 九色|91porny| 亚洲国产精品v| av成人免费在线| 亚洲免费毛片网站| 8x福利精品第一导航| 三级一区在线视频先锋| 精品乱码亚洲一区二区不卡| 国内精品第一页| 国产精品久久久一本精品| 91麻豆福利精品推荐| 日日夜夜精品免费视频| 久久一二三国产| 91麻豆国产福利在线观看| 亚洲另类色综合网站| 97se亚洲国产综合自在线不卡 | www.99精品| 午夜精品成人在线视频| 久久久电影一区二区三区| av成人免费在线观看| 日韩电影一区二区三区四区| 国产丝袜在线精品| 9191国产精品| 91福利小视频| av中文字幕一区| 久久99国产精品久久| 亚洲午夜久久久久久久久电影网| www国产成人| 欧美mv日韩mv国产网站app| 91美女福利视频| 不卡一区中文字幕| 国内精品伊人久久久久影院对白| 午夜视频在线观看一区二区三区| 国产精品久久久久永久免费观看 | 成人免费福利片| 国产成人8x视频一区二区| 久久精品国产一区二区| 亚洲444eee在线观看| 亚洲午夜免费福利视频| 国产精品久久久久久久久免费丝袜 | 日韩精品中午字幕| 911精品产国品一二三产区| 欧美视频一区二| 99精品欧美一区二区三区小说| 精品一区二区三区香蕉蜜桃| 国产麻豆精品在线观看| 国产盗摄视频一区二区三区| 成熟亚洲日本毛茸茸凸凹| 国产精品 欧美精品| 成人夜色视频网站在线观看| 日本中文字幕一区| 日日夜夜精品视频免费| 乱中年女人伦av一区二区| 日本va欧美va精品| 国产麻豆精品95视频| 波多野洁衣一区| 欧美乱熟臀69xxxxxx| 日韩欧美国产综合| 久久久久国产成人精品亚洲午夜| 久久久噜噜噜久久人人看 | 国产一区二区精品久久| 国产精品一区二区x88av| 99精品桃花视频在线观看| 色狠狠综合天天综合综合| 欧美精品aⅴ在线视频| 91精品国产免费久久综合| 日本一区二区三区在线不卡 | 成人动漫中文字幕| 欧美日韩一区高清| 国产午夜精品一区二区三区视频 | 久久这里都是精品| 婷婷一区二区三区| www.色精品| 中文字幕一区二区日韩精品绯色| 三级影片在线观看欧美日韩一区二区| 极品美女销魂一区二区三区| 欧美精选午夜久久久乱码6080| 欧美激情一区二区三区在线| 亚洲成人三级小说| 91麻豆免费看| 亚洲一区在线观看免费| 色婷婷综合五月| 综合久久久久综合| 91在线精品一区二区| 久久久久久99精品| 国产精品亚洲第一区在线暖暖韩国 | 国产精品18久久久久久久久| 欧美精品亚洲二区| 午夜亚洲国产au精品一区二区| 一本一道久久a久久精品| 国产精品国产三级国产专播品爱网 | 日本麻豆一区二区三区视频| 久久久久久久综合色一本| 国产精品资源网| 久久精品亚洲精品国产欧美kt∨| 韩国中文字幕2020精品| 久久精品在线免费观看| 丁香天五香天堂综合| 亚洲视频一区在线观看| 色综合久久99| 午夜精品久久久久久久久久 | 亚洲成人综合视频| 欧美一区二区三区的| 国产综合一区二区| 国产偷国产偷精品高清尤物| 91网页版在线| 午夜国产精品一区| 国产欧美日韩在线| 欧美日韩综合在线免费观看| 免费观看日韩av| 亚洲色图19p| 欧美成人bangbros| 97久久精品人人爽人人爽蜜臀| 亚洲成av人片一区二区梦乃| 久久夜色精品国产噜噜av| 91福利在线观看| 99精品视频在线观看免费| 亚洲香蕉伊在人在线观| 久久久国产精品麻豆| 91精品国产综合久久福利| 91搞黄在线观看| 99久久精品国产麻豆演员表| 精品写真视频在线观看| 亚洲国产成人porn| 亚洲欧美日韩在线不卡| 中文字幕精品一区| 精品国产一区二区精华| 欧美日韩中字一区| 99精品欧美一区二区三区小说| 国产高清精品久久久久| 97精品超碰一区二区三区| 99国产精品国产精品久久| 99视频精品免费视频| 懂色av一区二区在线播放| 国产精品综合在线视频| 精品制服美女丁香| 福利电影一区二区| 成人精品电影在线观看| 成人一区二区三区| 成人av影院在线| 欧美午夜片在线看| 欧美一级二级在线观看| 日韩精品资源二区在线| 久久精品亚洲一区二区三区浴池| 久久九九久精品国产免费直播| 国产欧美日韩在线| 国产精品久久久99| 亚洲国产视频在线| 国产在线播放一区| 色av成人天堂桃色av| 欧美一区二区私人影院日本| 精品免费一区二区三区| 中文欧美字幕免费| 亚洲电影欧美电影有声小说| 韩国av一区二区三区在线观看| 懂色av一区二区夜夜嗨| 欧美日韩精品三区| 国产亚洲精久久久久久| 亚洲精品免费电影| 国产一区二区三区国产| 欧美亚洲精品一区| 久久久精品免费免费|