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

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

?? gray.c

?? MPEG2 PLAYER in linux
?? C
字號:
/* * gray.c -- * *      More procedures to dither grey-scale images. * *//* * Copyright (c) 1995 The Regents of the University of California. * All rights reserved. *  * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement is * hereby granted, provided that the above copyright notice and the following * two paragraphs appear in all copies of this software. *  * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *  * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */#include "video.h"#include "proto.h"#include "dither.h"/* *-------------------------------------------------------------- * * GrayDitherImage -- * *	Dithers image into 128 gray scales. Simply maps luminance *      value into 1 of 128 gray scale colors (divide by two, essentially). * * Results: *	None. * * Side effects: *	None. * *-------------------------------------------------------------- */voidGrayDitherImage(lum, cr, cb, out, h, w)    unsigned char *lum;    unsigned char *cr;    unsigned char *cb;    unsigned char *out;    int w, h;{  int i, max = w*h/16;  for (i=0; i<max; i++) {    out[0] = pixel[lum[0]];    out[1] = pixel[lum[1]];    out[2] = pixel[lum[2]];    out[3] = pixel[lum[3]];    out[4] = pixel[lum[4]];    out[5] = pixel[lum[5]];    out[6] = pixel[lum[6]];    out[7] = pixel[lum[7]];    out[8] = pixel[lum[8]];    out[9] = pixel[lum[9]];    out[10] = pixel[lum[10]];    out[11] = pixel[lum[11]];    out[12] = pixel[lum[12]];    out[13] = pixel[lum[13]];    out[14] = pixel[lum[14]];    out[15] = pixel[lum[15]];    out += 16;    lum += 16;  }}voidGray16DitherImage(lum, cr, cb, p_out, h, w)    unsigned char *lum;    unsigned char *cr;    unsigned char *cb;    unsigned char *p_out;    int w, h;{  unsigned short *out = (unsigned short *)p_out;  int i, max = w*h/16;  for (i=0; i<max; i++) {    out[0] = wpixel[lum[0]];    out[1] = wpixel[lum[1]];    out[2] = wpixel[lum[2]];    out[3] = wpixel[lum[3]];    out[4] = wpixel[lum[4]];    out[5] = wpixel[lum[5]];    out[6] = wpixel[lum[6]];    out[7] = wpixel[lum[7]];    out[8] = wpixel[lum[8]];    out[9] = wpixel[lum[9]];    out[10] = wpixel[lum[10]];    out[11] = wpixel[lum[11]];    out[12] = wpixel[lum[12]];    out[13] = wpixel[lum[13]];    out[14] = wpixel[lum[14]];    out[15] = wpixel[lum[15]];    out += 16;    lum += 16;  }}voidGray32DitherImage(lum, cr, cb, p_out, h, w)    unsigned char *lum;    unsigned char *cr;    unsigned char *cb;    unsigned char *p_out;    int w, h;{  unsigned int *out = (unsigned int *)p_out;  int i, max = w*h/16;  for (i=0; i<max; i++) {    out[0] = wpixel[lum[0]];    out[1] = wpixel[lum[1]];    out[2] = wpixel[lum[2]];    out[3] = wpixel[lum[3]];    out[4] = wpixel[lum[4]];    out[5] = wpixel[lum[5]];    out[6] = wpixel[lum[6]];    out[7] = wpixel[lum[7]];    out[8] = wpixel[lum[8]];    out[9] = wpixel[lum[9]];    out[10] = wpixel[lum[10]];    out[11] = wpixel[lum[11]];    out[12] = wpixel[lum[12]];    out[13] = wpixel[lum[13]];    out[14] = wpixel[lum[14]];    out[15] = wpixel[lum[15]];    out += 16;    lum += 16;  }}/* *-------------------------------------------------------------- * * Gray2DitherImage -- * *	Dithers image into 128 gray scales. Simply maps luminance *      value into 1 of 128 gray scale colors (divide by two, essentially). * * Results: *	None. * * Side effects: *	None. * *-------------------------------------------------------------- */voidGray2DitherImage(lum, cr, cb, p_out, h, w)    unsigned char *lum;    unsigned char *cr;    unsigned char *cb;    unsigned char *p_out;    int w, h;{  int x, y;  unsigned short *out = (unsigned short *)p_out;  unsigned short *out2 = out + w;  for (y=0; y<h; y++) {    for (x=0; x<w; x+=16) {      out[0] = out2[0] = wpixel[lum[0]];      out[1] = out2[1] = wpixel[lum[1]];      out[2] = out2[2] = wpixel[lum[2]];      out[3] = out2[3] = wpixel[lum[3]];      out[4] = out2[4] = wpixel[lum[4]];      out[5] = out2[5] = wpixel[lum[5]];      out[6] = out2[6] = wpixel[lum[6]];      out[7] = out2[7] = wpixel[lum[7]];      out[8] = out2[8] = wpixel[lum[8]];      out[9] = out2[9] = wpixel[lum[9]];      out[10] = out2[10] = wpixel[lum[10]];      out[11] = out2[11] = wpixel[lum[11]];      out[12] = out2[12] = wpixel[lum[12]];      out[13] = out2[13] = wpixel[lum[13]];      out[14] = out2[14] = wpixel[lum[14]];      out[15] = out2[15] = wpixel[lum[15]];      out += 16;      out2 += 16;      lum += 16;    }  out += w;  out2 += w;  }}voidGray216DitherImage(lum, cr, cb, p_out, h, w)    unsigned char *lum;    unsigned char *cr;    unsigned char *cb;    unsigned char *p_out;    int w, h;{  int x, y;  unsigned int *out = (unsigned int *)p_out;  unsigned int *out2 = out + w;  for (y=0; y<h; y++) {    for (x=0; x<w; x+=16) {      out[0] = out2[0] = wpixel[lum[0]];      out[1] = out2[1] = wpixel[lum[1]];      out[2] = out2[2] = wpixel[lum[2]];      out[3] = out2[3] = wpixel[lum[3]];      out[4] = out2[4] = wpixel[lum[4]];      out[5] = out2[5] = wpixel[lum[5]];      out[6] = out2[6] = wpixel[lum[6]];      out[7] = out2[7] = wpixel[lum[7]];      out[8] = out2[8] = wpixel[lum[8]];      out[9] = out2[9] = wpixel[lum[9]];      out[10] = out2[10] = wpixel[lum[10]];      out[11] = out2[11] = wpixel[lum[11]];      out[12] = out2[12] = wpixel[lum[12]];      out[13] = out2[13] = wpixel[lum[13]];      out[14] = out2[14] = wpixel[lum[14]];      out[15] = out2[15] = wpixel[lum[15]];      out += 16;      out2 += 16;      lum += 16;    }  out += w;  out2 += w;  }}#ifndef SIXTYFOUR_BITvoidGray232DitherImage(lum, cr, cb, p_out, h, w)    unsigned char *lum;    unsigned char *cr;    unsigned char *cb;    unsigned char *p_out;    int w, h;{  int x, y;  unsigned int *out = (unsigned int *)p_out;  unsigned int *out2 = out + w * 2;  for (y=0; y<h; y++) {    for (x=0; x<w; x+=16) {      out[0] = out2[0] = out[1] = out2[1] = wpixel[lum[0]];      out[2] = out2[2] = out[3] = out2[3] = wpixel[lum[1]];      out[4] = out2[4] = out[5] = out2[5] = wpixel[lum[2]];      out[6] = out2[6] = out[7] = out2[7] = wpixel[lum[3]];      out[8] = out2[8] = out[9] = out2[9] = wpixel[lum[4]];      out[10] = out2[10] = out[11] = out2[11] = wpixel[lum[5]];      out[12] = out2[12] = out[13] = out2[13] = wpixel[lum[6]];      out[14] = out2[14] = out[15] = out2[15] = wpixel[lum[7]];      out[16] = out2[16] = out[17] = out2[17] = wpixel[lum[8]];      out[18] = out2[18] = out[19] = out2[19] = wpixel[lum[9]];      out[20] = out2[20] = out[21] = out2[21] = wpixel[lum[10]];      out[22] = out2[22] = out[23] = out2[23] = wpixel[lum[11]];      out[24] = out2[24] = out[25] = out2[25] = wpixel[lum[12]];      out[26] = out2[26] = out[27] = out2[27] = wpixel[lum[13]];      out[28] = out2[28] = out[29] = out2[29] = wpixel[lum[14]];      out[30] = out2[30] = out[31] = out2[31] = wpixel[lum[15]];      out += 32;      out2 += 32;      lum += 16;    }  out += w * 2;  out2 += w * 2;  }}#else /* def SIXTYFOUR_BIT */voidGray232DitherImage(lum, cr, cb, p_out, h, w)    unsigned char *lum;    unsigned char *cr;    unsigned char *cb;    unsigned char *p_out;    int w, h;{  int x, y;  unsigned long *out = (unsigned long *)p_out;  unsigned long *out2 = out + w;  for (y=0; y<h; y++) {    for (x=0; x<w; x+=16) {      out[0] = out2[0]   = wpixel[lum[0]];      out[2] = out2[2]   = wpixel[lum[1]];      out[4] = out2[4]   = wpixel[lum[2]];      out[6] = out2[6]   = wpixel[lum[3]];      out[8] = out2[8]   = wpixel[lum[4]];      out[10] = out2[10] = wpixel[lum[5]];      out[12] = out2[12] = wpixel[lum[6]];      out[14] = out2[14] = wpixel[lum[7]];      out[16] = out2[16] = wpixel[lum[8]];      out[18] = out2[18] = wpixel[lum[9]];      out[20] = out2[20] = wpixel[lum[10]];      out[22] = out2[22] = wpixel[lum[11]];      out[24] = out2[24] = wpixel[lum[12]];      out[26] = out2[26] = wpixel[lum[13]];      out[28] = out2[28] = wpixel[lum[14]];      out[30] = out2[30] = wpixel[lum[15]];      out += 16;      out2 += 16;      lum += 16;    }  out += w;  out2 += w;  }}#endif /* def SIXTYFOUR_BIT */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一级欧美一级| www.久久久久久久久| 亚洲欧美偷拍卡通变态| 1024国产精品| 一区二区三区在线视频免费| 亚洲精品乱码久久久久久日本蜜臀| 中文子幕无线码一区tr| 中文久久乱码一区二区| 成人欧美一区二区三区视频网页 | 欧美久久久久久久久| 欧美区在线观看| 精品久久久久久久久久久久久久久久久| 538prom精品视频线放| 精品美女在线播放| 久久综合国产精品| 日韩一区在线免费观看| 亚洲一区二区三区小说| 琪琪久久久久日韩精品| 国产乱码精品一区二区三区忘忧草| 国产精品1区2区| 91免费观看在线| 7777精品伊人久久久大香线蕉最新版| 欧美成人一区二区三区片免费| 久久久久久久久久久久久久久99| 中文字幕中文字幕一区| 亚洲一级二级在线| 国内精品国产三级国产a久久| 99久久婷婷国产综合精品| 精品视频999| 国产日韩欧美在线一区| 亚洲午夜在线电影| 国产精品正在播放| 欧美日韩精品一区二区在线播放| 欧美xxxx在线观看| 亚洲欧美国产三级| 国内精品免费**视频| 91免费观看视频| 久久欧美一区二区| 亚洲一二三四在线观看| 成人在线一区二区三区| 欧美三电影在线| 国产精品女人毛片| 久久av老司机精品网站导航| 日本久久一区二区| 国产精品―色哟哟| 美脚の诱脚舐め脚责91| 欧美中文字幕一区二区三区 | 麻豆一区二区三| 欧美在线一区二区| 国产精品毛片无遮挡高清| 蜜桃视频在线观看一区| 欧美性生活大片视频| 最新中文字幕一区二区三区 | 成人福利视频网站| 精品少妇一区二区三区视频免付费 | 欧美国产精品中文字幕| 蜜桃久久精品一区二区| 欧美日韩中文另类| 亚洲精品你懂的| 91网上在线视频| 国产亚洲精品超碰| 精彩视频一区二区三区| 欧美日韩一区二区在线视频| 亚洲视频综合在线| 成人手机在线视频| 中文字幕乱码日本亚洲一区二区| 九九精品视频在线看| 3d成人h动漫网站入口| 亚洲成av人片在线观看无码| 91久久精品一区二区二区| 亚洲手机成人高清视频| 91美女在线视频| 亚洲激情欧美激情| 欧美亚洲免费在线一区| 亚洲3atv精品一区二区三区| 欧亚洲嫩模精品一区三区| 亚洲小说春色综合另类电影| 色爱区综合激月婷婷| 亚洲最大成人网4388xx| 91黄色免费看| 首页国产欧美久久| 日韩精品一区二区三区在线观看| 狠狠色丁香九九婷婷综合五月| 精品乱人伦一区二区三区| 国产一区欧美一区| 中文av字幕一区| 欧美写真视频网站| 蜜臀av性久久久久蜜臀aⅴ | 精品国产1区2区3区| 国产精品亚洲成人| 亚洲精品一二三| 5566中文字幕一区二区电影| 久久精品久久久精品美女| 国产女主播一区| 日本韩国一区二区三区视频| 亚洲国产欧美在线| 久久久精品欧美丰满| 一本色道久久综合亚洲aⅴ蜜桃| 亚洲成a人片在线不卡一二三区| 日韩区在线观看| 91在线视频在线| 毛片av一区二区| 亚洲另类一区二区| 日韩午夜精品视频| 一本到不卡精品视频在线观看| 日韩国产欧美一区二区三区| 国产清纯美女被跳蛋高潮一区二区久久w| gogo大胆日本视频一区| 日本午夜一区二区| 亚洲婷婷综合色高清在线| 欧美理论电影在线| 丁香婷婷深情五月亚洲| 五月婷婷激情综合| 国产精品第13页| 精品日韩一区二区| 欧美日韩国产精品成人| www.日本不卡| 精品一区二区久久| 午夜视频在线观看一区二区 | 国产在线播放一区二区三区| 亚洲精品成人少妇| 欧美激情在线一区二区| 欧美日韩中文精品| 色偷偷成人一区二区三区91| 精品一区二区三区在线观看| 亚洲大片一区二区三区| 亚洲欧洲三级电影| 久久久高清一区二区三区| 欧美一区二区三区免费在线看 | 国产a视频精品免费观看| 美女视频黄 久久| 亚洲www啪成人一区二区麻豆 | 久久精品久久99精品久久| 一区二区三区在线观看国产| 国产清纯美女被跳蛋高潮一区二区久久w | 91黄色免费看| 91蜜桃免费观看视频| 99久久国产综合精品麻豆| 丰满白嫩尤物一区二区| 国产尤物一区二区在线 | 欧美高清在线精品一区| 精品国产凹凸成av人网站| 日韩视频123| 欧美一区二区三区视频免费 | 欧美亚洲国产一区在线观看网站| 不卡的av电影在线观看| 福利一区福利二区| 福利一区二区在线观看| 成人高清伦理免费影院在线观看| 国产九九视频一区二区三区| 国产精品一卡二卡在线观看| 韩国视频一区二区| 国产高清久久久| 丁香一区二区三区| 一本久久a久久精品亚洲| 91麻豆福利精品推荐| 欧美亚洲动漫精品| 欧美精品乱码久久久久久| 91精品欧美一区二区三区综合在 | 久国产精品韩国三级视频| 日本午夜精品一区二区三区电影| 奇米综合一区二区三区精品视频| 免费亚洲电影在线| 国产在线精品一区在线观看麻豆| 狠狠色丁香久久婷婷综| 国产夫妻精品视频| 色综合欧美在线| 欧美一区二区视频网站| 久久综合国产精品| 亚洲人成影院在线观看| 性做久久久久久免费观看| 久久国产麻豆精品| 成人综合激情网| 欧美日韩精品系列| 久久精品夜色噜噜亚洲a∨| 国产精品免费网站在线观看| 亚洲综合免费观看高清在线观看| 日韩福利视频导航| 成人精品视频.| 欧美喷水一区二区| 国产精品色哟哟| 日本中文字幕一区二区有限公司| 精品制服美女丁香| 91麻豆免费观看| 日韩精品一区二区三区视频播放 | 中文字幕一区二区5566日韩| 一区二区三区欧美日韩| 蜜桃av一区二区在线观看| av在线免费不卡| 日韩一区二区在线观看视频| 中文字幕不卡的av| 日本亚洲最大的色成网站www| 国产成a人亚洲| 在线播放日韩导航| 中文字幕亚洲不卡| 九九热在线视频观看这里只有精品| 色综合色综合色综合| 国产午夜精品一区二区| 日韩精品成人一区二区在线| 播五月开心婷婷综合|