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

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

?? jcapimin.c

?? About JPEG, executable on Visual C++
?? C
字號:
////////////////////////////////////////////////////////////////////////
//
//	Note : this file is included as part of the Smaller Animals Software
//	JpegFile package. Though this file has not been modified from it's 
//	original IJG 6a form, it is not the responsibility on the Independent
//	JPEG Group to answer questions regarding this code.
//	
//	Any questions you have about this code should be addressed to :
//
//	CHRISDL@PAGESZ.NET	- the distributor of this package.
//
//	Remember, by including this code in the JpegFile package, Smaller 
//	Animals Software assumes all responsibilities for answering questions
//	about it. If we (SA Software) can't answer your questions ourselves, we 
//	will direct you to people who can.
//
//	Thanks, CDL.
//
////////////////////////////////////////////////////////////////////////

/*
 * jcapimin.c
 *
 * Copyright (C) 1994-1996, 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, zero the whole master structure.
   * But error manager pointer is already there, so save and restore it.
   */
  {
    struct jpeg_error_mgr * err = cinfo->err;
    MEMZERO(cinfo, SIZEOF(struct jpeg_compress_struct));
    cinfo->err = err;
  }
  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->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)
{
  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_any_marker) (cinfo, marker, dataptr, datalen);
}


/*
 * 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);
  /* We can use jpeg_abort to release memory. */
  jpeg_abort((j_common_ptr) cinfo);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色窝79yyyycom| 97精品久久久午夜一区二区三区| 亚洲男人都懂的| 国产精品午夜在线| 中文字幕精品在线不卡| 欧美激情一区二区三区蜜桃视频 | 91成人在线精品| 93久久精品日日躁夜夜躁欧美| 国产精品 日产精品 欧美精品| 高清日韩电视剧大全免费| 成人午夜又粗又硬又大| 99免费精品视频| 色屁屁一区二区| 欧美日本在线看| 欧美成人午夜电影| 中文在线免费一区三区高中清不卡| 国产精品视频在线看| 亚洲免费观看在线观看| 日韩精品午夜视频| 国产精品99久久久久| 91丨porny丨蝌蚪视频| 欧美日韩精品欧美日韩精品一综合| 欧美一级搡bbbb搡bbbb| 久久精品欧美日韩| 亚洲成a人在线观看| 国产一区二区免费视频| av亚洲精华国产精华精| 欧美肥胖老妇做爰| 欧美国产精品一区| 五月天一区二区| 国产成人鲁色资源国产91色综| 日本高清无吗v一区| 欧美成人一区二区| 自拍偷拍国产精品| 美女www一区二区| 94-欧美-setu| 久久久不卡网国产精品一区| 亚洲精品成人a在线观看| 久久国产视频网| 97超碰欧美中文字幕| 日韩欧美成人激情| 亚洲国产中文字幕在线视频综合| 国产一区二区三区黄视频 | 成人av片在线观看| 欧美日韩免费一区二区三区视频| 国产午夜久久久久| 香蕉久久夜色精品国产使用方法| 国产ts人妖一区二区| 91精品国产综合久久精品麻豆| 国产精品福利影院| 国产露脸91国语对白| 欧美精品自拍偷拍| 亚洲免费观看高清完整| 国产电影一区在线| 日韩欧美国产午夜精品| 亚洲成人一二三| 91成人在线精品| 国产精品久久久久9999吃药| 国产成人午夜精品影院观看视频 | 亚洲亚洲精品在线观看| 国产98色在线|日韩| 日韩精品最新网址| 日本欧美一区二区| 日韩一级片在线播放| 亚洲第一av色| 欧美丝袜丝nylons| 亚洲一区二区视频在线观看| av不卡免费在线观看| 中文字幕va一区二区三区| 久久精品999| 久久综合成人精品亚洲另类欧美 | 亚洲一区视频在线观看视频| 成人av中文字幕| 最新不卡av在线| 91亚洲精品一区二区乱码| 中文字幕亚洲一区二区av在线 | 国产午夜精品美女毛片视频| 精品在线一区二区| 精品成人一区二区三区| 国产在线不卡一卡二卡三卡四卡| 精品国产髙清在线看国产毛片| 蜜乳av一区二区三区| 久久综合丝袜日本网| 国产精华液一区二区三区| 久久久www成人免费毛片麻豆| 国产九色精品成人porny| 国产日韩精品视频一区| 9色porny自拍视频一区二区| 亚洲综合激情小说| 欧美理论在线播放| 久久精品国产一区二区| 久久久国产精华| 色狠狠色狠狠综合| 日韩在线一二三区| 久久色成人在线| www.亚洲免费av| 亚洲一区自拍偷拍| 精品美女一区二区三区| 粉嫩av一区二区三区在线播放| 亚洲欧美视频在线观看视频| 欧美卡1卡2卡| 国产成人免费高清| 性做久久久久久久久| 久久久久久久久久久久久夜| 成人app网站| 午夜精品在线看| 久久九九99视频| 欧美日韩一级大片网址| 国模无码大尺度一区二区三区| 国产精品国模大尺度视频| 欧美色图第一页| 国产成人在线观看免费网站| 亚洲 欧美综合在线网络| 久久久久亚洲蜜桃| 欧美亚洲禁片免费| 国产精品一区二区三区网站| 性做久久久久久免费观看 | 日韩国产欧美一区二区三区| 国产欧美日韩视频在线观看| 欧美色爱综合网| 成人午夜短视频| 日本人妖一区二区| 亚洲摸摸操操av| 国产欧美日韩激情| 777午夜精品视频在线播放| 成人午夜激情在线| 免费xxxx性欧美18vr| 一区二区三区日韩| 国产日韩欧美精品综合| 欧美片在线播放| 在线看不卡av| 99久久精品情趣| 成人福利视频在线看| 国产综合色在线视频区| 亚洲va欧美va天堂v国产综合| 中文字幕色av一区二区三区| 国产欧美日产一区| 久久蜜桃一区二区| 日韩美女天天操| 欧美一级一区二区| 欧美日韩亚洲高清一区二区| 色综合久久中文综合久久97| 成人福利视频在线| 丁香婷婷深情五月亚洲| 国产精品主播直播| 国产在线精品视频| 日本va欧美va瓶| 激情成人综合网| 激情综合色综合久久综合| 精品一区二区三区在线观看国产| 日日夜夜精品视频免费| 日欧美一区二区| 日本亚洲三级在线| 麻豆成人免费电影| 免费观看日韩电影| 久久精品国产999大香线蕉| 捆绑变态av一区二区三区| 日产国产高清一区二区三区| 日韩av一二三| 国产精品自拍在线| 成人精品视频.| 99久久国产综合精品女不卡| 91激情在线视频| 欧美日韩高清在线播放| 欧美一级在线视频| 国产日产精品一区| 国产精品久久久久久一区二区三区| 国产精品国产三级国产a| 中文字幕一区二区三区四区不卡| 国产精品传媒在线| 自拍偷拍亚洲激情| 亚洲综合色自拍一区| 日日夜夜一区二区| 国产一区二区免费视频| 菠萝蜜视频在线观看一区| 91小视频免费看| 欧美军同video69gay| 久久综合色一综合色88| 国产精品传媒视频| 午夜成人免费视频| 国产寡妇亲子伦一区二区| 1000精品久久久久久久久| 麻豆精品一区二区三区| 国产精品自产自拍| 欧美亚洲动漫另类| 久久综合九色综合97婷婷| 亚洲日穴在线视频| 美国毛片一区二区三区| 99久久伊人精品| 日韩一级黄色片| 亚洲精品亚洲人成人网| 麻豆精品视频在线观看视频| 成人av免费在线| 精品国产免费久久| 一二三区精品视频| 国产成人亚洲精品狼色在线| 欧美日韩在线观看一区二区| 中文一区二区完整视频在线观看| 首页亚洲欧美制服丝腿| 99国产欧美另类久久久精品|