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

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

?? jdmerge.c

?? 在ecos 下mingui 的移植開發
?? C
字號:
#define JPEG_INTERNALS#include "jpeglib.h"#ifdef UPSAMPLE_MERGING_SUPPORTED/* Private subobject */typedef struct {  struct jpeg_upsampler pub;	/* public fields */  /* Pointer to routine to do actual upsampling/conversion of one row group */  JMETHOD(void, upmethod, (j_decompress_ptr cinfo,			   JSAMPIMAGE input_buf, JDIMENSION in_row_group_ctr,			   JSAMPARRAY output_buf));  /* Private state for YCC->RGB conversion */  int * Cr_r_tab;		/* => table for Cr to R conversion */  int * Cb_b_tab;		/* => table for Cb to B conversion */  INT32 * Cr_g_tab;		/* => table for Cr to G conversion */  INT32 * Cb_g_tab;		/* => table for Cb to G conversion */  /* For 2:1 vertical sampling, we produce two output rows at a time.   * We need a "spare" row buffer to hold the second output row if the   * application provides just a one-row buffer; we also use the spare   * to discard the dummy last row if the image height is odd.   */  JSAMPROW spare_row;  boolean spare_full;		/* T if spare buffer is occupied */  JDIMENSION out_row_width;	/* samples per output row */  JDIMENSION rows_to_go;	/* counts rows remaining in image */} my_upsampler;typedef my_upsampler * my_upsample_ptr;#define SCALEBITS	16	/* speediest right-shift on some machines */#define ONE_HALF	((INT32) 1 << (SCALEBITS-1))#define FIX(x)		((INT32) ((x) * (1L<<SCALEBITS) + 0.5))/* * Initialize tables for YCC->RGB colorspace conversion. * This is taken directly from jdcolor.c; see that file for more info. */LOCAL(void)build_ycc_rgb_table (j_decompress_ptr cinfo){  my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample;  int i;  INT32 x;  SHIFT_TEMPS  upsample->Cr_r_tab = (int *)    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,				(MAXJSAMPLE+1) * SIZEOF(int));  upsample->Cb_b_tab = (int *)    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,				(MAXJSAMPLE+1) * SIZEOF(int));  upsample->Cr_g_tab = (INT32 *)    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,				(MAXJSAMPLE+1) * SIZEOF(INT32));  upsample->Cb_g_tab = (INT32 *)    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,				(MAXJSAMPLE+1) * SIZEOF(INT32));  for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) {    /* i is the actual input pixel value, in the range 0..MAXJSAMPLE */    /* The Cb or Cr value we are thinking of is x = i - CENTERJSAMPLE */    /* Cr=>R value is nearest int to 1.40200 * x */    upsample->Cr_r_tab[i] = (int)		    RIGHT_SHIFT(FIX(1.40200) * x + ONE_HALF, SCALEBITS);    /* Cb=>B value is nearest int to 1.77200 * x */    upsample->Cb_b_tab[i] = (int)		    RIGHT_SHIFT(FIX(1.77200) * x + ONE_HALF, SCALEBITS);    /* Cr=>G value is scaled-up -0.71414 * x */    upsample->Cr_g_tab[i] = (- FIX(0.71414)) * x;    /* Cb=>G value is scaled-up -0.34414 * x */    /* We also add in ONE_HALF so that need not do it in inner loop */    upsample->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF;  }}/* * Initialize for an upsampling pass. */METHODDEF(void)start_pass_merged_upsample (j_decompress_ptr cinfo){  my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample;  /* Mark the spare buffer empty */  upsample->spare_full = FALSE;  /* Initialize total-height counter for detecting bottom of image */  upsample->rows_to_go = cinfo->output_height;}/* * Control routine to do upsampling (and color conversion). * * The control routine just handles the row buffering considerations. */METHODDEF(void)merged_2v_upsample (j_decompress_ptr cinfo,		    JSAMPIMAGE input_buf, JDIMENSION *in_row_group_ctr,		    JDIMENSION in_row_groups_avail,		    JSAMPARRAY output_buf, JDIMENSION *out_row_ctr,		    JDIMENSION out_rows_avail)/* 2:1 vertical sampling case: may need a spare row. */{  my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample;  JSAMPROW work_ptrs[2];  JDIMENSION num_rows;		/* number of rows returned to caller */  if (upsample->spare_full) {    /* If we have a spare row saved from a previous cycle, just return it. */    jcopy_sample_rows(& upsample->spare_row, 0, output_buf + *out_row_ctr, 0,		      1, upsample->out_row_width);    num_rows = 1;    upsample->spare_full = FALSE;  } else {    /* Figure number of rows to return to caller. */    num_rows = 2;    /* Not more than the distance to the end of the image. */    if (num_rows > upsample->rows_to_go)      num_rows = upsample->rows_to_go;    /* And not more than what the client can accept: */    out_rows_avail -= *out_row_ctr;    if (num_rows > out_rows_avail)      num_rows = out_rows_avail;    /* Create output pointer array for upsampler. */    work_ptrs[0] = output_buf[*out_row_ctr];    if (num_rows > 1) {      work_ptrs[1] = output_buf[*out_row_ctr + 1];    } else {      work_ptrs[1] = upsample->spare_row;      upsample->spare_full = TRUE;    }    /* Now do the upsampling. */    (*upsample->upmethod) (cinfo, input_buf, *in_row_group_ctr, work_ptrs);  }  /* Adjust counts */  *out_row_ctr += num_rows;  upsample->rows_to_go -= num_rows;  /* When the buffer is emptied, declare this input row group consumed */  if (! upsample->spare_full)    (*in_row_group_ctr)++;}METHODDEF(void)merged_1v_upsample (j_decompress_ptr cinfo,		    JSAMPIMAGE input_buf, JDIMENSION *in_row_group_ctr,		    JDIMENSION in_row_groups_avail,		    JSAMPARRAY output_buf, JDIMENSION *out_row_ctr,		    JDIMENSION out_rows_avail)/* 1:1 vertical sampling case: much easier, never need a spare row. */{  my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample;  /* Just do the upsampling. */  (*upsample->upmethod) (cinfo, input_buf, *in_row_group_ctr,			 output_buf + *out_row_ctr);  /* Adjust counts */  (*out_row_ctr)++;  (*in_row_group_ctr)++;}/* * These are the routines invoked by the control routines to do * the actual upsampling/conversion.  One row group is processed per call. * * Note: since we may be writing directly into application-supplied buffers, * we have to be honest about the output width; we can't assume the buffer * has been rounded up to an even width. *//* * Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical. */METHODDEF(void)h2v1_merged_upsample (j_decompress_ptr cinfo,		      JSAMPIMAGE input_buf, JDIMENSION in_row_group_ctr,		      JSAMPARRAY output_buf){  my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample;  register int y, cred, cgreen, cblue;  int cb, cr;  register JSAMPROW outptr;  JSAMPROW inptr0, inptr1, inptr2;  JDIMENSION col;  /* copy these pointers into registers if possible */  register JSAMPLE * range_limit = cinfo->sample_range_limit;  int * Crrtab = upsample->Cr_r_tab;  int * Cbbtab = upsample->Cb_b_tab;  INT32 * Crgtab = upsample->Cr_g_tab;  INT32 * Cbgtab = upsample->Cb_g_tab;  SHIFT_TEMPS  inptr0 = input_buf[0][in_row_group_ctr];  inptr1 = input_buf[1][in_row_group_ctr];  inptr2 = input_buf[2][in_row_group_ctr];  outptr = output_buf[0];  /* Loop for each pair of output pixels */  for (col = cinfo->output_width >> 1; col > 0; col--) {    /* Do the chroma part of the calculation */    cb = GETJSAMPLE(*inptr1++);    cr = GETJSAMPLE(*inptr2++);    cred = Crrtab[cr];    cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS);    cblue = Cbbtab[cb];    /* Fetch 2 Y values and emit 2 pixels */    y  = GETJSAMPLE(*inptr0++);    outptr[RGB_RED] =   range_limit[y + cred];    outptr[RGB_GREEN] = range_limit[y + cgreen];    outptr[RGB_BLUE] =  range_limit[y + cblue];    outptr += RGB_PIXELSIZE;    y  = GETJSAMPLE(*inptr0++);    outptr[RGB_RED] =   range_limit[y + cred];    outptr[RGB_GREEN] = range_limit[y + cgreen];    outptr[RGB_BLUE] =  range_limit[y + cblue];    outptr += RGB_PIXELSIZE;  }  /* If image width is odd, do the last output column separately */  if (cinfo->output_width & 1) {    cb = GETJSAMPLE(*inptr1);    cr = GETJSAMPLE(*inptr2);    cred = Crrtab[cr];    cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS);    cblue = Cbbtab[cb];    y  = GETJSAMPLE(*inptr0);    outptr[RGB_RED] =   range_limit[y + cred];    outptr[RGB_GREEN] = range_limit[y + cgreen];    outptr[RGB_BLUE] =  range_limit[y + cblue];  }}/* * Upsample and color convert for the case of 2:1 horizontal and 2:1 vertical. */METHODDEF(void)h2v2_merged_upsample (j_decompress_ptr cinfo,		      JSAMPIMAGE input_buf, JDIMENSION in_row_group_ctr,		      JSAMPARRAY output_buf){  my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample;  register int y, cred, cgreen, cblue;  int cb, cr;  register JSAMPROW outptr0, outptr1;  JSAMPROW inptr00, inptr01, inptr1, inptr2;  JDIMENSION col;  /* copy these pointers into registers if possible */  register JSAMPLE * range_limit = cinfo->sample_range_limit;  int * Crrtab = upsample->Cr_r_tab;  int * Cbbtab = upsample->Cb_b_tab;  INT32 * Crgtab = upsample->Cr_g_tab;  INT32 * Cbgtab = upsample->Cb_g_tab;  SHIFT_TEMPS  inptr00 = input_buf[0][in_row_group_ctr*2];  inptr01 = input_buf[0][in_row_group_ctr*2 + 1];  inptr1 = input_buf[1][in_row_group_ctr];  inptr2 = input_buf[2][in_row_group_ctr];  outptr0 = output_buf[0];  outptr1 = output_buf[1];  /* Loop for each group of output pixels */  for (col = cinfo->output_width >> 1; col > 0; col--) {    /* Do the chroma part of the calculation */    cb = GETJSAMPLE(*inptr1++);    cr = GETJSAMPLE(*inptr2++);    cred = Crrtab[cr];    cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS);    cblue = Cbbtab[cb];    /* Fetch 4 Y values and emit 4 pixels */    y  = GETJSAMPLE(*inptr00++);    outptr0[RGB_RED] =   range_limit[y + cred];    outptr0[RGB_GREEN] = range_limit[y + cgreen];    outptr0[RGB_BLUE] =  range_limit[y + cblue];    outptr0 += RGB_PIXELSIZE;    y  = GETJSAMPLE(*inptr00++);    outptr0[RGB_RED] =   range_limit[y + cred];    outptr0[RGB_GREEN] = range_limit[y + cgreen];    outptr0[RGB_BLUE] =  range_limit[y + cblue];    outptr0 += RGB_PIXELSIZE;    y  = GETJSAMPLE(*inptr01++);    outptr1[RGB_RED] =   range_limit[y + cred];    outptr1[RGB_GREEN] = range_limit[y + cgreen];    outptr1[RGB_BLUE] =  range_limit[y + cblue];    outptr1 += RGB_PIXELSIZE;    y  = GETJSAMPLE(*inptr01++);    outptr1[RGB_RED] =   range_limit[y + cred];    outptr1[RGB_GREEN] = range_limit[y + cgreen];    outptr1[RGB_BLUE] =  range_limit[y + cblue];    outptr1 += RGB_PIXELSIZE;  }  /* If image width is odd, do the last output column separately */  if (cinfo->output_width & 1) {    cb = GETJSAMPLE(*inptr1);    cr = GETJSAMPLE(*inptr2);    cred = Crrtab[cr];    cgreen = (int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS);    cblue = Cbbtab[cb];    y  = GETJSAMPLE(*inptr00);    outptr0[RGB_RED] =   range_limit[y + cred];    outptr0[RGB_GREEN] = range_limit[y + cgreen];    outptr0[RGB_BLUE] =  range_limit[y + cblue];    y  = GETJSAMPLE(*inptr01);    outptr1[RGB_RED] =   range_limit[y + cred];    outptr1[RGB_GREEN] = range_limit[y + cgreen];    outptr1[RGB_BLUE] =  range_limit[y + cblue];  }}/* * Module initialization routine for merged upsampling/color conversion. * * NB: this is called under the conditions determined by use_merged_upsample() * in jdmaster.c.  That routine MUST correspond to the actual capabilities * of this module; no safety checks are made here. */GLOBAL(void)jinit_merged_upsampler (j_decompress_ptr cinfo){  my_upsample_ptr upsample;  upsample = (my_upsample_ptr)    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,				SIZEOF(my_upsampler));  cinfo->upsample = (struct jpeg_upsampler *) upsample;  upsample->pub.start_pass = start_pass_merged_upsample;  upsample->pub.need_context_rows = FALSE;  upsample->out_row_width = cinfo->output_width * cinfo->out_color_components;  if (cinfo->max_v_samp_factor == 2) {    upsample->pub.upsample = merged_2v_upsample;    upsample->upmethod = h2v2_merged_upsample;    /* Allocate a spare row buffer */    upsample->spare_row = (JSAMPROW)      (*cinfo->mem->alloc_large) ((j_common_ptr) cinfo, JPOOL_IMAGE,		(size_t) (upsample->out_row_width * SIZEOF(JSAMPLE)));  } else {    upsample->pub.upsample = merged_1v_upsample;    upsample->upmethod = h2v1_merged_upsample;    /* No spare row needed */    upsample->spare_row = NULL;  }  build_ycc_rgb_table(cinfo);}#endif /* UPSAMPLE_MERGING_SUPPORTED */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲激情图片qvod| 日韩无一区二区| 国产精品影视在线观看| 水野朝阳av一区二区三区| 亚洲激情自拍视频| 亚洲自拍偷拍综合| 亚洲码国产岛国毛片在线| 成人欧美一区二区三区小说 | 色综合视频在线观看| 成人午夜看片网址| 不卡一卡二卡三乱码免费网站| 国产高清久久久久| 99视频精品免费视频| 色婷婷综合激情| 欧美老女人第四色| 日韩女优av电影| 国产日韩精品一区| 亚洲人亚洲人成电影网站色| **欧美大码日韩| 亚洲成人av电影| 奇米精品一区二区三区在线观看一| 日韩电影在线看| 国产尤物一区二区| 99re这里只有精品首页| 欧美日韩国产综合视频在线观看| 欧美一区二区三区播放老司机| 26uuu色噜噜精品一区二区| 欧美国产激情二区三区| 尤物视频一区二区| 奇米在线7777在线精品| 成人听书哪个软件好| 色吧成人激情小说| 26uuu亚洲综合色| 亚洲精品国产一区二区精华液 | 日韩亚洲欧美在线观看| 久久日一线二线三线suv| 中文字幕一区二| 免费在线观看日韩欧美| 成人av在线网站| 日韩一区二区在线免费观看| 国产精品乱人伦中文| 亚洲成人免费视频| av在线综合网| 精品剧情在线观看| 亚洲人成网站精品片在线观看| 美国精品在线观看| 欧美综合欧美视频| 国产欧美一区在线| 美女mm1313爽爽久久久蜜臀| 97国产一区二区| 久久伊人中文字幕| 日韩福利视频导航| 91视频免费看| 国产欧美日韩激情| 极品少妇xxxx精品少妇| 欧美中文字幕亚洲一区二区va在线| 欧美va亚洲va香蕉在线| 天堂va蜜桃一区二区三区漫画版| av电影在线观看完整版一区二区| 欧美大片在线观看一区| 天天做天天摸天天爽国产一区| 99久久精品免费看| 国产蜜臀av在线一区二区三区| 日韩av一区二区三区| 在线精品亚洲一区二区不卡| 久久久精品中文字幕麻豆发布| 日韩国产欧美在线视频| 一本久久精品一区二区| 亚洲色图都市小说| 国产精品99久久久久久久女警| 欧美一卡二卡在线观看| 亚洲一区二区三区四区在线观看 | 欧美日韩在线播放| 亚洲色欲色欲www在线观看| 久久97超碰色| 日韩一区二区电影| 美女视频第一区二区三区免费观看网站| 91麻豆福利精品推荐| 国产精品久久久久久久岛一牛影视| 精品亚洲国产成人av制服丝袜| 7777女厕盗摄久久久| 婷婷六月综合网| 777奇米成人网| 久久er99精品| 国产午夜精品一区二区| 国产精品亚洲а∨天堂免在线| 久久这里只有精品视频网| 久久国产精品露脸对白| 亚洲精品国产高清久久伦理二区| av亚洲精华国产精华| 国产精品高潮久久久久无| 波多野结衣欧美| 中文字幕一区二区5566日韩| 91视频xxxx| 亚洲国产另类av| 日韩一卡二卡三卡国产欧美| 国产在线播放一区| 亚洲三级电影全部在线观看高清| 一本高清dvd不卡在线观看| 亚洲小说春色综合另类电影| 日韩一区二区在线看| 国产精品99久| 亚洲欧美激情视频在线观看一区二区三区| 色综合天天综合色综合av| 亚洲一区二区三区四区在线免费观看 | 婷婷开心久久网| 欧美成人精品高清在线播放| 粉嫩久久99精品久久久久久夜 | 欧美性色欧美a在线播放| 日韩成人精品在线| 国产夜色精品一区二区av| 91麻豆精品在线观看| 日韩电影在线观看网站| 欧美激情艳妇裸体舞| 欧美亚男人的天堂| 国产一区二区免费视频| 亚洲黄色av一区| 久久亚洲精品国产精品紫薇| 91黄视频在线| 国产美女一区二区| 亚洲午夜视频在线观看| 2020国产成人综合网| 在线观看视频一区| 粉嫩av一区二区三区| 日本大胆欧美人术艺术动态| 国产精品乱码人人做人人爱| 欧美一区二区三区日韩| www.亚洲人| 国产精品888| 日韩精品色哟哟| 亚洲精品成a人| 国产丝袜美腿一区二区三区| 欧美久久久影院| 91麻豆高清视频| 从欧美一区二区三区| 久久精品噜噜噜成人av农村| 一区二区在线观看免费| 国产精品人成在线观看免费 | 亚洲第一成人在线| 欧美国产丝袜视频| 日韩精品一区二区三区视频在线观看 | 不卡欧美aaaaa| 精品一区二区久久| 蜜桃视频在线观看一区| 亚洲成人精品一区| 亚洲午夜精品网| 亚洲一区二区三区美女| 亚洲精品免费视频| 亚洲美女视频在线观看| 国产精品国产自产拍高清av| 国产精品免费久久久久| 久久久亚洲高清| 国产丝袜欧美中文另类| 国产日韩精品一区二区三区在线| 精品国产一区二区亚洲人成毛片 | 国产欧美日本一区视频| 久久一区二区视频| 日韩精品中午字幕| 日韩精品中文字幕在线一区| 精品av综合导航| 久久久一区二区三区捆绑**| 久久久久国产一区二区三区四区 | 欧美综合在线视频| 在线观看网站黄不卡| 欧美日韩一区 二区 三区 久久精品| 色综合天天综合在线视频| 在线免费观看日韩欧美| 欧美体内she精高潮| 欧美精品一卡两卡| 欧美r级电影在线观看| 2021国产精品久久精品| 国产精品麻豆久久久| 一区二区三区中文在线| 香蕉影视欧美成人| 久久精品国产77777蜜臀| 懂色av一区二区夜夜嗨| 色哟哟欧美精品| 制服丝袜一区二区三区| 欧美精品一区二区在线观看| 国产欧美一区二区三区在线老狼| 中文字幕一区二区三区在线不卡 | 三级影片在线观看欧美日韩一区二区| 亚洲1区2区3区4区| 久久99热99| 色综合一个色综合亚洲| 欧美日高清视频| 久久久蜜臀国产一区二区| 亚洲精品免费在线| 久久精品二区亚洲w码| a美女胸又www黄视频久久| 91精品国产综合久久久久久漫画| 精品国产不卡一区二区三区| 国产精品福利av| 午夜精品久久久久久久99水蜜桃| 欧美视频日韩视频| 亚洲第一久久影院| 欧美伦理视频网站| 中文字幕欧美三区| 日韩精品欧美成人高清一区二区| 国产真实乱对白精彩久久|