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

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

?? jcapimin.c

?? 一款最完整的工業組態軟源代碼
?? C
字號:
/*
 * jcapimin.c
 *
 * Copyright (C) 1994-1998, 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 application interface code for the compression half
 * of the JPEG library.  These are the "minimum" API routines that may be
 * needed in either the normal full-compression case or the transcoding-only
 * case.
 *
 * Most of the routines intended to be called directly by an application
 * are in this file or in jcapistd.c.  But also see jcparam.c for
 * parameter-setup helper routines, jcomapi.c for routines shared by
 * compression and decompression, and jctrans.c for the transcoding case.
 */

#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"


/*
 * Initialization of a JPEG compression object.
 * The error manager must already be set up (in case memory manager fails).
 */

GLOBAL(void)
jpeg_CreateCompress (j_compress_ptr cinfo, int version, size_t structsize)
{
  int i;

  /* Guard against version mismatches between library and caller. */
  cinfo->mem = NULL;		/* so jpeg_destroy knows mem mgr not called */
  if (version != JPEG_LIB_VERSION)
    ERREXIT2(cinfo, JERR_BAD_LIB_VERSION, JPEG_LIB_VERSION, version);
  if (structsize != SIZEOF(struct jpeg_compress_struct))
    ERREXIT2(cinfo, JERR_BAD_STRUCT_SIZE, 
	     (int) SIZEOF(struct jpeg_compress_struct), (int) structsize);

  /* For debugging purposes, we zero the whole master structure.
   * But the application has already set the err pointer, and may have set
   * client_data, so we have to save and restore those fields.
   * Note: if application hasn't set client_data, tools like Purify may
   * complain here.
   */
  {
    struct jpeg_error_mgr * err = cinfo->err;
    void * client_data = cinfo->client_data; /* ignore Purify complaint here */
    MEMZERO(cinfo, SIZEOF(struct jpeg_compress_struct));
    cinfo->err = err;
    cinfo->client_data = client_data;
  }
  cinfo->is_decompressor = FALSE;

  /* Initialize a memory manager instance for this object */
  jinit_memory_mgr((j_common_ptr) cinfo);

  /* Zero out pointers to permanent structures. */
  cinfo->progress = NULL;
  cinfo->dest = NULL;

  cinfo->comp_info = NULL;

  for (i = 0; i < NUM_QUANT_TBLS; i++)
    cinfo->quant_tbl_ptrs[i] = NULL;

  for (i = 0; i < NUM_HUFF_TBLS; i++) {
    cinfo->dc_huff_tbl_ptrs[i] = NULL;
    cinfo->ac_huff_tbl_ptrs[i] = NULL;
  }

  cinfo->script_space = NULL;

  cinfo->input_gamma = 1.0;	/* in case application forgets */

  /* OK, I'm ready */
  cinfo->global_state = CSTATE_START;
}


/*
 * Destruction of a JPEG compression object
 */

GLOBAL(void)
jpeg_destroy_compress (j_compress_ptr cinfo)
{
  jpeg_destroy((j_common_ptr) cinfo); /* use common routine */
}


/*
 * Abort processing of a JPEG compression operation,
 * but don't destroy the object itself.
 */

GLOBAL(void)
jpeg_abort_compress (j_compress_ptr cinfo)
{
  jpeg_abort((j_common_ptr) cinfo); /* use common routine */
}


/*
 * Forcibly suppress or un-suppress all quantization and Huffman tables.
 * Marks all currently defined tables as already written (if suppress)
 * or not written (if !suppress).  This will control whether they get emitted
 * by a subsequent jpeg_start_compress call.
 *
 * This routine is exported for use by applications that want to produce
 * abbreviated JPEG datastreams.  It logically belongs in jcparam.c, but
 * since it is called by jpeg_start_compress, we put it here --- otherwise
 * jcparam.o would be linked whether the application used it or not.
 */

