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

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

?? jcmarker.c

?? 一款最完整的工業組態軟源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
	  td = 0;		/* no DC table either */
      } else {
	td = 0;			/* AC scan */
      }
    }
    emit_byte(cinfo, (td << 4) + ta);
  }

  emit_byte(cinfo, cinfo->Ss);
  emit_byte(cinfo, cinfo->Se);
  emit_byte(cinfo, (cinfo->Ah << 4) + cinfo->Al);
}


LOCAL(void)
emit_jfif_app0 (j_compress_ptr cinfo)
/* Emit a JFIF-compliant APP0 marker */
{
  /*
   * Length of APP0 block	(2 bytes)
   * Block ID			(4 bytes - ASCII "JFIF")
   * Zero byte			(1 byte to terminate the ID string)
   * Version Major, Minor	(2 bytes - major first)
   * Units			(1 byte - 0x00 = none, 0x01 = inch, 0x02 = cm)
   * Xdpu			(2 bytes - dots per unit horizontal)
   * Ydpu			(2 bytes - dots per unit vertical)
   * Thumbnail X size		(1 byte)
   * Thumbnail Y size		(1 byte)
   */
  
  emit_marker(cinfo, M_APP0);
  
  emit_2bytes(cinfo, 2 + 4 + 1 + 2 + 1 + 2 + 2 + 1 + 1); /* length */

  emit_byte(cinfo, 0x4A);	/* Identifier: ASCII "JFIF" */
  emit_byte(cinfo, 0x46);
  emit_byte(cinfo, 0x49);
  emit_byte(cinfo, 0x46);
  emit_byte(cinfo, 0);
  emit_byte(cinfo, cinfo->JFIF_major_version); /* Version fields */
  emit_byte(cinfo, cinfo->JFIF_minor_version);
  emit_byte(cinfo, cinfo->density_unit); /* Pixel size information */
  emit_2bytes(cinfo, (int) cinfo->X_density);
  emit_2bytes(cinfo, (int) cinfo->Y_density);
  emit_byte(cinfo, 0);		/* No thumbnail image */
  emit_byte(cinfo, 0);
}


LOCAL(void)
emit_adobe_app14 (j_compress_ptr cinfo)
/* Emit an Adobe APP14 marker */
{
  /*
   * Length of APP14 block	(2 bytes)
   * Block ID			(5 bytes - ASCII "Adobe")
   * Version Number		(2 bytes - currently 100)
   * Flags0			(2 bytes - currently 0)
   * Flags1			(2 bytes - currently 0)
   * Color transform		(1 byte)
   *
   * Although Adobe TN 5116 mentions Version = 101, all the Adobe files
   * now in circulation seem to use Version = 100, so that's what we write.
   *
   * We write the color transform byte as 1 if the JPEG color space is
   * YCbCr, 2 if it's YCCK, 0 otherwise.  Adobe's definition has to do with
   * whether the encoder performed a transformation, which is pretty useless.
   */
  
  emit_marker(cinfo, M_APP14);
  
  emit_2bytes(cinfo, 2 + 5 + 2 + 2 + 2 + 1); /* length */

  emit_byte(cinfo, 0x41);	/* Identifier: ASCII "Adobe" */
  emit_byte(cinfo, 0x64);
  emit_byte(cinfo, 0x6F);
  emit_byte(cinfo, 0x62);
  emit_byte(cinfo, 0x65);
  emit_2bytes(cinfo, 100);	/* Version */
  emit_2bytes(cinfo, 0);	/* Flags0 */
  emit_2bytes(cinfo, 0);	/* Flags1 */
  switch (cinfo->jpeg_color_space) {
  case JCS_YCbCr:
    emit_byte(cinfo, 1);	/* Color transform = 1 */
    break;
  case JCS_YCCK:
    emit_byte(cinfo, 2);	/* Color transform = 2 */
    break;
  default:
    emit_byte(cinfo, 0);	/* Color transform = 0 */
    break;
  }
}


/*
 * These routines allow writing an arbitrary marker with parameters.
 * The only intended use is to emit COM or APPn markers after calling
 * write_file_header and before calling write_frame_header.
 * Other uses are not guaranteed to produce desirable results.
 * Counting the parameter bytes properly is the caller's responsibility.
 */

METHODDEF(void)
write_marker_header (j_compress_ptr cinfo, int marker, unsigned int datalen)
/* Emit an arbitrary marker header */
{
  if (datalen > (unsigned int) 65533)		/* safety check */
    ERREXIT(cinfo, JERR_BAD_LENGTH);

  emit_marker(cinfo, (JPEG_MARKER) marker);

  emit_2bytes(cinfo, (int) (datalen + 2));	/* total length */
}

