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

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

?? gdk-pixbuf-xlibrgb.c

?? linux下電話本所依賴的一些圖形庫
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "MPL"); you may not use this file except in * compliance with the MPL.  You may obtain a copy of the MPL at * http://www.mozilla.org/MPL/ * * Software distributed under the MPL is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL * for the specific language governing rights and limitations under the * MPL. * * Alternatively, the contents of this file may be used under the * terms of the GNU Library General Public License (the "LGPL"), in * which case the provisions of the LGPL are applicable instead of * those above.  If you wish to allow use of your version of this file * only under the terms of the LGPL and not to allow others to use * your version of this file under the MPL, indicate your decision by * deleting the provisions above and replace them with the notice and * other provisions required by the LGPL.  If you do not delete the * provisions above, a recipient may use your version of this file * under either the MPL or the LGPL. *//* * This code is derived from GdkRgb. * For more information on GdkRgb, see http://www.levien.com/gdkrgb/ * Raph Levien <raph@acm.org> *//* Ported by Christopher Blizzard to Xlib.  With permission from the * original authors and the copyright holders of this file, the * contents of this file are also redistributable under the terms of * the Mozilla Public license.  For information about the Mozilla * Public License, please see the license information at * http://www.mozilla.org/MPL/ *//* This code is copyright the following authors: * Raph Levien          <raph@acm.org> * Manish Singh         <manish@gtk.org> * Tim Janik            <timj@gtk.org> * Peter Mattis         <petm@xcf.berkeley.edu> * Spencer Kimball      <spencer@xcf.berkeley.edu> * Josh MacDonald       <jmacd@xcf.berkeley.edu> * Christopher Blizzard <blizzard@redhat.com> * Owen Taylor          <otaylor@redhat.com> * Shawn T. Amundson    <amundson@gtk.org>*/#if HAVE_CONFIG_H#  include <config.h>#  if STDC_HEADERS#    include <stdio.h>#    include <stdlib.h>#    include <string.h>#  endif#else#  include <stdio.h>#  include <stdlib.h>#endif#include <math.h>#define ENABLE_GRAYSCALE/* include this before so that we can get endian definitions if   they are there... */#include "gdk-pixbuf-xlibrgb.h"#ifndef MIN#define MIN(a, b)  (((a) < (b)) ? (a) : (b))#endif#ifndef MAX#define MAX(a, b)  (((a) > (b)) ? (a) : (b))#endiftypedef enum {  LSB_FIRST,  MSB_FIRST} ByteOrder;typedef struct _XlibRgbInfo   XlibRgbInfo;typedef void (*XlibRgbConvFunc) (XImage *image,				 int ax, int ay,				 int width, int height,				 unsigned char *buf, int rowstride,				 int x_align, int y_align,				 XlibRgbCmap *cmap);/* Some of these fields should go, as they're not being used at all.   Globals should generally migrate into here - it's very likely that   we'll want to run more than one GdkRgbInfo context at the same time   (i.e. some but not all windows have privately installed   colormaps). */struct _XlibRgbInfo{  Display          *display;  Screen           *screen;  int               screen_num;  XVisualInfo      *x_visual_info;  Colormap          cmap;  XColor           *cmap_colors;  Visual           *default_visualid;  Colormap          default_colormap;  unsigned long    *color_pixels;  unsigned long    *gray_pixels;  unsigned long    *reserved_pixels;  unsigned long     red_shift;  unsigned long     red_prec;  unsigned long     blue_shift;  unsigned long     blue_prec;  unsigned long     green_shift;  unsigned long     green_prec;  unsigned int      nred_shades;  unsigned int      ngreen_shades;  unsigned int      nblue_shades;  unsigned int      ngray_shades;  unsigned int      nreserved;  unsigned int      bpp;  unsigned int      cmap_alloced;  double            gamma_val;  /* Generally, the stage buffer is used to convert 32bit RGB, gray,     and indexed images into 24 bit packed RGB. */  unsigned char *stage_buf;  XlibRgbCmap *gray_cmap;  Bool dith_default;  Bool bitmap; /* set true if in 1 bit per pixel mode */  GC own_gc;  /* Convert functions */  XlibRgbConvFunc conv;  XlibRgbConvFunc conv_d;  XlibRgbConvFunc conv_32;  XlibRgbConvFunc conv_32_d;  XlibRgbConvFunc conv_gray;  XlibRgbConvFunc conv_gray_d;  XlibRgbConvFunc conv_indexed;  XlibRgbConvFunc conv_indexed_d;};static Bool xlib_rgb_install_cmap = FALSE;static int xlib_rgb_min_colors = 5 * 5 * 5;static Bool xlib_rgb_verbose = FALSE;#define IMAGE_WIDTH 256#define STAGE_ROWSTRIDE (IMAGE_WIDTH * 3)#define IMAGE_HEIGHT 64#define N_IMAGES 6static XlibRgbInfo *image_info = NULL;static XImage *static_image[N_IMAGES];static int static_image_idx;static unsigned char *colorcube;static unsigned char *colorcube_d;static unsigned longxlib_get_prec_from_mask(unsigned long val){  unsigned long retval = 0;  unsigned int cur_bit = 0;  /* walk through the number, incrementing the value if     the bit in question is set. */  while (cur_bit < (sizeof(unsigned long) * 8)) {    if ((val >> cur_bit) & 0x1) {      retval++;    }    cur_bit++;  }  return retval;}static unsigned longxlib_get_shift_from_mask(unsigned long val){  unsigned long cur_bit = 0;  /* walk through the number, looking for the first 1 */  while (cur_bit < (sizeof(unsigned long) * 8)) {    if ((val >> cur_bit) & 0x1) {      return cur_bit;    }    cur_bit++;  }  return cur_bit;}static intxlib_rgb_cmap_fail (const char *msg, Colormap cmap, unsigned long *pixels){  unsigned long free_pixels[256];  int n_free;  int i;#ifdef VERBOSE  printf ("%s", msg);#endif  n_free = 0;  for (i = 0; i < 256; i++)    if (pixels[i] < 256)      free_pixels[n_free++] = pixels[i];    if (n_free)    XFreeColors(image_info->display,		cmap,		free_pixels,		n_free,		0);  return 0;}static voidxlib_rgb_make_colorcube (unsigned long *pixels, int nr, int ng, int nb){  unsigned char rt[16], gt[16], bt[16];  int i;  colorcube = malloc(sizeof(unsigned char) * 4096);  memset(colorcube, 0, (sizeof(unsigned char) * 4096));  for (i = 0; i < 16; i++)    {      rt[i] = ng * nb * ((i * 17 * (nr - 1) + 128) >> 8);      gt[i] = nb * ((i * 17 * (ng - 1) + 128) >> 8);      bt[i] = ((i * 17 * (nb - 1) + 128) >> 8);    }  for (i = 0; i < 4096; i++)    {      colorcube[i] = pixels[rt[i >> 8] + gt[(i >> 4) & 0x0f] + bt[i & 0x0f]];#ifdef VERBOSE      printf ("%03x %02x %x %x %x\n", i, colorcube[i], rt[i >> 8], gt[(i >> 4) & 0x0f], bt[i & 0x0f]);#endif    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人在线视频网站| 欧美色大人视频| 在线观看av一区| 91精品国产综合久久福利| 欧美激情一区二区三区在线| 天天影视涩香欲综合网| voyeur盗摄精品| 久久一区二区视频| 人禽交欧美网站| 欧美三区在线观看| 亚洲欧美日韩系列| 成人免费看的视频| 欧美zozo另类异族| 蜜乳av一区二区三区| 欧美午夜精品久久久| 中文字幕一区二区在线观看| 韩国中文字幕2020精品| 欧美一区二区三区在| 亚洲一级二级在线| 欧亚洲嫩模精品一区三区| 国产精品久久久久天堂| 国产风韵犹存在线视精品| 日韩精品一区二| 美女免费视频一区二区| 欧美狂野另类xxxxoooo| 亚洲成人动漫av| 欧美三级电影精品| 亚洲va欧美va天堂v国产综合| 91久久精品一区二区| 亚洲国产成人私人影院tom| 国产一区二区三区免费看| 日韩欧美一级二级三级| 麻豆91精品视频| 欧美精品一区二区久久婷婷| 激情都市一区二区| 久久久久久久性| 成人高清免费观看| 中文字幕一区二区三区在线不卡| 成人h精品动漫一区二区三区| 国产精品私人自拍| 91在线一区二区三区| 亚洲靠逼com| 欧美高清性hdvideosex| 久久精品噜噜噜成人av农村| 欧美岛国在线观看| 国产成人综合亚洲91猫咪| 国产亚洲一区二区三区在线观看| 国产成人免费视频网站| 综合欧美亚洲日本| 欧美日韩在线电影| 美日韩一区二区三区| 久久精品亚洲精品国产欧美kt∨| www.日韩av| 午夜成人在线视频| 精品88久久久久88久久久| 国产成人在线看| 亚洲精品国产精华液| 欧美精品自拍偷拍| 国产精品一区二区久久不卡 | 亚洲欧美综合色| 日本精品视频一区二区| 免费观看久久久4p| 国产精品久久久久影院亚瑟| 欧美久久婷婷综合色| 国产精品亚洲综合一区在线观看| 亚洲黄一区二区三区| 欧美电视剧在线看免费| av一区二区三区在线| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产欧美日韩三级| 欧美久久久久久久久| 国产成人av电影在线| 五月天一区二区| 国产欧美日产一区| 91精品国产综合久久久久久久久久 | 日本人妖一区二区| 国产精品毛片久久久久久| 欧美日韩一卡二卡| 高清日韩电视剧大全免费| 丝袜亚洲另类丝袜在线| 中文成人综合网| 日韩欧美在线网站| 欧美伊人久久大香线蕉综合69| 国产剧情一区二区| 日韩福利视频导航| 伊人婷婷欧美激情| 中文字幕欧美国产| 精品盗摄一区二区三区| 欧美综合欧美视频| 99精品欧美一区二区蜜桃免费| 免费欧美日韩国产三级电影| 亚洲精品视频在线看| 国产欧美一区二区精品仙草咪| 欧美一级理论性理论a| 日本精品一区二区三区高清 | 精品一区二区在线看| 香蕉乱码成人久久天堂爱免费| 国产精品无人区| 久久美女艺术照精彩视频福利播放| 制服视频三区第一页精品| 日本道免费精品一区二区三区| 丁香婷婷深情五月亚洲| 国精产品一区一区三区mba视频| 日本在线观看不卡视频| 天堂蜜桃一区二区三区| 性感美女极品91精品| 亚洲123区在线观看| 亚洲国产成人av网| 香港成人在线视频| 亚洲第一av色| 亚洲高清视频的网址| 亚洲国产精品欧美一二99| 一区二区在线观看免费视频播放| 国产精品短视频| 亚洲欧美自拍偷拍| 亚洲女子a中天字幕| 亚洲日本乱码在线观看| 日韩伦理电影网| 亚洲精品国久久99热| 一级中文字幕一区二区| 亚洲成人福利片| 麻豆一区二区三区| 国产综合久久久久影院| 国产91精品一区二区麻豆网站| 国产精品亚洲视频| 不卡的av网站| 91久久国产最好的精华液| 欧美亚州韩日在线看免费版国语版| 欧美少妇性性性| 欧美一卡二卡三卡| 久久久综合视频| 亚洲欧美综合另类在线卡通| 一区二区三区四区蜜桃| 无码av免费一区二区三区试看 | 成人aaaa免费全部观看| 日本高清不卡一区| 69堂精品视频| 久久久久综合网| 亚洲欧洲日韩在线| 石原莉奈在线亚洲二区| 国产传媒日韩欧美成人| 色拍拍在线精品视频8848| 欧美日韩国产一区| 国产亚洲1区2区3区| 亚洲欧美日韩精品久久久久| 日韩电影在线一区二区三区| 国产精品一区二区男女羞羞无遮挡 | 欧美日韩成人高清| 国产午夜精品理论片a级大结局| 日韩理论在线观看| 免费欧美在线视频| 99精品国产视频| 欧美一区二区成人| 亚洲视频在线一区| 欧美aaaaaa午夜精品| www.亚洲色图| 日韩欧美色综合| 一区二区三区欧美| 国产在线精品一区二区三区不卡| 91麻豆国产精品久久| 精品久久久久99| 亚洲黄一区二区三区| 国产酒店精品激情| 欧美精品亚洲一区二区在线播放| 国产区在线观看成人精品| 亚洲va欧美va人人爽午夜| proumb性欧美在线观看| 欧美大片免费久久精品三p| 一区二区三区免费网站| 国产精品一级二级三级| 欧美日韩成人在线| 亚洲精品综合在线| 成人网在线播放| 精品久久久久久久人人人人传媒| 亚洲国产精品自拍| 99免费精品视频| 日本一区二区三区免费乱视频| 蜜桃一区二区三区四区| 91亚洲男人天堂| 日本一区二区综合亚洲| 国产一区二区久久| 日韩久久免费av| 日本亚洲一区二区| 欧美日本一区二区三区| 亚洲一区视频在线| 在线观看中文字幕不卡| 亚洲免费观看高清完整版在线| 国产精品系列在线播放| 欧美tickling网站挠脚心| 日韩av不卡一区二区| 在线综合+亚洲+欧美中文字幕| 亚洲成人自拍一区| 欧美日韩成人在线一区| 五月天中文字幕一区二区| 欧美伊人久久大香线蕉综合69| 日本一道高清亚洲日美韩| 欧美性猛片xxxx免费看久爱| 亚洲午夜激情网站| 欧美视频在线一区二区三区 | fc2成人免费人成在线观看播放|