GLOBAL(void)
jpeg_suppress_tables (j_compress_ptr cinfo, boolean suppress)
{
  int i;
  JQUANT_TBL * qtbl;
  JHUFF_TBL * htbl;

  for (i = 0; i < NUM_QUANT_TBLS; i++) {
    if ((qtbl = cinfo->quant_tbl_ptrs[i]) != NULL)
      qtbl->sent_table = suppress;
  }

  for (i = 0; i < NUM_HUFF_TBLS; i++) {
    if ((htbl = cinfo->dc_huff_tbl_ptrs[i]) != NULL)
      htbl->sent_table = suppress;
    if ((htbl = cinfo->ac_huff_tbl_ptrs[i]) != NULL)
      htbl->sent_table = suppress;
  }
}


/*
 * Finish JPEG compression.
 *
 * If a multipass operating mode was selected, this may do a great deal of
 * work including most of the actual output.
 */

GLOBAL(void)
jpeg_finish_compress (j_compress_ptr cinfo)
{
  JDIMENSION iMCU_row;

  if (cinfo->global_state == CSTATE_SCANNING ||
      cinfo->global_state == CSTATE_RAW_OK) {
    /* Terminate first pass */
    if (cinfo->next_scanline < cinfo->image_height)
      ERREXIT(cinfo, JERR_TOO_LITTLE_DATA);
    (*cinfo->master->finish_pass) (cinfo);
  } else if (cinfo->global_state != CSTATE_WRCOEFS)
    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
  /* Perform any remaining passes */
  while (! cinfo->master->is_last_pass) {
    (*cinfo->master->prepare_for_pass) (cinfo);
    for (iMCU_row = 0; iMCU_row < cinfo->total_iMCU_rows; iMCU_row++) {
      if (cinfo->progress != NULL) {
	cinfo->progress->pass_counter = (long) iMCU_row;
	cinfo->progress->pass_limit = (long) cinfo->total_iMCU_rows;
	(*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo);
      }
      /* We bypass the main controller and invoke coef controller directly;
       * all work is being done from the coefficient buffer.
       */
      if (! (*cinfo->coef->compress_data) (cinfo, (JSAMPIMAGE) NULL))
	ERREXIT(cinfo, JERR_CANT_SUSPEND);
    }
    (*cinfo->master->finish_pass) (cinfo);
  }
  /* Write EOI, do final cleanup */
  (*cinfo->marker->write_file_trailer) (cinfo);
  (*cinfo->dest->term_destination) (cinfo);
  /* We can use jpeg_abort to release memory and reset global_state */
  jpeg_abort((j_common_ptr) cinfo);
}


/*
 * Write a special marker.
 * This is only recommended for writing COM or APPn markers.
 * Must be called after jpeg_start_compress() and before
 * first call to jpeg_write_scanlines() or jpeg_write_raw_data().
 */

GLOBAL(void)
jpeg_write_marker (j_compress_ptr cinfo, int marker,
		   const JOCTET *dataptr, unsigned int datalen)
{
  JMETHOD(void, write_marker_byte, (j_compress_ptr info, int val));

  if (cinfo->next_scanline != 0 ||
      (cinfo->global_state != CSTATE_SCANNING &&
       cinfo->global_state != CSTATE_RAW_OK &&
       cinfo->global_state != CSTATE_WRCOEFS))
    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);

  (*cinfo->marker->write_marker_header) (cinfo, marker, datalen);
  write_marker_byte = cinfo->marker->write_marker_byte;	/* copy for speed */
  while (datalen--) {
    (*write_marker_byte) (cinfo, *dataptr);
    dataptr++;
  }
}

/* Same, but piecemeal. */

GLOBAL(void)
jpeg_write_m_header (j_compress_ptr cinfo, int marker, unsigned int datalen)
{
  if (cinfo->next_scanline != 0 ||
      (cinfo->global_state != CSTATE_SCANNING &&
       cinfo->global_state != CSTATE_RAW_OK &&
       cinfo->global_state != CSTATE_WRCOEFS))
    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);

  (*cinfo->marker->write_marker_header) (cinfo, marker, datalen);
}

GLOBAL(void)
jpeg_write_m_byte (j_compress_ptr cinfo, int val)
{
  (*cinfo->marker->write_marker_byte) (cinfo, val);
}