METHODDEF(void)
write_marker_byte (j_compress_ptr cinfo, int val)
/* Emit one byte of marker parameters following write_marker_header */
{
  emit_byte(cinfo, val);
}


/*
 * Write datastream header.
 * This consists of an SOI and optional APPn markers.
 * We recommend use of the JFIF marker, but not the Adobe marker,
 * when using YCbCr or grayscale data.  The JFIF marker should NOT
 * be used for any other JPEG colorspace.  The Adobe marker is helpful
 * to distinguish RGB, CMYK, and YCCK colorspaces.
 * Note that an application can write additional header markers after
 * jpeg_start_compress returns.
 */

METHODDEF(void)
write_file_header (j_compress_ptr cinfo)
{
  my_marker_ptr marker = (my_marker_ptr) cinfo->marker;

  emit_marker(cinfo, M_SOI);	/* first the SOI */

  /* SOI is defined to reset restart interval to 0 */
  marker->last_restart_interval = 0;

  if (cinfo->write_JFIF_header)	/* next an optional JFIF APP0 */
    emit_jfif_app0(cinfo);
  if (cinfo->write_Adobe_marker) /* next an optional Adobe APP14 */
    emit_adobe_app14(cinfo);
}


/*
 * Write frame header.
 * This consists of DQT and SOFn markers.
 * Note that we do not emit the SOF until we have emitted the DQT(s).
 * This avoids compatibility problems with incorrect implementations that
 * try to error-check the quant table numbers as soon as they see the SOF.
 */

METHODDEF(void)
write_frame_header (j_compress_ptr cinfo)
{
  int ci, prec;
  boolean is_baseline;
  jpeg_component_info *compptr;
  
  /* Emit DQT for each quantization table.
   * Note that emit_dqt() suppresses any duplicate tables.
   */
  prec = 0;
  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
       ci++, compptr++) {
    prec += emit_dqt(cinfo, compptr->quant_tbl_no);
  }
  /* now prec is nonzero iff there are any 16-bit quant tables. */

  /* Check for a non-baseline specification.
   * Note we assume that Huffman table numbers won't be changed later.
   */
  if (cinfo->arith_code || cinfo->progressive_mode ||
      cinfo->data_precision != 8) {
    is_baseline = FALSE;
  } else {
    is_baseline = TRUE;
    for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
	 ci++, compptr++) {
      if (compptr->dc_tbl_no > 1 || compptr->ac_tbl_no > 1)
	is_baseline = FALSE;
    }
    if (prec && is_baseline) {
      is_baseline = FALSE;
      /* If it's baseline except for quantizer size, warn the user */
      TRACEMS(cinfo, 0, JTRC_16BIT_TABLES);
    }
  }

  /* Emit the proper SOF marker */
  if (cinfo->arith_code) {
    emit_sof(cinfo, M_SOF9);	/* SOF code for arithmetic coding */
  } else {
    if (cinfo->progressive_mode)
      emit_sof(cinfo, M_SOF2);	/* SOF code for progressive Huffman */
    else if (is_baseline)
      emit_sof(cinfo, M_SOF0);	/* SOF code for baseline implementation */
    else
      emit_sof(cinfo, M_SOF1);	/* SOF code for non-baseline Huffman file */
  }
}


/*
 * Write scan header.
 * This consists of DHT or DAC markers, optional DRI, and SOS.
 * Compressed data will be written following the SOS.
 */

METHODDEF(void)
write_scan_header (j_compress_ptr cinfo)
{
  my_marker_ptr marker = (my_marker_ptr) cinfo->marker;
  int i;
  jpeg_component_info *compptr;

  if (cinfo->arith_code) {
    /* Emit arith conditioning info.  We may have some duplication
     * if the file has multiple scans, but it's so small it's hardly
     * worth worrying about.
     */
    emit_dac(cinfo);
  } else {
    /* Emit Huffman tables.
     * Note that emit_dht() suppresses any duplicate tables.
     */
    for (i = 0; i < cinfo->comps_in_scan; i++) {
      compptr = cinfo->cur_comp_info[i];
      if (cinfo->progressive_mode) {
	/* Progressive mode: only DC or only AC tables are used in one scan */
	if (cinfo->Ss == 0) {
	  if (cinfo->Ah == 0)	/* DC needs no table for refinement scan */
	    emit_dht(cinfo, compptr->dc_tbl_no, FALSE);
	} else {
	  emit_dht(cinfo, compptr->ac_tbl_no, TRUE);
	}
      } else {
	/* Sequential mode: need both DC and AC tables */
	emit_dht(cinfo, compptr->dc_tbl_no, FALSE);
	emit_dht(cinfo, compptr->ac_tbl_no, TRUE);
      }
    }
  }

  /* Emit DRI if required --- note that DRI value could change for each scan.
   * We avoid wasting space with unnecessary DRIs, however.
   */
  if (cinfo->restart_interval != marker->last_restart_interval) {
    emit_dri(cinfo);
    marker->last_restart_interval = cinfo->restart_interval;
  }

  emit_sos(cinfo);
}


