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

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

?? jcmarker.c

?? 這是JPEG解碼、編碼的源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
	if (cinfo->Ah != 0 && !cinfo->arith_code)
	  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 - 0x01, 0x01)
   * 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);
  /* We currently emit version code 1.01 since we use no 1.02 features.
   * This may avoid complaints from some older decoders.
   */
  emit_byte(cinfo, 1);		/* Major version */
  emit_byte(cinfo, 1);		/* 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;
  }
}


/*
 * This routine is exported for possible use by applications.
 * The intended use is to emit COM or APPn markers after calling
 * jpeg_start_compress() and before the first jpeg_write_scanlines() call
 * (hence, after write_file_header but before write_frame_header).
 * Other uses are not guaranteed to produce desirable results.
 */

METHODDEF(void)
write_any_marker (j_compress_ptr cinfo, int marker,
		  const JOCTET *dataptr, unsigned int datalen)
/* Emit an arbitrary marker with parameters */
{
  if (datalen <= (unsigned int) 65533) { /* safety check */
    emit_marker(cinfo, (JPEG_MARKER) marker);
  
    emit_2bytes(cinfo, (int) (datalen + 2)); /* total length */

    while (datalen--) {
      emit_byte(cinfo, *dataptr);
      dataptr++;
    }
  }
}


