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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? jcmaster.c

?? It is possible that certain products which can be built using this software modules might form inve
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* * jcmaster.c * * Copyright (C) 1991-1997, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains master control logic for the JPEG compressor. * These routines are concerned with parameter validation, initial setup, * and inter-pass control (determining the number of passes and the work  * to be done in each pass). */#define JPEG_INTERNALS#include "jinclude.h"#include "jpeglib.h"/* Private state */typedef enum {	main_pass,		/* input data, also do first output step */	huff_opt_pass,		/* Huffman code optimization pass */	output_pass		/* data output pass */} c_pass_type;typedef struct {  struct jpeg_comp_master pub;	/* public fields */  c_pass_type pass_type;	/* the type of the current pass */  int pass_number;		/* # of passes completed */  int total_passes;		/* total # of passes needed */  int scan_number;		/* current index in scan_info[] */} my_comp_master;typedef my_comp_master * my_master_ptr;/* * Support routines that do various essential calculations. */LOCAL(void)initial_setup (j_compress_ptr cinfo)/* Do computations that are needed before master selection phase */{  int ci;  jpeg_component_info *compptr;  long samplesperrow;  JDIMENSION jd_samplesperrow;  /* Sanity check on image dimensions */  if (cinfo->image_height <= 0 || cinfo->image_width <= 0      || cinfo->num_components <= 0 || cinfo->input_components <= 0)    ERREXIT(cinfo, JERR_EMPTY_IMAGE);  /* Make sure image isn't bigger than I can handle */  if ((long) cinfo->image_height > (long) JPEG_MAX_DIMENSION ||      (long) cinfo->image_width > (long) JPEG_MAX_DIMENSION)    ERREXIT1(cinfo, JERR_IMAGE_TOO_BIG, (unsigned int) JPEG_MAX_DIMENSION);  /* Width of an input scanline must be representable as JDIMENSION. */  samplesperrow = (long) cinfo->image_width * (long) cinfo->input_components;  jd_samplesperrow = (JDIMENSION) samplesperrow;  if ((long) jd_samplesperrow != samplesperrow)    ERREXIT(cinfo, JERR_WIDTH_OVERFLOW);  /* For now, precision must match compiled-in value... */  if (cinfo->data_precision != BITS_IN_JSAMPLE)    ERREXIT1(cinfo, JERR_BAD_PRECISION, cinfo->data_precision);  /* Check that number of components won't exceed internal array sizes */  if (cinfo->num_components > MAX_COMPONENTS)    ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components,	     MAX_COMPONENTS);  /* Compute maximum sampling factors; check factor validity */  cinfo->max_h_samp_factor = 1;  cinfo->max_v_samp_factor = 1;  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;       ci++, compptr++) {    if (compptr->h_samp_factor<=0 || compptr->h_samp_factor>MAX_SAMP_FACTOR ||	compptr->v_samp_factor<=0 || compptr->v_samp_factor>MAX_SAMP_FACTOR)      ERREXIT(cinfo, JERR_BAD_SAMPLING);    cinfo->max_h_samp_factor = MAX(cinfo->max_h_samp_factor,				   compptr->h_samp_factor);    cinfo->max_v_samp_factor = MAX(cinfo->max_v_samp_factor,				   compptr->v_samp_factor);  }  /* Compute dimensions of components */  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;       ci++, compptr++) {    /* Fill in the correct component_index value; don't rely on application */    compptr->component_index = ci;    /* For compression, we never do DCT scaling. */    compptr->DCT_scaled_size = DCTSIZE;    /* Size in DCT blocks */    compptr->width_in_blocks = (JDIMENSION)      jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor,		    (long) (cinfo->max_h_samp_factor * DCTSIZE));    compptr->height_in_blocks = (JDIMENSION)      jdiv_round_up((long) cinfo->image_height * (long) compptr->v_samp_factor,		    (long) (cinfo->max_v_samp_factor * DCTSIZE));    /* Size in samples */    compptr->downsampled_width = (JDIMENSION)      jdiv_round_up((long) cinfo->image_width * (long) compptr->h_samp_factor,		    (long) cinfo->max_h_samp_factor);    compptr->downsampled_height = (JDIMENSION)      jdiv_round_up((long) cinfo->image_height * (long) compptr->v_samp_factor,		    (long) cinfo->max_v_samp_factor);    /* Mark component needed (this flag isn't actually used for compression) */    compptr->component_needed = TRUE;  }  /* Compute number of fully interleaved MCU rows (number of times that   * main controller will call coefficient controller).   */  cinfo->total_iMCU_rows = (JDIMENSION)    jdiv_round_up((long) cinfo->image_height,		  (long) (cinfo->max_v_samp_factor*DCTSIZE));}#ifdef C_MULTISCAN_FILES_SUPPORTEDLOCAL(void)validate_script (j_compress_ptr cinfo)/* Verify that the scan script in cinfo->scan_info[] is valid; also * determine whether it uses progressive JPEG, and set cinfo->progressive_mode. */{  const jpeg_scan_info * scanptr;  int scanno, ncomps, ci, coefi, thisi;  int Ss, Se, Ah, Al;  boolean component_sent[MAX_COMPONENTS];#ifdef C_PROGRESSIVE_SUPPORTED  int * last_bitpos_ptr;  int last_bitpos[MAX_COMPONENTS][DCTSIZE2];  /* -1 until that coefficient has been seen; then last Al for it */#endif  if (cinfo->num_scans <= 0)    ERREXIT1(cinfo, JERR_BAD_SCAN_SCRIPT, 0);  /* For sequential JPEG, all scans must have Ss=0, Se=DCTSIZE2-1;   * for progressive JPEG, no scan can have this.   */  scanptr = cinfo->scan_info;  if (scanptr->Ss != 0 || scanptr->Se != DCTSIZE2-1) {#ifdef C_PROGRESSIVE_SUPPORTED    cinfo->progressive_mode = TRUE;    last_bitpos_ptr = & last_bitpos[0][0];    for (ci = 0; ci < cinfo->num_components; ci++)       for (coefi = 0; coefi < DCTSIZE2; coefi++)	*last_bitpos_ptr++ = -1;#else    ERREXIT(cinfo, JERR_NOT_COMPILED);#endif  } else {    cinfo->progressive_mode = FALSE;    for (ci = 0; ci < cinfo->num_components; ci++)       component_sent[ci] = FALSE;  }  for (scanno = 1; scanno <= cinfo->num_scans; scanptr++, scanno++) {    /* Validate component indexes */    ncomps = scanptr->comps_in_scan;    if (ncomps <= 0 || ncomps > MAX_COMPS_IN_SCAN)      ERREXIT2(cinfo, JERR_COMPONENT_COUNT, ncomps, MAX_COMPS_IN_SCAN);    for (ci = 0; ci < ncomps; ci++) {      thisi = scanptr->component_index[ci];      if (thisi < 0 || thisi >= cinfo->num_components)	ERREXIT1(cinfo, JERR_BAD_SCAN_SCRIPT, scanno);      /* Components must appear in SOF order within each scan */      if (ci > 0 && thisi <= scanptr->component_index[ci-1])	ERREXIT1(cinfo, JERR_BAD_SCAN_SCRIPT, scanno);    }    /* Validate progression parameters */    Ss = scanptr->Ss;    Se = scanptr->Se;    Ah = scanptr->Ah;    Al = scanptr->Al;    if (cinfo->progressive_mode) {#ifdef C_PROGRESSIVE_SUPPORTED      /* The JPEG spec simply gives the ranges 0..13 for Ah and Al, but that       * seems wrong: the upper bound ought to depend on data precision.       * Perhaps they really meant 0..N+1 for N-bit precision.       * Here we allow 0..10 for 8-bit data; Al larger than 10 results in       * out-of-range reconstructed DC values during the first DC scan,       * which might cause problems for some decoders.       */#if BITS_IN_JSAMPLE == 8#define MAX_AH_AL 10#else#define MAX_AH_AL 13#endif      if (Ss < 0 || Ss >= DCTSIZE2 || Se < Ss || Se >= DCTSIZE2 ||	  Ah < 0 || Ah > MAX_AH_AL || Al < 0 || Al > MAX_AH_AL)	ERREXIT1(cinfo, JERR_BAD_PROG_SCRIPT, scanno);      if (Ss == 0) {	if (Se != 0)		/* DC and AC together not OK */	  ERREXIT1(cinfo, JERR_BAD_PROG_SCRIPT, scanno);      } else {	if (ncomps != 1)	/* AC scans must be for only one component */	  ERREXIT1(cinfo, JERR_BAD_PROG_SCRIPT, scanno);      }      for (ci = 0; ci < ncomps; ci++) {	last_bitpos_ptr = & last_bitpos[scanptr->component_index[ci]][0];	if (Ss != 0 && last_bitpos_ptr[0] < 0) /* AC without prior DC scan */	  ERREXIT1(cinfo, JERR_BAD_PROG_SCRIPT, scanno);	for (coefi = Ss; coefi <= Se; coefi++) {	  if (last_bitpos_ptr[coefi] < 0) {	    /* first scan of this coefficient */	    if (Ah != 0)	      ERREXIT1(cinfo, JERR_BAD_PROG_SCRIPT, scanno);	  } else {	    /* not first scan */	    if (Ah != last_bitpos_ptr[coefi] || Al != Ah-1)	      ERREXIT1(cinfo, JERR_BAD_PROG_SCRIPT, scanno);	  }	  last_bitpos_ptr[coefi] = Al;	}      }#endif    } else {      /* For sequential JPEG, all progression parameters must be these: */      if (Ss != 0 || Se != DCTSIZE2-1 || Ah != 0 || Al != 0)	ERREXIT1(cinfo, JERR_BAD_PROG_SCRIPT, scanno);      /* Make sure components are not sent twice */      for (ci = 0; ci < ncomps; ci++) {	thisi = scanptr->component_index[ci];	if (component_sent[thisi])	  ERREXIT1(cinfo, JERR_BAD_SCAN_SCRIPT, scanno);	component_sent[thisi] = TRUE;      }    }  }  /* Now verify that everything got sent. */  if (cinfo->progressive_mode) {#ifdef C_PROGRESSIVE_SUPPORTED    /* For progressive mode, we only check that at least some DC data     * got sent for each component; the spec does not require that all bits     * of all coefficients be transmitted.  Would it be wiser to enforce     * transmission of all coefficient bits??     */    for (ci = 0; ci < cinfo->num_components; ci++) {      if (last_bitpos[ci][0] < 0)	ERREXIT(cinfo, JERR_MISSING_DATA);    }#endif  } else {    for (ci = 0; ci < cinfo->num_components; ci++) {      if (! component_sent[ci])	ERREXIT(cinfo, JERR_MISSING_DATA);    }  }}#endif /* C_MULTISCAN_FILES_SUPPORTED */LOCAL(void)select_scan_parameters (j_compress_ptr cinfo)/* Set up the scan parameters for the current scan */{  int ci;#ifdef C_MULTISCAN_FILES_SUPPORTED  if (cinfo->scan_info != NULL) {    /* Prepare for current scan --- the script is already validated */    my_master_ptr master = (my_master_ptr) cinfo->master;    const jpeg_scan_info * scanptr = cinfo->scan_info + master->scan_number;    cinfo->comps_in_scan = scanptr->comps_in_scan;    for (ci = 0; ci < scanptr->comps_in_scan; ci++) {      cinfo->cur_comp_info[ci] =	&cinfo->comp_info[scanptr->component_index[ci]];    }    cinfo->Ss = scanptr->Ss;    cinfo->Se = scanptr->Se;    cinfo->Ah = scanptr->Ah;    cinfo->Al = scanptr->Al;  }  else#endif  {    /* Prepare for single sequential-JPEG scan containing all components */    if (cinfo->num_components > MAX_COMPS_IN_SCAN)      ERREXIT2(cinfo, JERR_COMPONENT_COUNT, cinfo->num_components,	       MAX_COMPS_IN_SCAN);    cinfo->comps_in_scan = cinfo->num_components;    for (ci = 0; ci < cinfo->num_components; ci++) {

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕亚洲电影| 国产一区二区三区精品欧美日韩一区二区三区 | 久久久国产精品午夜一区ai换脸| 亚洲444eee在线观看| 91视频一区二区三区| 国产精品国产三级国产a| 成a人片国产精品| 国产精品久久久久婷婷| 91精品国产综合久久久蜜臀粉嫩| 亚洲成av人片在www色猫咪| 国产色综合久久| 不卡视频在线看| 精品在线观看视频| 久久久久久久久久久99999| 欧美丝袜第三区| 亚洲国产日产av| 欧美一区二区国产| 国产麻豆91精品| 日日夜夜免费精品| 久久久蜜桃精品| 91精品在线观看入口| 91久久线看在观草草青青| 亚洲成人av电影| 亚洲欧美日韩国产综合| 精品视频1区2区| 久久se精品一区二区| 中文一区二区在线观看| 99re在线精品| 日本色综合中文字幕| 久久九九国产精品| 精品国产区一区| kk眼镜猥琐国模调教系列一区二区| 亚洲综合精品自拍| 精品成人一区二区三区四区| 欧美高清hd18日本| 国产成人av影院| 一区二区成人在线| www成人在线观看| 欧美丝袜自拍制服另类| 91官网在线观看| 日本道精品一区二区三区| 在线观看免费亚洲| 国产精品影视网| 亚洲国产wwwccc36天堂| 亚洲一区免费视频| 亚洲国产毛片aaaaa无费看| 亚洲一区二区三区美女| 亚洲成在人线在线播放| 午夜精品在线视频一区| 国产色综合一区| 国产精品视频在线看| 欧美一区二区三区在| 91精品国产91久久久久久最新毛片| 欧美精品丝袜中出| 欧美一区二区精品| 久久婷婷综合激情| 中文一区二区在线观看| 亚洲欧美一区二区三区极速播放| 一区二区三区欧美视频| 亚洲成人免费看| 丰满放荡岳乱妇91ww| 麻豆传媒一区二区三区| 亚洲自拍都市欧美小说| 亚洲1区2区3区4区| 久久国产精品第一页| 国产精品一级片在线观看| 99久久精品一区| 91高清视频免费看| 欧美成人a∨高清免费观看| 在线观看欧美黄色| 欧美一区二区三区视频在线观看| 久久这里只精品最新地址| 国产精品美女一区二区三区| 亚洲黄色尤物视频| 日韩毛片精品高清免费| 国产精品毛片久久久久久| 一区二区三区.www| 蜜桃在线一区二区三区| 粉嫩13p一区二区三区| 在线精品视频一区二区| 欧美电视剧免费全集观看| 欧美久久婷婷综合色| 精品国产一区二区精华| 国产精品高潮呻吟久久| 日韩黄色在线观看| 处破女av一区二区| 岛国av在线一区| 精品视频一区二区不卡| 国产三级精品三级在线专区| 久久久久久久久免费| 亚洲综合小说图片| 国产精品一区二区三区网站| 在线影院国内精品| 久久这里只精品最新地址| 亚洲综合丝袜美腿| 成人激情黄色小说| 91精品免费观看| 亚洲欧美激情插| 国产一区二区三区电影在线观看| 日本精品裸体写真集在线观看| 欧美videos大乳护士334| 亚洲女人****多毛耸耸8| 激情综合网最新| 欧美日韩亚洲综合| 国产精品护士白丝一区av| 麻豆视频一区二区| 欧美中文字幕一区二区三区| 国产精品系列在线| 久久成人免费日本黄色| 亚洲国产精品激情在线观看| 亚洲国产va精品久久久不卡综合| 国产1区2区3区精品美女| 日韩欧美在线网站| 久久久精品国产免大香伊| 日本女优在线视频一区二区| 一本色道**综合亚洲精品蜜桃冫| 欧美吻胸吃奶大尺度电影 | 久久久久国产精品厨房| 日韩精品一卡二卡三卡四卡无卡| 91视视频在线观看入口直接观看www| 26uuu成人网一区二区三区| 日韩精品高清不卡| 欧美色网站导航| 亚洲精品欧美综合四区| av资源网一区| 中文字幕第一区综合| 国产精品 日产精品 欧美精品| 日韩午夜在线影院| 免费在线观看成人| 成人一区二区三区中文字幕| 精品福利一区二区三区 | 日本亚洲三级在线| 欧美精品乱人伦久久久久久| 亚洲午夜日本在线观看| 欧美午夜免费电影| 亚洲精品日韩一| 色悠久久久久综合欧美99| 亚洲天堂精品在线观看| 97se亚洲国产综合自在线不卡 | 日本亚洲电影天堂| 日韩三区在线观看| 麻豆成人免费电影| 精品国产成人在线影院| 国产一区二区三区av电影| 久久久美女艺术照精彩视频福利播放| 国产精品自拍在线| 国产精品毛片久久久久久久| 波多野结衣在线aⅴ中文字幕不卡| 亚洲国产精品精华液ab| 91免费观看国产| 一个色在线综合| 777午夜精品视频在线播放| 日韩精品一二三| 精品国产乱码久久久久久免费 | 国产做a爰片久久毛片| 色综合亚洲欧洲| 久久久久国产免费免费| 国产 日韩 欧美大片| 亚洲三级电影网站| 欧美三电影在线| 裸体健美xxxx欧美裸体表演| 欧美mv日韩mv国产| 国产成人综合在线播放| 最好看的中文字幕久久| 欧美日韩一区二区三区在线| 青青青伊人色综合久久| 国产视频911| 91国内精品野花午夜精品 | 色综合久久中文综合久久牛| 亚洲自拍偷拍av| 精品国产免费视频| 91丨九色丨黑人外教| 亚洲福利一区二区三区| 久久亚洲综合色| 色天天综合久久久久综合片| 奇米精品一区二区三区四区| 久久精品亚洲麻豆av一区二区| 色综合久久天天| 另类人妖一区二区av| 综合分类小说区另类春色亚洲小说欧美 | 亚洲欧美另类小说| 日韩视频123| 色综合久久天天| 韩国成人精品a∨在线观看| 一区二区三区四区中文字幕| 日韩精品一区二区三区蜜臀| www激情久久| 欧美性大战久久久| 国产高清不卡一区二区| 视频一区在线播放| 国产欧美va欧美不卡在线| 欧美剧情片在线观看| 成人精品鲁一区一区二区| 男人操女人的视频在线观看欧美 | 丝袜a∨在线一区二区三区不卡| 久久久久久久久蜜桃| 91精品国产综合久久蜜臀| 91蜜桃在线免费视频| 国产麻豆一精品一av一免费| 三级久久三级久久|