/*
 * Write datastream trailer.
 */

METHODDEF(void)
write_file_trailer (j_compress_ptr cinfo)
{
  emit_marker(cinfo, M_EOI);
}


/*
 * Write an abbreviated table-specification datastream.
 * This consists of SOI, DQT and DHT tables, and EOI.
 * Any table that is defined and not marked sent_table = TRUE will be
 * emitted.  Note that all tables will be marked sent_table = TRUE at exit.
 */

METHODDEF(void)
write_tables_only (j_compress_ptr cinfo)
{
  int i;

  emit_marker(cinfo, M_SOI);

  for (i = 0; i < NUM_QUANT_TBLS; i++) {
    if (cinfo->quant_tbl_ptrs[i] != NULL)
      (void) emit_dqt(cinfo, i);
  }

  if (! cinfo->arith_code) {
    for (i = 0; i < NUM_HUFF_TBLS; i++) {
      if (cinfo->dc_huff_tbl_ptrs[i] != NULL)
	emit_dht(cinfo, i, FALSE);
      if (cinfo->ac_huff_tbl_ptrs[i] != NULL)
	emit_dht(cinfo, i, TRUE);
    }
  }

  emit_marker(cinfo, M_EOI);
}


/*
 * Initialize the marker writer module.
 */

GLOBAL(void)
jinit_marker_writer (j_compress_ptr cinfo)
{
  my_marker_ptr marker;

  /* Create the subobject */
  marker = (my_marker_ptr)
    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
				SIZEOF(my_marker_writer));
  cinfo->marker = (struct jpeg_marker_writer *) marker;
  /* Initialize method pointers */
  marker->pub.write_file_header = write_file_header;
  marker->pub.write_frame_header = write_frame_header;
  marker->pub.write_scan_header = write_scan_header;
  marker->pub.write_file_trailer = write_file_trailer;
  marker->pub.write_tables_only = write_tables_only;
  marker->pub.write_marker_header = write_marker_header;
  marker->pub.write_marker_byte = write_marker_byte;
  /* Initialize private state */
  marker->last_restart_interval = 0;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图视频免费播放| 亚洲美女视频一区| 亚洲激情自拍视频| 95精品视频在线| 亚洲男女一区二区三区| 91麻豆国产自产在线观看| 亚洲色欲色欲www| 一本一道综合狠狠老| 亚洲精品少妇30p| 欧美日韩高清一区二区三区| 日日夜夜免费精品视频| 日韩欧美一区在线| 国产精品一区二区在线观看网站| 国产欧美日韩另类一区| av一二三不卡影片| 亚洲成人黄色影院| 日韩精品一区二区三区在线播放 | 欧美在线啊v一区| 亚洲国产综合在线| 精品国产一区二区三区不卡| 国产盗摄女厕一区二区三区| 亚洲另类中文字| 欧美精品日韩一本| 国产一区二三区| 亚洲啪啪综合av一区二区三区| 在线亚洲人成电影网站色www| 视频一区二区三区在线| 国产校园另类小说区| 色老汉av一区二区三区| 美女网站视频久久| 国产精品久久一级| 91精品国产入口在线| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 国产乱码精品一区二区三| 国产视频一区在线播放| 欧美影片第一页| 久久激五月天综合精品| 亚洲精选一二三| 日韩欧美在线1卡| 色婷婷亚洲综合| 狠狠色丁香久久婷婷综| 亚洲综合在线观看视频| 国产欧美一区二区三区在线看蜜臀 | 亚洲欧美激情插| 91精品国产综合久久久蜜臀图片 | 国产乱码精品1区2区3区| 久久电影网站中文字幕| 91久久久免费一区二区| 久久66热re国产| 国产精品一区二区不卡| 91精品国产91久久久久久一区二区| 精品国产污网站| 免费国产亚洲视频| 亚洲影视资源网| 中文字幕精品在线不卡| 亚洲丝袜另类动漫二区| 日韩欧美国产一二三区| 不卡大黄网站免费看| 免费人成在线不卡| 亚洲综合av网| 国产精品福利影院| 亚洲成人黄色小说| 日韩美女啊v在线免费观看| 久久这里只有精品6| 91精品视频网| 欧美裸体bbwbbwbbw| 色播五月激情综合网| 99精品欧美一区二区三区小说 | 夜夜嗨av一区二区三区四季av | 久久婷婷国产综合国色天香| 欧美亚洲国产一区二区三区| 一区二区三区在线视频播放| 久久国产精品99久久人人澡| 久久精品综合网| 国产精品人成在线观看免费| 国产盗摄一区二区| 亚洲国产一区二区视频| 国产精品美女久久久久久 | 精品一区二区三区免费观看 | 亚洲精品一区二区三区影院| 国产精品资源站在线| 日本成人在线一区| 精品国产凹凸成av人网站| 天堂午夜影视日韩欧美一区二区| 欧美日韩免费视频| 亚洲综合成人在线| 成人动漫在线一区| 精品视频色一区| 日本成人中文字幕| 亚洲小说欧美激情另类| 欧美国产日韩在线观看| 91精品一区二区三区久久久久久| 本田岬高潮一区二区三区| 黄色资源网久久资源365| 精品亚洲成a人在线观看| 亚洲精品国产精品乱码不99| 首页国产丝袜综合| 久久综合九色综合97婷婷| 波多野洁衣一区| 91麻豆高清视频| 欧美日韩国产另类不卡| 欧美一级高清片在线观看| 久久精品夜色噜噜亚洲a∨| 中文字幕精品一区| 亚洲福利一区二区| 韩国v欧美v亚洲v日本v| 成人手机电影网| 在线观看亚洲一区| 欧美va在线播放| 国产精品另类一区| 亚洲电影一级片| 久久99精品视频| 97久久精品人人爽人人爽蜜臀| 欧美亚洲国产一区在线观看网站| 日韩精品一区二| 一区二区中文字幕在线| 日本网站在线观看一区二区三区 | 日韩一区二区三区在线| 精品va天堂亚洲国产| 中文字幕一区二区三区精华液| 亚洲444eee在线观看| 国产做a爰片久久毛片| 91在线一区二区三区| 日韩欧美一卡二卡| 中文字幕亚洲不卡| 蜜桃精品视频在线观看| 波多野结衣视频一区| 日韩三级视频在线看| 亚洲欧美激情插| 国产精品自拍在线| 欧美福利电影网| 亚洲视频每日更新| 国产一本一道久久香蕉| 欧美色图免费看| 国产精品五月天| 蜜臀精品一区二区三区在线观看| 成人午夜激情视频| 精品国产一区二区精华| 亚洲va国产天堂va久久en| 成人小视频免费观看| 日韩美女视频在线| 亚洲高清在线视频| av电影天堂一区二区在线观看| 日韩午夜精品视频| 亚洲观看高清完整版在线观看| caoporm超碰国产精品| 久久久不卡影院| 亚洲精品视频观看| 国产精品综合在线视频| 欧美日韩亚洲另类| 亚洲男人天堂av| 成人一区在线看| 久久免费电影网| 韩国欧美国产1区| 欧美一区二区三区免费观看视频| 亚洲免费av网站| 99综合影院在线| 欧美国产精品专区| 国产精品一线二线三线| 精品久久国产字幕高潮| 五月激情丁香一区二区三区| 日本精品视频一区二区三区| 成人欧美一区二区三区视频网页| 国产福利一区在线观看| 久久亚洲综合色一区二区三区| 蜜桃传媒麻豆第一区在线观看| 欧美三级一区二区| 亚洲国产日韩在线一区模特| 色88888久久久久久影院按摩| 日韩美女精品在线| 日本精品视频一区二区| 一区二区三区四区中文字幕| 94-欧美-setu| 欧美激情在线免费观看| 欧美精三区欧美精三区| 亚洲同性gay激情无套| 东方欧美亚洲色图在线| 久久日韩精品一区二区五区| 国产一区二区伦理片| 久久久综合九色合综国产精品| 国产一区91精品张津瑜| 久久久久久麻豆| 成人性生交大片免费看在线播放| 国产精品久久久久永久免费观看| av一区二区三区| 亚洲一区二区三区国产| 在线播放一区二区三区| 捆绑调教一区二区三区| 国产午夜亚洲精品午夜鲁丝片| 日欧美一区二区| 91麻豆精品国产91久久久使用方法 | 欧美视频在线一区| 午夜精品福利视频网站 | 精品美女在线观看| 国产高清在线观看免费不卡| 亚洲乱码精品一二三四区日韩在线| 欧美在线观看禁18| 精品亚洲成a人| 一区二区三区中文在线| 欧美日韩免费高清一区色橹橹 |