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

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

?? jdatadst.c

?? wince下CxImage
?? C
字號:
/*
 * jdatadst.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 compression data destination routines for the case of
 * emitting JPEG data to a file (or any stdio stream).  While these routines
 * are sufficient for most applications, some will want to use a different
 * destination manager.
 * IMPORTANT: we assume that fwrite() will correctly transcribe an array of
 * JOCTETs into 8-bit-wide elements on external storage.  If char is wider
 * than 8 bits on your machine, you may need to do some tweaking.
 */

/* this is not a core library module, so it doesn't define JPEG_INTERNALS */
#include "jinclude.h"
#include "jpeglib.h"
#include "jerror.h"


/* Expanded data destination object for stdio output */

typedef struct {
  struct jpeg_destination_mgr pub; /* public fields */

  FILE * outfile;		/* target stream */
  JOCTET * buffer;		/* start of buffer */
} my_destination_mgr;

typedef my_destination_mgr * my_dest_ptr;

#define OUTPUT_BUF_SIZE  4096	/* choose an efficiently fwrite'able size */


/*
 * Initialize destination --- called by jpeg_start_compress
 * before any data is actually written.
 */

METHODDEF(void)
init_destination (j_compress_ptr cinfo)
{
  my_dest_ptr dest = (my_dest_ptr) cinfo->dest;

  /* Allocate the output buffer --- it will be released when done with image */
  dest->buffer = (JOCTET *)
      (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
				  OUTPUT_BUF_SIZE * SIZEOF(JOCTET));

  dest->pub.next_output_byte = dest->buffer;
  dest->pub.free_in_buffer = OUTPUT_BUF_SIZE;
}


/*
 * Empty the output buffer --- called whenever buffer fills up.
 *
 * In typical applications, this should write the entire output buffer
 * (ignoring the current state of next_output_byte & free_in_buffer),
 * reset the pointer & count to the start of the buffer, and return TRUE
 * indicating that the buffer has been dumped.
 *
 * In applications that need to be able to suspend compression due to output
 * overrun, a FALSE return indicates that the buffer cannot be emptied now.
 * In this situation, the compressor will return to its caller (possibly with
 * an indication that it has not accepted all the supplied scanlines).  The
 * application should resume compression after it has made more room in the
 * output buffer.  Note that there are substantial restrictions on the use of
 * suspension --- see the documentation.
 *
 * When suspending, the compressor will back up to a convenient restart point
 * (typically the start of the current MCU). next_output_byte & free_in_buffer
 * indicate where the restart point will be if the current call returns FALSE.
 * Data beyond this point will be regenerated after resumption, so do not
 * write it out when emptying the buffer externally.
 */

METHODDEF(boolean)
empty_output_buffer (j_compress_ptr cinfo)
{
  my_dest_ptr dest = (my_dest_ptr) cinfo->dest;

  if (JFWRITE(dest->outfile, dest->buffer, OUTPUT_BUF_SIZE) !=
      (size_t) OUTPUT_BUF_SIZE)
    ERREXIT(cinfo, JERR_FILE_WRITE);

  dest->pub.next_output_byte = dest->buffer;
  dest->pub.free_in_buffer = OUTPUT_BUF_SIZE;

  return TRUE;
}


/*
 * Terminate destination --- called by jpeg_finish_compress
 * after all data has been written.  Usually needs to flush buffer.
 *
 * NB: *not* called by jpeg_abort or jpeg_destroy; surrounding
 * application must deal with any cleanup that should happen even
 * for error exit.
 */

METHODDEF(void)
term_destination (j_compress_ptr cinfo)
{
  my_dest_ptr dest = (my_dest_ptr) cinfo->dest;
  size_t datacount = OUTPUT_BUF_SIZE - dest->pub.free_in_buffer;

  /* Write any data remaining in the buffer */
  if (datacount > 0) {
    if (JFWRITE(dest->outfile, dest->buffer, datacount) != datacount)
      ERREXIT(cinfo, JERR_FILE_WRITE);
  }
  fflush(dest->outfile);
  /* Make sure we wrote the output file OK */
  if (ferror(dest->outfile))
    ERREXIT(cinfo, JERR_FILE_WRITE);
}


