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

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

?? jdatadst.c

?? windows CE下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;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲123区在线观看| 久久影院午夜论| 丰满岳乱妇一区二区三区| 久久精品国产99| 日韩电影免费在线| 日韩1区2区3区| 美女一区二区久久| 久久99精品国产麻豆婷婷洗澡| 丝袜国产日韩另类美女| 日本成人在线不卡视频| 性感美女极品91精品| 免费成人在线播放| 国模一区二区三区白浆| 国产精品一区二区果冻传媒| 成人av电影在线网| 色激情天天射综合网| 欧美影院一区二区| 日韩免费一区二区| 亚洲国产高清在线观看视频| 亚洲同性gay激情无套| 婷婷久久综合九色综合伊人色| 天天综合网天天综合色| 韩国在线一区二区| av在线不卡观看免费观看| 精品视频免费在线| xfplay精品久久| 亚洲人吸女人奶水| 奇米影视7777精品一区二区| 懂色av一区二区三区免费观看| 色婷婷亚洲精品| 777a∨成人精品桃花网| 国产午夜亚洲精品羞羞网站| 亚洲嫩草精品久久| 久久精品国产亚洲5555| 91小宝寻花一区二区三区| 91精品国产色综合久久不卡电影| ww久久中文字幕| 亚洲一区免费观看| 国产一区美女在线| 欧美亚洲国产一区二区三区 | 亚洲欧美偷拍卡通变态| 丝袜美腿成人在线| 91蜜桃在线免费视频| 日韩欧美视频在线| 亚洲综合自拍偷拍| 成人综合婷婷国产精品久久免费| 欧美午夜宅男影院| 国产精品美女久久久久久久| 美女脱光内衣内裤视频久久网站| 成人网在线播放| 日韩精品一区在线观看| 亚洲激情六月丁香| 成人国产精品免费观看动漫| 91精品国产一区二区三区香蕉| 中文字幕制服丝袜成人av| 久久精品国产成人一区二区三区| 91麻豆.com| 欧美国产综合色视频| 久久99九九99精品| 欧美一区二区精美| 亚洲国产成人va在线观看天堂| 北条麻妃一区二区三区| 国产亚洲精品bt天堂精选| 青青草一区二区三区| 精品视频一区二区不卡| 亚洲资源中文字幕| 日本乱人伦一区| 亚洲欧洲精品成人久久奇米网| 国产乱对白刺激视频不卡| 精品国产网站在线观看| 日韩成人午夜精品| 日韩一级完整毛片| 久久超碰97中文字幕| 欧美mv和日韩mv国产网站| 激情综合网最新| 亚洲精品一区二区三区影院| 久久成人久久爱| 久久色.com| 成人性生交大片免费看视频在线| 国产欧美日韩在线| 成人永久aaa| 日韩码欧中文字| 在线看日韩精品电影| 亚洲成在线观看| 日韩欧美国产wwwww| 国产精品538一区二区在线| 久久久电影一区二区三区| 成人网在线免费视频| 亚洲猫色日本管| 欧美日韩成人综合| 久久国内精品自在自线400部| 欧美一区二区精品| 国产高清精品网站| 亚洲乱码国产乱码精品精98午夜| 欧美视频在线观看一区| 日本欧美大码aⅴ在线播放| 久久伊人中文字幕| 99精品视频中文字幕| 亚洲一卡二卡三卡四卡| 欧美成人高清电影在线| 91片黄在线观看| 免费三级欧美电影| 国产精品妹子av| 在线播放欧美女士性生活| 国模冰冰炮一区二区| 亚洲色大成网站www久久九九| 欧美日韩日本视频| 国产精品一区二区x88av| 亚洲精品免费在线| 欧美xxxx老人做受| 色综合久久久久网| 久久99精品一区二区三区三区| 国产精品久久久久aaaa| 91麻豆精品国产91久久久使用方法| 国产麻豆精品视频| 亚洲6080在线| 国产精品久久久久久久第一福利| 91麻豆精品国产自产在线| caoporn国产一区二区| 视频在线在亚洲| 亚洲同性同志一二三专区| 欧美tickling挠脚心丨vk| 欧美亚州韩日在线看免费版国语版| 国产精品一区在线观看乱码| 午夜精彩视频在线观看不卡| 国产精品三级av| 精品久久久影院| 欧美高清www午色夜在线视频| 91无套直看片红桃| 国产成人在线视频网站| 日韩成人午夜电影| 亚洲午夜激情av| 亚洲少妇最新在线视频| 国产女人aaa级久久久级| 日韩精品中文字幕一区二区三区| 欧美羞羞免费网站| 一本色道久久综合亚洲精品按摩| 国产精品538一区二区在线| 久久aⅴ国产欧美74aaa| 日韩成人午夜电影| 日韩成人免费在线| 日韩av在线播放中文字幕| 亚洲一区二区三区四区中文字幕 | 成人久久视频在线观看| 精品系列免费在线观看| 久久精品国产99国产| 久久精品国产在热久久| 六月丁香婷婷久久| 激情五月婷婷综合网| 国内精品视频一区二区三区八戒 | 欧美高清在线一区| 久久精品一区二区三区不卡牛牛| 日韩一区二区三区观看| 欧美成人aa大片| xnxx国产精品| 国产欧美日韩在线看| 日本一区二区免费在线| 国产精品电影一区二区| 国产精品灌醉下药二区| 亚洲美女屁股眼交3| 亚洲午夜影视影院在线观看| 五月婷婷久久丁香| 日韩成人一区二区| 精品写真视频在线观看| 成人免费视频一区二区| 99精品国产一区二区三区不卡 | 亚洲一区二区综合| 亚洲va国产天堂va久久en| 日本亚洲视频在线| 精品一区二区免费在线观看| 国产精品99久久久久久久女警| 丁香五精品蜜臀久久久久99网站| av不卡一区二区三区| 欧美日韩在线播| 精品国产1区2区3区| 国产精品网站在线观看| 亚洲综合在线观看视频| 日韩不卡在线观看日韩不卡视频| 久久99精品久久久久| 不卡的av电影在线观看| 在线综合+亚洲+欧美中文字幕| 久久久久久久久99精品| 亚洲精品成人天堂一二三| 美女网站色91| 色综合久久综合| 日韩欧美在线综合网| 日韩一区在线看| 免费观看成人av| www.欧美色图| 91精品国产综合久久久久| 久久久国产精华| 午夜免费欧美电影| 成人免费毛片aaaaa**| 欧美日韩视频在线第一区| 日本一区二区久久| 美女视频黄 久久| 国产三区在线成人av| 久久99久久久欧美国产| 99久久99久久精品免费看蜜桃| 欧美一区二区三区思思人|