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

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

?? jdatadst.c

?? 這是JPEG解碼、編碼的源代碼
?? 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一区二区三区免费野_久草精品视频
色哟哟国产精品| 国产一区二区毛片| 欧美日韩日日骚| 亚洲国产欧美在线| 欧美丰满高潮xxxx喷水动漫| 日韩一区二区三区视频| 日韩av中文在线观看| 91精品国产综合久久福利软件| 久久奇米777| 成人动漫一区二区在线| 日韩免费观看高清完整版| 久久国产生活片100| 国产欧美日韩三区| 午夜精品久久久久久久99樱桃| 欧美天堂一区二区三区| 中文字幕的久久| 一本色道久久综合精品竹菊| 天天操天天干天天综合网| av午夜一区麻豆| 亚洲丰满少妇videoshd| 精品国产亚洲在线| 不卡影院免费观看| 久久久久青草大香线综合精品| 成人h动漫精品| 亚洲成人动漫av| 久久久久久久久一| 欧美亚洲高清一区二区三区不卡| 免费黄网站欧美| 91精品国产色综合久久不卡蜜臀 | 精品视频1区2区| 精品无码三级在线观看视频| 亚洲私人黄色宅男| 日韩精品中文字幕在线一区| 99v久久综合狠狠综合久久| 久久色在线观看| 美女诱惑一区二区| 欧美一区二区网站| 成人一区二区三区在线观看| 日韩在线观看一区二区| 国产精品污网站| 日韩欧美国产一二三区| 久久电影网电视剧免费观看| 亚洲蜜臀av乱码久久精品蜜桃| 一本色道a无线码一区v| 国产一区美女在线| 亚洲午夜av在线| 91.麻豆视频| 成人国产精品免费观看动漫| 亚洲a一区二区| 欧美日韩一区二区三区高清| 亚洲一区二区三区免费视频| 久久精品无码一区二区三区| 91精品综合久久久久久| 色偷偷成人一区二区三区91| 国产1区2区3区精品美女| 亚洲国产成人在线| 一本大道久久a久久综合婷婷| 一区二区三区资源| 国产精品久久久久影视| 精品久久免费看| av中文字幕亚洲| 寂寞少妇一区二区三区| 免费人成黄页网站在线一区二区| 日韩欧美专区在线| 欧美三级视频在线播放| 色噜噜狠狠色综合中国| 99久久99久久免费精品蜜臀| 国产99精品国产| 国产尤物一区二区| 一区二区三区在线观看网站| 欧美巨大另类极品videosbest | 91麻豆国产自产在线观看| 一区二区三区四区精品在线视频| 欧美人与性动xxxx| 国产一区二区电影| 亚洲欧美一区二区三区国产精品| 欧美日韩国产乱码电影| 欧美日韩在线不卡| 91福利视频网站| 狠狠色狠狠色合久久伊人| 极品少妇xxxx精品少妇| 黄网站免费久久| 国产另类ts人妖一区二区| 国产馆精品极品| 床上的激情91.| 99在线精品视频| 日本人妖一区二区| 亚洲精品一二三四区| 日韩视频永久免费| 97精品久久久午夜一区二区三区| 日韩经典一区二区| 国产精品美女久久久久aⅴ | 日韩精品一区在线| 91麻豆产精品久久久久久| 精品影院一区二区久久久| 精品一区二区三区蜜桃| 成人综合在线观看| 热久久一区二区| 国产一区二区在线免费观看| 午夜精品福利一区二区三区av| 午夜久久电影网| 精品午夜一区二区三区在线观看| 一区二区欧美视频| 欧美国产丝袜视频| 亚洲免费视频中文字幕| 丝袜国产日韩另类美女| 综合亚洲深深色噜噜狠狠网站| 亚洲愉拍自拍另类高清精品| 日本麻豆一区二区三区视频| 亚洲国产综合91精品麻豆| 中文字幕av一区二区三区高| 日韩欧美中文一区二区| 国产午夜精品在线观看| 日韩精品在线看片z| 国产精品久久久久久久浪潮网站| 精品日韩99亚洲| 91精品国产一区二区三区| 亚洲电影在线播放| 亚洲综合免费观看高清在线观看| 奇米影视7777精品一区二区| 懂色av一区二区在线播放| 美女视频网站黄色亚洲| 丝袜亚洲另类欧美综合| 国产成人精品三级麻豆| 国产一区二区三区四| 毛片av中文字幕一区二区| 爽好多水快深点欧美视频| 豆国产96在线|亚洲| 欧美一区二区三区在线观看| 中文字幕色av一区二区三区| 国产精品无码永久免费888| 日韩国产在线观看一区| 91欧美一区二区| 精品88久久久久88久久久| 精品国产免费人成电影在线观看四季 | 国产精品高潮呻吟| 国产精品国产三级国产普通话三级| 天天影视涩香欲综合网| av爱爱亚洲一区| 99国产麻豆精品| 一本到不卡免费一区二区| 亚洲精品一区二区在线观看| 亚洲妇熟xx妇色黄| 日韩成人免费电影| 91免费看`日韩一区二区| 在线观看www91| 国产精品视频第一区| 中文字幕亚洲欧美在线不卡| 国精品**一区二区三区在线蜜桃| 欧美日韩国产系列| 亚洲精品免费视频| 99久久精品国产毛片| 欧美视频一区在线观看| 在线播放亚洲一区| 亚洲小说欧美激情另类| 99精品在线免费| 欧美日韩在线综合| 亚洲女人****多毛耸耸8| 9i在线看片成人免费| 国产网红主播福利一区二区| 久久99久久99| 欧美成人一区二区三区| 蜜臀国产一区二区三区在线播放| 欧美精品日韩综合在线| 亚洲第一精品在线| 国产一区二区三区精品欧美日韩一区二区三区 | 无码av中文一区二区三区桃花岛| 奇米影视一区二区三区小说| 欧美精品少妇一区二区三区| 久久综合网色—综合色88| 久久99国产精品免费网站| 日韩一区二区电影| 免费在线成人网| 日韩精品最新网址| 亚洲另类中文字| 欧美专区日韩专区| 中文一区二区完整视频在线观看| 亚洲一本大道在线| 成人性视频网站| 1区2区3区国产精品| 91蝌蚪国产九色| 精品国产伦一区二区三区免费| 中日韩av电影| 日本成人在线一区| 日韩精品中文字幕在线一区| 中文字幕在线不卡| www.综合网.com| 中文字幕国产一区| www.欧美亚洲| 日韩一区二区三区高清免费看看| 日本va欧美va瓶| 久久中文字幕电影| www.亚洲色图| 日韩欧美卡一卡二| 国产经典欧美精品| 亚洲男同1069视频| 成人短视频下载| 国产偷国产偷精品高清尤物| fc2成人免费人成在线观看播放| 亚洲一区在线观看视频|