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

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

?? jdatadst.c

?? JPEG source code converts the image into compressed format
?? 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一区二区三区免费野_久草精品视频
大陆成人av片| 久久精品久久99精品久久| 成人高清视频在线| 中文字幕一区在线观看视频| 91蜜桃婷婷狠狠久久综合9色| 亚洲精品亚洲人成人网| 欧美日韩亚洲综合在线 | 亚洲欧美日韩综合aⅴ视频| a亚洲天堂av| 亚洲妇熟xx妇色黄| 欧美成人精品福利| 国产91对白在线观看九色| 亚洲美女一区二区三区| 欧美三级三级三级爽爽爽| 麻豆精品久久精品色综合| 国产精品美女久久久久aⅴ国产馆| 91在线小视频| 理论电影国产精品| 亚洲欧洲精品一区二区三区不卡| 欧美色欧美亚洲另类二区| 美女精品一区二区| 成人免费在线视频| 日韩女优视频免费观看| 成人福利电影精品一区二区在线观看| 亚洲女爱视频在线| 亚洲精品在线三区| 色综合欧美在线| 精品一区二区免费在线观看| 国产精品久久久久一区 | 91原创在线视频| 五月婷婷综合在线| 中文字幕亚洲欧美在线不卡| 911国产精品| 99久久精品国产毛片| 蜜桃久久久久久| 一区二区三区在线观看国产| 久久这里只有精品6| 欧美日韩综合一区| 懂色av一区二区三区免费看| 亚洲va韩国va欧美va| 中文字幕乱码亚洲精品一区| 欧美人牲a欧美精品| 成人av高清在线| 麻豆91精品91久久久的内涵| 一区二区三区中文免费| 2024国产精品| 91精品国产高清一区二区三区蜜臀| 成人激情动漫在线观看| 久久99在线观看| 亚洲电影欧美电影有声小说| 国产精品久久久久婷婷| 精品福利一区二区三区免费视频| 欧美视频一区二区三区在线观看 | 美女在线一区二区| 亚洲va天堂va国产va久| 亚洲精品中文字幕乱码三区| 欧美国产禁国产网站cc| 久久久久国产精品人| 欧美一区二区三区视频在线| 欧美性受xxxx| 欧美主播一区二区三区| 91在线观看高清| 99久久精品免费看国产免费软件| 国内外精品视频| 韩国女主播一区| 久久精品免费看| 日本欧美一区二区| 日韩激情中文字幕| 午夜伦欧美伦电影理论片| 一区二区三区在线影院| 亚洲精品视频一区| 综合电影一区二区三区| 亚洲欧洲综合另类| 国产精品一区在线观看你懂的| 国产日韩欧美精品综合| 久久九九全国免费| 国产日产精品一区| 国产精品网站在线播放| 国产精品久久久久久久久久久免费看 | 天涯成人国产亚洲精品一区av| 一区二区理论电影在线观看| 亚洲一区在线视频观看| 图片区小说区国产精品视频| 日韩电影免费在线看| 麻豆国产一区二区| 国产在线视频一区二区三区| 国产美女娇喘av呻吟久久| 极品美女销魂一区二区三区| 久久99国产精品久久| 国产一区二区三区免费| 成人三级在线视频| 91在线视频免费91| 欧美日韩成人综合| 精品99999| 国产精品区一区二区三| 一区二区三区久久| 男人的天堂亚洲一区| 国产一区视频在线看| 粉嫩一区二区三区在线看| 99精品在线免费| 欧美日韩小视频| 日韩欧美激情四射| 中文字幕在线观看不卡| 亚洲韩国一区二区三区| 麻豆国产欧美日韩综合精品二区| 国产一区二区视频在线| 91视频www| 69堂亚洲精品首页| 国产亚洲精品免费| 一区二区三区日韩精品视频| 青青草成人在线观看| 国产精品99久久久久久似苏梦涵| 91网站在线观看视频| 欧美美女网站色| 久久人人97超碰com| 一区二区三区四区五区视频在线观看| 亚洲成人免费看| 国产精品88888| 欧美日韩免费视频| 中文字幕精品一区| 日韩电影在线观看一区| av在线不卡观看免费观看| 欧美一区二区视频观看视频| 国产精品久久三| 久久精品久久精品| 欧美日韩亚洲丝袜制服| 欧美激情中文字幕| 五月天激情综合| 91麻豆swag| 久久久久国色av免费看影院| 首页亚洲欧美制服丝腿| 成人丝袜视频网| 精品国产污污免费网站入口 | 欧美大片日本大片免费观看| 中文字幕中文字幕中文字幕亚洲无线| 午夜在线成人av| www.欧美.com| wwwwww.欧美系列| 肉丝袜脚交视频一区二区| av不卡免费电影| 久久精品亚洲精品国产欧美kt∨| 日本一不卡视频| 91丨九色丨尤物| 国产婷婷色一区二区三区四区| 免费成人av在线播放| 欧美唯美清纯偷拍| 亚洲欧美日韩一区| 成人av免费在线播放| 亚洲国产精品成人综合| 国产一区二区三区四| 精品欧美久久久| 日本中文在线一区| 欧美日韩高清一区| 亚洲国产一区二区在线播放| 色狠狠色噜噜噜综合网| 中文字幕一区二区三区四区 | 精品国产91九色蝌蚪| 日韩国产在线观看| 欧美日韩免费一区二区三区 | 全国精品久久少妇| 欧美日韩免费观看一区二区三区| 亚洲人成影院在线观看| av成人老司机| 中文字幕日韩一区二区| 国产成人精品www牛牛影视| 国产亚洲精品资源在线26u| 国产黄色精品视频| 国产欧美一区视频| a在线播放不卡| 亚洲另类春色国产| 欧美日本一道本在线视频| 亚洲永久免费av| 3d动漫精品啪啪1区2区免费 | 国产亚洲精品7777| 成人一道本在线| 中文字幕国产精品一区二区| 成人爽a毛片一区二区免费| 亚洲色图制服诱惑 | 欧美r级电影在线观看| 久久激情五月婷婷| 久久精品视频在线看| 大尺度一区二区| 亚洲最大成人综合| 欧美一级日韩免费不卡| 国产美女在线观看一区| 国产精品久久久久久妇女6080 | 色综合久久综合| 亚洲一区二区三区精品在线| 欧美精品在线视频| 久久精品国产一区二区| 久久精品这里都是精品| 91网站黄www| 日韩国产欧美一区二区三区| 精品国产免费人成电影在线观看四季| 国产精品中文有码| 一区二区三区波多野结衣在线观看| 久久不见久久见免费视频7| 国产三级精品视频| 在线看国产一区二区| 免费看欧美女人艹b|