/*
 * Alternate compression function: just write an abbreviated table file.
 * Before calling this, all parameters and a data destination must be set up.
 *
 * To produce a pair of files containing abbreviated tables and abbreviated
 * image data, one would proceed as follows:
 *
 *		initialize JPEG object
 *		set JPEG parameters
 *		set destination to table file
 *		jpeg_write_tables(cinfo);
 *		set destination to image file
 *		jpeg_start_compress(cinfo, FALSE);
 *		write data...
 *		jpeg_finish_compress(cinfo);
 *
 * jpeg_write_tables has the side effect of marking all tables written
 * (same as jpeg_suppress_tables(..., TRUE)).  Thus a subsequent start_compress
 * will not re-emit the tables unless it is passed write_all_tables=TRUE.
 */

GLOBAL(void)
jpeg_write_tables (j_compress_ptr cinfo)
{
  if (cinfo->global_state != CSTATE_START)
    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);

  /* (Re)initialize error mgr and destination modules */
  (*cinfo->err->reset_error_mgr) ((j_common_ptr) cinfo);
  (*cinfo->dest->init_destination) (cinfo);
  /* Initialize the marker writer ... bit of a crock to do it here. */
  jinit_marker_writer(cinfo);
  /* Write them tables! */
  (*cinfo->marker->write_tables_only) (cinfo);
  /* And clean up. */
  (*cinfo->dest->term_destination) (cinfo);
  /*
   * In library releases up through v6a, we called jpeg_abort() here to free
   * any working memory allocated by the destination manager and marker
   * writer.  Some applications had a problem with that: they allocated space
   * of their own from the library memory manager, and didn't want it to go
   * away during write_tables.  So now we do nothing.  This will cause a
   * memory leak if an app calls write_tables repeatedly without doing a full
   * compression cycle or otherwise resetting the JPEG object.  However, that
   * seems less bad than unexpectedly freeing memory in the normal case.
   * An app that prefers the old behavior can call jpeg_abort for itself after
   * each call to jpeg_write_tables().
   */
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆成人久久精品二区三区红 | 欧美色综合久久| 欧美色老头old∨ideo| 久久先锋影音av鲁色资源网| 亚洲视频在线一区二区| 久久99国产精品久久99果冻传媒| 99精品桃花视频在线观看| 日韩精品一区二区三区视频播放| 综合av第一页| 国产大陆亚洲精品国产| 日韩一区二区三区视频在线观看| 一区二区不卡在线播放| 成人av网站免费| 欧美激情艳妇裸体舞| 韩国一区二区视频| 欧美电影免费提供在线观看| 午夜欧美大尺度福利影院在线看| 91麻豆免费观看| 亚洲欧洲精品一区二区精品久久久 | 精品久久99ma| 亚洲午夜激情网页| 一本久道久久综合中文字幕| 国产精品无遮挡| 国产成人一区二区精品非洲| 精品剧情在线观看| 久久er精品视频| 91精品国产欧美一区二区18 | 久久99久久久久| 欧美精选一区二区| 午夜精品一区二区三区电影天堂| 色综合视频一区二区三区高清| 综合亚洲深深色噜噜狠狠网站| 成人一级片在线观看| 国产精品无码永久免费888| 国产精品一区一区| 国产精品久久久久久户外露出| 国产精品自在欧美一区| 久久久欧美精品sm网站| 狠狠色综合日日| 精品国产乱码久久久久久1区2区| 日韩激情中文字幕| 日韩一级片网站| 精品一区二区在线播放| 国产欧美日韩卡一| 波多野结衣在线一区| 亚洲素人一区二区| 欧美伊人久久久久久午夜久久久久| 亚洲影院理伦片| 日韩视频一区二区| 国产成人h网站| 一区二区欧美国产| 欧美片在线播放| 久久99久久99精品免视看婷婷| 久久这里都是精品| 一本大道久久a久久精二百| 亚洲成人动漫在线观看| 欧美一区二区女人| 粉嫩av一区二区三区在线播放| 中文字幕一区二区三区在线观看 | 国模少妇一区二区三区| 亚洲国产成人私人影院tom| 日本韩国一区二区三区| 美女尤物国产一区| 自拍av一区二区三区| 欧美日韩一级二级| 国产凹凸在线观看一区二区| 一区二区三区**美女毛片| 欧美电影免费观看高清完整版在| 成人小视频在线观看| 日韩国产欧美在线观看| 中文欧美字幕免费| 在线不卡一区二区| 成人黄色a**站在线观看| 日韩精品免费专区| 中文字幕二三区不卡| 5566中文字幕一区二区电影| 成人免费黄色大片| 老司机精品视频在线| 亚洲欧美日韩中文播放| 久久久三级国产网站| 欧美日韩精品综合在线| 成人黄页毛片网站| 日韩中文字幕一区二区三区| 国产精品毛片无遮挡高清| 制服丝袜av成人在线看| 96av麻豆蜜桃一区二区| 精品一区二区三区免费视频| 亚洲愉拍自拍另类高清精品| 国产欧美va欧美不卡在线| 欧美一区二区视频在线观看2020| 波多野结衣在线一区| 国产麻豆欧美日韩一区| 青青草97国产精品免费观看 | 一区二区三区.www| 日本一区二区高清| 精品日韩99亚洲| 欧美欧美午夜aⅴ在线观看| 一本色道久久综合狠狠躁的推荐| 成人免费毛片片v| 国产黄色91视频| 国产激情视频一区二区三区欧美| 免费在线欧美视频| 日本伊人午夜精品| 午夜精品一区二区三区免费视频| 亚洲一区二三区| 亚洲最快最全在线视频| 亚洲老妇xxxxxx| 亚洲视频你懂的| 亚洲日本va午夜在线影院| 国产精品毛片大码女人| 欧美极品aⅴ影院| 国产精品女主播av| 中文字幕精品一区二区三区精品| 国产日韩欧美激情| 日本一区二区三区在线不卡| 国产亚洲一区二区在线观看| 亚洲精品在线免费播放| 精品少妇一区二区三区日产乱码| 欧美一区中文字幕| 欧美成人伊人久久综合网| 欧美一区二区高清| 精品成人一区二区| 久久精品人人爽人人爽| 国产精品色哟哟网站| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 久久久99精品免费观看| 国产亚洲综合av| 亚洲欧美日韩久久| 亚洲成人你懂的| 日本aⅴ亚洲精品中文乱码| 蜜桃91丨九色丨蝌蚪91桃色| 韩国三级中文字幕hd久久精品| 国产精品69毛片高清亚洲| 成人激情动漫在线观看| 色综合中文综合网| 国产目拍亚洲精品99久久精品| 国产精品福利影院| 亚洲视频免费在线观看| 爽好多水快深点欧美视频| 麻豆精品在线播放| 波多野结衣中文一区| 欧美日韩国产首页| 久久蜜桃av一区二区天堂| 一区二区三区在线免费播放| 免费欧美在线视频| 成人免费看片app下载| 欧美在线999| 国产日韩高清在线| 性久久久久久久久久久久| 精品一区二区免费视频| 色综合久久综合网| 久久色.com| 亚洲电影一区二区三区| 国产精品一级二级三级| 欧美影院精品一区| 欧美高清在线一区| 日本aⅴ亚洲精品中文乱码| av在线一区二区三区| 欧美一二三在线| 国产精品进线69影院| 久久国产精品露脸对白| 色猫猫国产区一区二在线视频| 日韩欧美国产麻豆| 亚洲第一主播视频| 成人97人人超碰人人99| 日韩写真欧美这视频| 国产日韩欧美制服另类| 奇米色一区二区| 色婷婷久久久亚洲一区二区三区| 久久久五月婷婷| 久久精品二区亚洲w码| 91豆麻精品91久久久久久| 国产精品天美传媒| 精久久久久久久久久久| 欧美精品高清视频| 亚洲综合成人在线视频| 懂色中文一区二区在线播放| 日韩欧美的一区| 日韩精品乱码免费| 欧美中文一区二区三区| 国产精品高潮呻吟| 成人在线综合网| 久久久久久一二三区| 国产自产视频一区二区三区| 91精品国产综合久久国产大片| 一区二区三区高清| 一本到不卡精品视频在线观看| 中文字幕国产一区二区| 国产伦精品一区二区三区视频青涩| 欧美一区日韩一区| 石原莉奈在线亚洲二区| 欧美最新大片在线看 | 国产精品狼人久久影院观看方式| 老司机精品视频线观看86| 日韩视频一区二区在线观看| 日本中文字幕一区| 日韩一级二级三级精品视频| 秋霞影院一区二区| 欧美一级理论片| 久久成人18免费观看|