/*
 * Prepare for output to a stdio stream.
 * The caller must have already opened the stream, and is responsible
 * for closing it after finishing compression.
 */

GLOBAL(void)
jpeg_stdio_dest (j_compress_ptr cinfo, FILE * outfile)
{
  my_dest_ptr dest;

  /* The destination object is made permanent so that multiple JPEG images
   * can be written to the same file without re-executing jpeg_stdio_dest.
   * This makes it dangerous to use this manager and a different destination
   * manager serially with the same JPEG object, because their private object
   * sizes may be different.  Caveat programmer.
   */
  if (cinfo->dest == NULL) {	/* first time for this JPEG object? */
    cinfo->dest = (struct jpeg_destination_mgr *)
      (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,
				  SIZEOF(my_destination_mgr));
  }

  dest = (my_dest_ptr) cinfo->dest;
  dest->pub.init_destination = init_destination;
  dest->pub.empty_output_buffer = empty_output_buffer;
  dest->pub.term_destination = term_destination;
  dest->outfile = outfile;
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
香蕉av福利精品导航| 国产精品久久久久久久久动漫 | 成人美女视频在线看| 久久久美女毛片| 国产69精品久久久久毛片| 中文在线一区二区| 欧美在线视频你懂得| 日本不卡的三区四区五区| 久久亚洲捆绑美女| 9人人澡人人爽人人精品| 一区二区三区四区在线免费观看 | 波多野结衣精品在线| 自拍视频在线观看一区二区| 在线影院国内精品| 日韩国产欧美三级| 国产日产精品1区| 欧美艳星brazzers| 精品综合免费视频观看| 欧美激情综合网| 欧美三级中文字幕| 狠狠色丁香九九婷婷综合五月| 国产精品久久久一区麻豆最新章节| 欧洲亚洲精品在线| 国产伦精品一区二区三区在线观看| 国产精品美女一区二区三区| 色屁屁一区二区| 狠狠色2019综合网| 亚洲夂夂婷婷色拍ww47| 久久久精品免费观看| 欧美日韩视频一区二区| 粉嫩欧美一区二区三区高清影视| 亚洲综合av网| 国产精品免费视频观看| 日韩欧美电影一区| 不卡av在线免费观看| 蜜臀久久99精品久久久久久9| 一色桃子久久精品亚洲| 日韩区在线观看| 在线精品观看国产| 成人黄色小视频在线观看| 水野朝阳av一区二区三区| 国产精品人人做人人爽人人添| 91精品国产aⅴ一区二区| 91美女视频网站| 国产精品一区二区久激情瑜伽| 天使萌一区二区三区免费观看| 国产精品少妇自拍| 精品国产百合女同互慰| 欧美在线一区二区三区| 99视频热这里只有精品免费| 激情综合色播五月| 五月激情丁香一区二区三区| 亚洲精品视频自拍| 欧美国产一区视频在线观看| 精品国产乱码久久久久久久久| 在线观看亚洲专区| 一道本成人在线| 成人激情免费视频| 国产成人日日夜夜| 国产一区欧美二区| 精品一区二区影视| 久久精品国产澳门| 麻豆视频一区二区| 免费亚洲电影在线| 日本不卡高清视频| 奇米精品一区二区三区在线观看| 亚洲第一av色| 亚洲18女电影在线观看| 亚洲国产毛片aaaaa无费看| 中文字幕一区日韩精品欧美| 欧美国产国产综合| 久久精品一区蜜桃臀影院| 精品区一区二区| 精品国产污污免费网站入口 | 国产亚洲欧美一级| 精品久久久久久最新网址| 日韩欧美中文一区| 日韩片之四级片| 亚洲精品在线免费观看视频| 26uuu久久天堂性欧美| 久久婷婷成人综合色| 国产亚洲精品aa午夜观看| 久久在线免费观看| 国产午夜亚洲精品午夜鲁丝片 | 亚洲高清一区二区三区| 一级特黄大欧美久久久| 亚洲午夜在线观看视频在线| 亚洲成人av电影| 九一九一国产精品| 国产成人综合亚洲91猫咪| 99热在这里有精品免费| 91久久国产最好的精华液| 欧美日韩高清一区二区不卡| 日韩一区二区影院| 久久精品一区八戒影视| 一区免费观看视频| 午夜精品福利久久久| 秋霞影院一区二区| 国产福利一区二区三区在线视频| 成人毛片在线观看| 欧美在线影院一区二区| 日韩精品中文字幕在线一区| 日本一区二区免费在线| 亚洲综合免费观看高清完整版| 蜜桃视频在线一区| 成人av影视在线观看| 欧美日韩国产高清一区二区| 日韩情涩欧美日韩视频| 亚洲欧洲av在线| 婷婷开心激情综合| 成人高清免费观看| 欧美一区国产二区| 中文字幕av一区二区三区高| 亚洲国产综合在线| 国产精品亚洲成人| 欧美日韩成人综合天天影院 | 1024国产精品| 蜜臀av在线播放一区二区三区| 成人三级在线视频| 欧美精品第1页| 国产精品久久久久久久午夜片| 五月天久久比比资源色| 丁香啪啪综合成人亚洲小说| 91精品中文字幕一区二区三区| 久久久激情视频| 日韩精品电影在线观看| 99国产精品久| 久久综合久久鬼色| 亚洲国产成人高清精品| 成人中文字幕合集| 欧美一区二区三区免费| 亚洲综合色区另类av| 国产成人免费视频一区| 91精品国产乱码| 亚洲一区影音先锋| 成人手机在线视频| 欧美成人午夜电影| 日韩在线卡一卡二| 色成年激情久久综合| 国产精品进线69影院| 国产一区二区成人久久免费影院| 欧美日本高清视频在线观看| 国产精品久久久一本精品| 国模冰冰炮一区二区| 欧美一卡二卡在线观看| 亚洲成av人片www| 日本大香伊一区二区三区| 亚洲国产激情av| 国产成人丝袜美腿| 久久综合狠狠综合久久综合88 | 国产欧美日韩另类视频免费观看| 不卡的av中国片| 久久亚洲精精品中文字幕早川悠里| 日本大胆欧美人术艺术动态| 欧美无人高清视频在线观看| 亚洲美女区一区| 色8久久精品久久久久久蜜| 国产精品久久久久久一区二区三区| 国产成人免费视频精品含羞草妖精| 日韩精品中文字幕一区| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美人与性动xxxx| 天天操天天色综合| 欧美日韩国产系列| 爽好多水快深点欧美视频| 欧美丰满少妇xxxbbb| 日本人妖一区二区| 日韩三级.com| 国产一区二区三区免费播放| 久久青草国产手机看片福利盒子| 精品在线播放免费| 国产无一区二区| 成人av电影免费在线播放| 亚洲欧洲精品成人久久奇米网| 99久久er热在这里只有精品66| 亚洲欧洲日韩一区二区三区| 色综合久久中文综合久久牛| 亚洲一二三四在线| 欧美丰满少妇xxxxx高潮对白 | 精品一区二区在线看| 久久久久9999亚洲精品| 成人av在线一区二区三区| 亚洲女人****多毛耸耸8| 欧美日韩免费视频| 蜜臀av一区二区| 中文字幕欧美三区| 91福利视频久久久久| 日韩av在线发布| 久久九九全国免费| 91黄色在线观看| 美国十次了思思久久精品导航| 久久精品一区二区三区av| 972aa.com艺术欧美| 亚洲韩国精品一区| 久久亚洲一级片| 色噜噜偷拍精品综合在线| 蜜桃av一区二区三区| 日本一区二区综合亚洲| 欧美日韩在线一区二区| 国产一区二区在线影院|