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

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

?? jdmaster.c

?? 在ecos 下mingui 的移植開發
?? C
?? 第 1 頁 / 共 2 頁
字號:
 * Master selection of decompression modules. * This is done once at jpeg_start_decompress time.  We determine * which modules will be used and give them appropriate initialization calls. * We also initialize the decompressor input side to begin consuming data. * * Since jpeg_read_header has finished, we know what is in the SOF * and (first) SOS markers.  We also have all the application parameter * settings. */LOCAL(void)master_selection (j_decompress_ptr cinfo){  my_master_ptr master = (my_master_ptr) cinfo->master;  boolean use_c_buffer;  long samplesperrow;  JDIMENSION jd_samplesperrow;  /* Initialize dimensions and other stuff */  jpeg_calc_output_dimensions(cinfo);  prepare_range_limit_table(cinfo);  /* Width of an output scanline must be representable as JDIMENSION. */  samplesperrow = (long) cinfo->output_width * (long) cinfo->out_color_components;  jd_samplesperrow = (JDIMENSION) samplesperrow;  if ((long) jd_samplesperrow != samplesperrow)    ERREXIT(cinfo, JERR_WIDTH_OVERFLOW);  /* Initialize my private state */  master->pass_number = 0;  master->using_merged_upsample = use_merged_upsample(cinfo);  /* Color quantizer selection */  master->quantizer_1pass = NULL;  master->quantizer_2pass = NULL;  /* No mode changes if not using buffered-image mode. */  if (! cinfo->quantize_colors || ! cinfo->buffered_image) {    cinfo->enable_1pass_quant = FALSE;    cinfo->enable_external_quant = FALSE;    cinfo->enable_2pass_quant = FALSE;  }  if (cinfo->quantize_colors) {    if (cinfo->raw_data_out)      ERREXIT(cinfo, JERR_NOTIMPL);    /* 2-pass quantizer only works in 3-component color space. */    if (cinfo->out_color_components != 3) {      cinfo->enable_1pass_quant = TRUE;      cinfo->enable_external_quant = FALSE;      cinfo->enable_2pass_quant = FALSE;      cinfo->colormap = NULL;    } else if (cinfo->colormap != NULL) {      cinfo->enable_external_quant = TRUE;    } else if (cinfo->two_pass_quantize) {      cinfo->enable_2pass_quant = TRUE;    } else {      cinfo->enable_1pass_quant = TRUE;    }  }  /* Post-processing: in particular, color conversion first */  if (! cinfo->raw_data_out) {    if (master->using_merged_upsample) {#ifdef UPSAMPLE_MERGING_SUPPORTED      jinit_merged_upsampler(cinfo); /* does color conversion too */#else      ERREXIT(cinfo, JERR_NOT_COMPILED);#endif    } else {      jinit_color_deconverter(cinfo);      jinit_upsampler(cinfo);    }    jinit_d_post_controller(cinfo, cinfo->enable_2pass_quant);  }  /* Inverse DCT */  jinit_inverse_dct(cinfo);  /* Entropy decoding: either Huffman or arithmetic coding. */  if (cinfo->arith_code) {    ERREXIT(cinfo, JERR_ARITH_NOTIMPL);  } else {    if (cinfo->progressive_mode) {#ifdef D_PROGRESSIVE_SUPPORTED      jinit_phuff_decoder(cinfo);#else      ERREXIT(cinfo, JERR_NOT_COMPILED);#endif    } else      jinit_huff_decoder(cinfo);  }  /* Initialize principal buffer controllers. */  use_c_buffer = cinfo->inputctl->has_multiple_scans || cinfo->buffered_image;  jinit_d_coef_controller(cinfo, use_c_buffer);  if (! cinfo->raw_data_out)    jinit_d_main_controller(cinfo, FALSE /* never need full buffer here */);  /* We can now tell the memory manager to allocate virtual arrays. */  (*cinfo->mem->realize_virt_arrays) ((j_common_ptr) cinfo);  /* Initialize input side of decompressor to consume first scan. */  (*cinfo->inputctl->start_input_pass) (cinfo);#ifdef D_MULTISCAN_FILES_SUPPORTED  /* If jpeg_start_decompress will read the whole file, initialize   * progress monitoring appropriately.  The input step is counted   * as one pass.   */  if (cinfo->progress != NULL && ! cinfo->buffered_image &&      cinfo->inputctl->has_multiple_scans) {    int nscans;    /* Estimate number of scans to set pass_limit. */    if (cinfo->progressive_mode) {      /* Arbitrarily estimate 2 interleaved DC scans + 3 AC scans/component. */      nscans = 2 + 3 * cinfo->num_components;    } else {      /* For a nonprogressive multiscan file, estimate 1 scan per component. */      nscans = cinfo->num_components;    }    cinfo->progress->pass_counter = 0L;    cinfo->progress->pass_limit = (long) cinfo->total_iMCU_rows * nscans;    cinfo->progress->completed_passes = 0;    cinfo->progress->total_passes = (cinfo->enable_2pass_quant ? 3 : 2);    /* Count the input pass as done */    master->pass_number++;  }#endif /* D_MULTISCAN_FILES_SUPPORTED */}/* * Per-pass setup. * This is called at the beginning of each output pass.  We determine which * modules will be active during this pass and give them appropriate * start_pass calls.  We also set is_dummy_pass to indicate whether this * is a "real" output pass or a dummy pass for color quantization. * (In the latter case, jdapi.c will crank the pass to completion.) */METHODDEF(void)prepare_for_output_pass (j_decompress_ptr cinfo){  my_master_ptr master = (my_master_ptr) cinfo->master;  if (master->pub.is_dummy_pass) {#ifdef QUANT_2PASS_SUPPORTED    /* Final pass of 2-pass quantization */    master->pub.is_dummy_pass = FALSE;    (*cinfo->cquantize->start_pass) (cinfo, FALSE);    (*cinfo->post->start_pass) (cinfo, JBUF_CRANK_DEST);    (*cinfo->main->start_pass) (cinfo, JBUF_CRANK_DEST);#else    ERREXIT(cinfo, JERR_NOT_COMPILED);#endif /* QUANT_2PASS_SUPPORTED */  } else {    if (cinfo->quantize_colors && cinfo->colormap == NULL) {      /* Select new quantization method */      if (cinfo->two_pass_quantize && cinfo->enable_2pass_quant) {	cinfo->cquantize = master->quantizer_2pass;	master->pub.is_dummy_pass = TRUE;      } else if (cinfo->enable_1pass_quant) {	cinfo->cquantize = master->quantizer_1pass;      } else {	ERREXIT(cinfo, JERR_MODE_CHANGE);      }    }    (*cinfo->idct->start_pass) (cinfo);    (*cinfo->coef->start_output_pass) (cinfo);    if (! cinfo->raw_data_out) {      if (! master->using_merged_upsample)	(*cinfo->cconvert->start_pass) (cinfo);      (*cinfo->upsample->start_pass) (cinfo);      if (cinfo->quantize_colors)	(*cinfo->cquantize->start_pass) (cinfo, master->pub.is_dummy_pass);      (*cinfo->post->start_pass) (cinfo,	    (master->pub.is_dummy_pass ? JBUF_SAVE_AND_PASS : JBUF_PASS_THRU));      (*cinfo->main->start_pass) (cinfo, JBUF_PASS_THRU);    }  }  /* Set up progress monitor's pass info if present */  if (cinfo->progress != NULL) {    cinfo->progress->completed_passes = master->pass_number;    cinfo->progress->total_passes = master->pass_number +				    (master->pub.is_dummy_pass ? 2 : 1);    /* In buffered-image mode, we assume one more output pass if EOI not     * yet reached, but no more passes if EOI has been reached.     */    if (cinfo->buffered_image && ! cinfo->inputctl->eoi_reached) {      cinfo->progress->total_passes += (cinfo->enable_2pass_quant ? 2 : 1);    }  }}/* * Finish up at end of an output pass. */METHODDEF(void)finish_output_pass (j_decompress_ptr cinfo){  my_master_ptr master = (my_master_ptr) cinfo->master;  if (cinfo->quantize_colors)    (*cinfo->cquantize->finish_pass) (cinfo);  master->pass_number++;}#ifdef D_MULTISCAN_FILES_SUPPORTED/* * Switch to a new external colormap between output passes. */GLOBAL(void)jpeg_new_colormap (j_decompress_ptr cinfo){  my_master_ptr master = (my_master_ptr) cinfo->master;  /* Prevent application from calling me at wrong times */  if (cinfo->global_state != DSTATE_BUFIMAGE)    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);  if (cinfo->quantize_colors && cinfo->enable_external_quant &&      cinfo->colormap != NULL) {    /* Select 2-pass quantizer for external colormap use */    cinfo->cquantize = master->quantizer_2pass;    /* Notify quantizer of colormap change */    (*cinfo->cquantize->new_color_map) (cinfo);    master->pub.is_dummy_pass = FALSE; /* just in case */  } else    ERREXIT(cinfo, JERR_MODE_CHANGE);}#endif /* D_MULTISCAN_FILES_SUPPORTED *//* * Initialize master decompression control and select active modules. * This is performed at the start of jpeg_start_decompress. */GLOBAL(void)jinit_master_decompress (j_decompress_ptr cinfo){  my_master_ptr master;  master = (my_master_ptr)      (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,				  SIZEOF(my_decomp_master));  cinfo->master = (struct jpeg_decomp_master *) master;  master->pub.prepare_for_output_pass = prepare_for_output_pass;  master->pub.finish_output_pass = finish_output_pass;  master->pub.is_dummy_pass = FALSE;  master_selection(cinfo);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本精品视频一区二区| 欧美刺激午夜性久久久久久久 | 亚洲激情欧美激情| 日韩精品免费视频人成| 国产成人精品一区二区三区四区| 欧美午夜电影一区| 国产精品久久久久久久久果冻传媒| 日韩二区在线观看| 99re亚洲国产精品| 久久美女高清视频| 丝袜美腿亚洲一区| 色老汉一区二区三区| 国产色产综合色产在线视频| 日本aⅴ精品一区二区三区| 色综合久久88色综合天天6| 久久综合色鬼综合色| 亚洲一区视频在线| 91视频免费播放| 日本一区二区动态图| 看片的网站亚洲| 欧美激情艳妇裸体舞| 久久精品99国产精品| 欧美日韩免费观看一区二区三区| 亚洲丝袜美腿综合| 成人免费高清视频在线观看| 国产日韩亚洲欧美综合| 韩国理伦片一区二区三区在线播放| 欧美性一区二区| 亚洲午夜久久久久久久久电影网| 92精品国产成人观看免费| 国产日产精品1区| 国产一区二区三区电影在线观看 | 亚洲成人黄色影院| 色综合久久99| 亚洲成人免费视| 欧美色视频一区| 亚洲午夜免费视频| 717成人午夜免费福利电影| 日韩和欧美的一区| 日韩视频免费观看高清完整版 | 国产精品18久久久久久久久| 精品黑人一区二区三区久久| 精品一区二区国语对白| 日韩视频一区二区三区在线播放| 麻豆精品国产91久久久久久| 欧美大胆一级视频| 国产成+人+日韩+欧美+亚洲| 国产精品色婷婷| 99re66热这里只有精品3直播| 中文字幕佐山爱一区二区免费| 91丨porny丨首页| 亚洲图片自拍偷拍| 日韩亚洲国产中文字幕欧美| 久久不见久久见免费视频7 | 欧美久久久久免费| 久久aⅴ国产欧美74aaa| 欧美国产综合一区二区| 91免费版在线看| 五月天视频一区| 精品国产a毛片| 99国产精品久久久| 日韩 欧美一区二区三区| 久久久久久久久久久久久久久99| 日韩精品一区二区在线观看| 麻豆91免费观看| 国产精品美女久久久久久久久| 色综合久久久网| 老司机一区二区| 中文字幕一区二区三区在线播放 | 天堂va蜜桃一区二区三区| 久久人人超碰精品| 色综合一区二区| 狠狠色伊人亚洲综合成人| 亚洲天堂成人在线观看| 欧美大片国产精品| 在线精品视频小说1| 韩国三级在线一区| 亚洲成人黄色影院| 中文字幕一区二区三区视频| 在线成人av网站| av激情成人网| 久久91精品国产91久久小草| 亚洲婷婷综合久久一本伊一区| 日韩欧美一二三| 欧美亚洲国产一区二区三区va | 日本不卡的三区四区五区| 国产视频一区不卡| 91超碰这里只有精品国产| 99综合影院在线| 国模冰冰炮一区二区| 亚洲一区中文日韩| 国产精品久久夜| 欧美成人一区二区三区在线观看| 欧洲一区二区av| 成人av片在线观看| 久久99精品久久久| 首页国产欧美久久| 亚洲精品中文在线影院| 国产精品久久久久久久久快鸭| 日韩美女天天操| 91麻豆精品国产91| 欧美视频一区二区三区四区 | 国产一区二区剧情av在线| 日精品一区二区| 亚洲一区二区欧美日韩| 亚洲老司机在线| 亚洲欧美日本在线| 国产精品国产a级| 国产午夜精品一区二区 | 国产一区二三区| 国内精品自线一区二区三区视频| 日本成人在线不卡视频| 天堂av在线一区| 久久se精品一区二区| 久久国产夜色精品鲁鲁99| 轻轻草成人在线| 伦理电影国产精品| 精品一区中文字幕| 国产乱码精品一区二区三区av | 一区二区三区加勒比av| 亚洲人123区| 国产精品欧美一区喷水| ww亚洲ww在线观看国产| 日韩精品一区二区三区视频播放| 9l国产精品久久久久麻豆| 国产精品资源站在线| 韩国v欧美v日本v亚洲v| 久久99热国产| 国产美女娇喘av呻吟久久| 成人永久免费视频| 国产福利视频一区二区三区| 国产在线精品国自产拍免费| 蜜臀av一区二区三区| 国产精品国产a级| 樱桃视频在线观看一区| 亚洲免费av高清| 亚洲一区二区av电影| 亚洲综合999| 蜜臀久久99精品久久久久宅男 | 国产一区不卡精品| 丁香六月久久综合狠狠色| 成人av电影免费观看| 色综合天天狠狠| 91色porny在线视频| 99精品国产视频| 欧美电影一区二区| 日韩欧美在线综合网| 久久嫩草精品久久久精品| 久久久影院官网| 国产欧美日韩在线| 亚洲福利视频一区二区| 美日韩一级片在线观看| 国产乱子伦视频一区二区三区| 成人毛片视频在线观看| 91免费看视频| 欧美一级一区二区| 国产视频一区在线播放| 伊人婷婷欧美激情| 亚洲一区二区欧美日韩| 高清av一区二区| 在线视频中文字幕一区二区| 欧美一级片在线看| 欧美高清在线一区| 亚洲第一狼人社区| 国产一区二区三区综合| 色乱码一区二区三区88| 欧美一区二区三区视频在线| 日韩精品最新网址| 亚洲精品亚洲人成人网在线播放| 麻豆视频一区二区| 成人高清视频免费观看| 3d成人动漫网站| 亚洲黄色小说网站| 国产精品资源在线观看| 欧美日韩视频不卡| 中文字幕av一区二区三区高| 亚洲国产色一区| 东方aⅴ免费观看久久av| 欧美久久久久久久久中文字幕| 欧美激情一区二区三区四区| 亚洲蜜臀av乱码久久精品| 丰满岳乱妇一区二区三区| 7777精品伊人久久久大香线蕉| 国产精品视频麻豆| 日本视频一区二区| a美女胸又www黄视频久久| 日韩欧美国产精品| 亚洲一区二区偷拍精品| 欧美一级二级三级蜜桃| 日韩一区二区在线播放| 亚洲成人av在线电影| fc2成人免费人成在线观看播放| 日韩一二三区不卡| 亚洲自拍偷拍九九九| 国产成人在线免费| 6080午夜不卡| 麻豆91精品视频| 欧美老肥妇做.爰bbww视频| 自拍偷拍亚洲激情| 懂色av中文字幕一区二区三区|