/*
 * 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)
{
  emit_marker(cinfo, M_SOI);	/* first the SOI */

  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)
{
  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.
   * If it doesn't, a tiny amount of space is wasted in multiple-scan files.
   * We assume DRI will never be nonzero for one scan and zero for a later one.
   */
  if (cinfo->restart_interval)
    emit_dri(cinfo);

  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)
{
  /* Create the subobject */
  cinfo->marker = (struct jpeg_marker_writer *)
    (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
				SIZEOF(struct jpeg_marker_writer));
  /* Initialize method pointers */
  cinfo->marker->write_any_marker = write_any_marker;
  cinfo->marker->write_file_header = write_file_header;
  cinfo->marker->write_frame_header = write_frame_header;
  cinfo->marker->write_scan_header = write_scan_header;
  cinfo->marker->write_file_trailer = write_file_trailer;
  cinfo->marker->write_tables_only = write_tables_only;
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产无人区一区二区三区| 91免费看`日韩一区二区| 欧美人妇做爰xxxⅹ性高电影| 亚洲综合在线观看视频| 欧美伊人久久久久久午夜久久久久| 亚洲欧美综合另类在线卡通| 99精品欧美一区二区蜜桃免费| 成人欧美一区二区三区小说| 色哟哟亚洲精品| 午夜精品视频一区| www激情久久| 99re成人精品视频| 五月婷婷欧美视频| 久久久电影一区二区三区| 99国产精品一区| 天天av天天翘天天综合网色鬼国产| 日韩亚洲国产中文字幕欧美| 国产一区二区三区香蕉| 18欧美亚洲精品| 欧美精三区欧美精三区| 精品亚洲porn| 一区二区三区在线观看视频| 欧美一级淫片007| 成人精品小蝌蚪| 五月开心婷婷久久| 国产欧美日韩另类一区| 欧美三级在线播放| 国产精品亚洲午夜一区二区三区| 中文字幕日韩精品一区| 欧美一级二级三级乱码| 91网站在线观看视频| 日本中文一区二区三区| 欧美国产亚洲另类动漫| 337p亚洲精品色噜噜噜| 波多野结衣亚洲一区| 亚洲不卡一区二区三区| 亚洲国产高清aⅴ视频| 欧美日韩二区三区| 99久久综合精品| 狠狠色丁香久久婷婷综合丁香| 亚洲裸体在线观看| 欧美精品一区二区三区在线播放| 一本大道av伊人久久综合| 久草这里只有精品视频| 亚洲精品欧美激情| 国产精品婷婷午夜在线观看| 666欧美在线视频| 91久久人澡人人添人人爽欧美| 国产一区二区三区四| 婷婷综合久久一区二区三区| 国产精品女同互慰在线看| 欧美日韩国产影片| 91麻豆国产在线观看| 国产福利视频一区二区三区| 青青青伊人色综合久久| 亚洲综合一区二区精品导航| 中文字幕欧美国产| 日韩一区二区视频在线观看| 欧美影视一区在线| 91成人免费在线视频| 成av人片一区二区| 99久久精品一区二区| 精品影视av免费| 亚洲不卡一区二区三区| 亚洲激情六月丁香| 亚洲日本丝袜连裤袜办公室| 国产视频视频一区| 久久伊人中文字幕| 欧美mv日韩mv亚洲| 欧美电影精品一区二区| 777色狠狠一区二区三区| 欧美制服丝袜第一页| 91久久一区二区| 欧美性生活影院| 在线区一区二视频| 在线视频国产一区| 欧美色窝79yyyycom| 欧美性videosxxxxx| 欧洲人成人精品| 欧美日韩日本视频| 91精品国产综合久久小美女| 91精品国产麻豆| 欧美精品一区二区三区在线| 久久新电视剧免费观看| 久久精品亚洲一区二区三区浴池| 久久综合网色—综合色88| 亚洲精品一区二区三区在线观看 | 亚洲柠檬福利资源导航| 中文字幕综合网| 一区二区三区精品在线观看| 亚洲国产精品人人做人人爽| 亚洲制服丝袜av| 五月天国产精品| 国产在线看一区| a亚洲天堂av| 色香蕉久久蜜桃| 91麻豆精品国产91久久久资源速度| 欧美裸体一区二区三区| 精品国产一区二区亚洲人成毛片| 久久久亚洲午夜电影| 综合亚洲深深色噜噜狠狠网站| 一级日本不卡的影视| 日本中文一区二区三区| 国产精品系列在线观看| 色悠悠久久综合| 日韩一卡二卡三卡| 欧美国产日韩一二三区| 亚洲高清免费观看| 久久精品国产久精国产| 高清不卡一二三区| 在线观看av一区| 精品99一区二区三区| 亚洲日本在线观看| 国产欧美一区二区三区在线老狼| 最新成人av在线| 男人的j进女人的j一区| 成人福利在线看| 6080国产精品一区二区| 中文字幕欧美国产| 日日噜噜夜夜狠狠视频欧美人| 国产美女在线精品| 欧美日韩中字一区| 欧美极品另类videosde| 舔着乳尖日韩一区| 99免费精品在线| www国产成人免费观看视频 深夜成人网| 亚洲欧洲色图综合| 久久成人久久鬼色| 欧洲精品一区二区| 亚洲国产经典视频| 美脚の诱脚舐め脚责91 | 成人sese在线| 日韩你懂的在线观看| 亚洲女性喷水在线观看一区| 麻豆中文一区二区| 欧美色电影在线| 国产精品福利一区二区| 久久99精品网久久| 欧美日韩成人综合在线一区二区| 久久精品夜色噜噜亚洲a∨| 日韩av一区二| 欧美午夜电影一区| 国产精品国模大尺度视频| 国模少妇一区二区三区| 欧美欧美午夜aⅴ在线观看| 亚洲欧美日韩国产手机在线 | av爱爱亚洲一区| 日韩女优av电影| 日日欢夜夜爽一区| 欧美日韩亚洲综合在线| 亚洲精品日韩专区silk| eeuss影院一区二区三区| 久久久国产精品麻豆| 久久精品国产免费| 日韩视频中午一区| 日韩专区欧美专区| 欧洲亚洲国产日韩| 一片黄亚洲嫩模| 91蜜桃在线免费视频| 综合中文字幕亚洲| 91香蕉视频黄| 亚洲美女区一区| 91极品视觉盛宴| 一区二区三区日韩精品| 99久久精品免费看国产免费软件| 国产欧美日韩卡一| 成人免费黄色大片| 国产精品女上位| 99riav一区二区三区| 亚洲精品欧美激情| 在线精品观看国产| 亚洲国产中文字幕| 在线播放/欧美激情| 青青草精品视频| 精品对白一区国产伦| 国产毛片精品视频| 欧美极品aⅴ影院| 99久久精品国产导航| 亚洲乱码一区二区三区在线观看| 日本乱人伦aⅴ精品| 亚洲大片精品永久免费| 制服丝袜av成人在线看| 奇米精品一区二区三区在线观看| 日韩一区二区在线观看视频| 狠狠色丁香久久婷婷综合丁香| 国产午夜精品美女毛片视频| 成人综合在线网站| 一二三区精品福利视频| 91麻豆精品久久久久蜜臀| 久久精品国产久精国产| 中文字幕精品在线不卡| 日本韩国欧美一区二区三区| 亚洲va欧美va天堂v国产综合| 欧美日韩dvd在线观看| 精品亚洲成a人在线观看| 中文字幕不卡三区| 精品视频全国免费看| 麻豆精品视频在线观看视频| 亚洲国产成人在线| 欧美日韩在线三区|