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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? jerror.c

?? 常好且全面的jpeg圖像壓縮算法
?? C
字號(hào):
/*
 * jerror.c
 *
 * Copyright (C) 1991-1998, 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 simple error-reporting and trace-message routines.
 * These are suitable for Unix-like systems and others where writing to
 * stderr is the right thing to do.  Many applications will want to replace
 * some or all of these routines.
 *
 * If you define USE_WINDOWS_MESSAGEBOX in jconfig.h or in the makefile,
 * you get a Windows-specific hack to display error messages in a dialog box.
 * It ain't much, but it beats dropping error messages into the bit bucket,
 * which is what happens to output to stderr under most Windows C compilers.
 *
 * These routines are used by both the compression and decompression code.
 */

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

#ifdef USE_WINDOWS_MESSAGEBOX
#include <windows.h>
#endif

#ifndef EXIT_FAILURE		/* define exit() codes if not provided */
#define EXIT_FAILURE  1
#endif


/*
 * Create the message string table.
 * We do this from the master message list in jerror.h by re-reading
 * jerror.h with a suitable definition for macro JMESSAGE.
 * The message table is made an external symbol just in case any applications
 * want to refer to it directly.
 */

#ifdef NEED_SHORT_EXTERNAL_NAMES
#define jpeg_std_message_table	jMsgTable
#endif

#define JMESSAGE(code,string)	string ,

const char * const jpeg_std_message_table[] = {
#include "jerror.h"
  NULL
};


/*
 * Error exit handler: must not return to caller.
 *
 * Applications may override this if they want to get control back after
 * an error.  Typically one would longjmp somewhere instead of exiting.
 * The setjmp buffer can be made a private field within an expanded error
 * handler object.  Note that the info needed to generate an error message
 * is stored in the error object, so you can generate the message now or
 * later, at your convenience.
 * You should make sure that the JPEG object is cleaned up (with jpeg_abort
 * or jpeg_destroy) at some point.
 */

METHODDEF(void)
error_exit (j_common_ptr cinfo)
{
  /* Always display the message */
  (*cinfo->err->output_message) (cinfo);

  /* Let the memory manager delete any temp files before we die */
  jpeg_destroy(cinfo);

  exit(EXIT_FAILURE);
}


/*
 * Actual output of an error or trace message.
 * Applications may override this method to send JPEG messages somewhere
 * other than stderr.
 *
 * On Windows, printing to stderr is generally completely useless,
 * so we provide optional code to produce an error-dialog popup.
 * Most Windows applications will still prefer to override this routine,
 * but if they don't, it'll do something at least marginally useful.
 *
 * NOTE: to use the library in an environment that doesn't support the
 * C stdio library, you may have to delete the call to fprintf() entirely,
 * not just not use this routine.
 */

METHODDEF(void)
output_message (j_common_ptr cinfo)
{
  char buffer[JMSG_LENGTH_MAX];

  /* Create the message */
  (*cinfo->err->format_message) (cinfo, buffer);

#ifdef USE_WINDOWS_MESSAGEBOX
  /* Display it in a message dialog box */
  MessageBox(GetActiveWindow(), buffer, "JPEG Library Error",
	     MB_OK | MB_ICONERROR);
#else
  /* Send it to stderr, adding a newline */
  fprintf(stderr, "%s\n", buffer);
#endif
}


/*
 * Decide whether to emit a trace or warning message.
 * msg_level is one of:
 *   -1: recoverable corrupt-data warning, may want to abort.
 *    0: important advisory messages (always display to user).
 *    1: first level of tracing detail.
 *    2,3,...: successively more detailed tracing messages.
 * An application might override this method if it wanted to abort on warnings
 * or change the policy about which messages to display.
 */

METHODDEF(void)
emit_message (j_common_ptr cinfo, int msg_level)
{
  struct jpeg_error_mgr * err = cinfo->err;

  if (msg_level < 0) {
    /* It's a warning message.  Since corrupt files may generate many warnings,
     * the policy implemented here is to show only the first warning,
     * unless trace_level >= 3.
     */
    if (err->num_warnings == 0 || err->trace_level >= 3)
      (*err->output_message) (cinfo);
    /* Always count warnings in num_warnings. */
    err->num_warnings++;
  } else {
    /* It's a trace message.  Show it if trace_level >= msg_level. */
    if (err->trace_level >= msg_level)
      (*err->output_message) (cinfo);
  }
}


/*
 * Format a message string for the most recent JPEG error or message.
 * The message is stored into buffer, which should be at least JMSG_LENGTH_MAX
 * characters.  Note that no '\n' character is added to the string.
 * Few applications should need to override this method.
 */

METHODDEF(void)
format_message (j_common_ptr cinfo, char * buffer)
{
  struct jpeg_error_mgr * err = cinfo->err;
  int msg_code = err->msg_code;
  const char * msgtext = NULL;
  const char * msgptr;
  char ch;
  boolean isstring;

  /* Look up message string in proper table */
  if (msg_code > 0 && msg_code <= err->last_jpeg_message) {
    msgtext = err->jpeg_message_table[msg_code];
  } else if (err->addon_message_table != NULL &&
	     msg_code >= err->first_addon_message &&
	     msg_code <= err->last_addon_message) {
    msgtext = err->addon_message_table[msg_code - err->first_addon_message];
  }

  /* Defend against bogus message number */
  if (msgtext == NULL) {
    err->msg_parm.i[0] = msg_code;
    msgtext = err->jpeg_message_table[0];
  }

  /* Check for string parameter, as indicated by %s in the message text */
  isstring = FALSE;
  msgptr = msgtext;
  while ((ch = *msgptr++) != '\0') {
    if (ch == '%') {
      if (*msgptr == 's') isstring = TRUE;
      break;
    }
  }

  /* Format the message into the passed buffer */
  if (isstring)
    sprintf(buffer, msgtext, err->msg_parm.s);
  else
    sprintf(buffer, msgtext,
	    err->msg_parm.i[0], err->msg_parm.i[1],
	    err->msg_parm.i[2], err->msg_parm.i[3],
	    err->msg_parm.i[4], err->msg_parm.i[5],
	    err->msg_parm.i[6], err->msg_parm.i[7]);
}


/*
 * Reset error state variables at start of a new image.
 * This is called during compression startup to reset trace/error
 * processing to default state, without losing any application-specific
 * method pointers.  An application might possibly want to override
 * this method if it has additional error processing state.
 */

METHODDEF(void)
reset_error_mgr (j_common_ptr cinfo)
{
  cinfo->err->num_warnings = 0;
  /* trace_level is not reset since it is an application-supplied parameter */
  cinfo->err->msg_code = 0;	/* may be useful as a flag for "no error" */
}


/*
 * Fill in the standard error-handling methods in a jpeg_error_mgr object.
 * Typical call is:
 *	struct jpeg_compress_struct cinfo;
 *	struct jpeg_error_mgr err;
 *
 *	cinfo.err = jpeg_std_error(&err);
 * after which the application may override some of the methods.
 */

GLOBAL(struct jpeg_error_mgr *)
jpeg_std_error (struct jpeg_error_mgr * err)
{
  err->error_exit = error_exit;
  err->emit_message = emit_message;
  err->output_message = output_message;
  err->format_message = format_message;
  err->reset_error_mgr = reset_error_mgr;

  err->trace_level = 0;		/* default = no tracing */
  err->num_warnings = 0;	/* no warnings emitted yet */
  err->msg_code = 0;		/* may be useful as a flag for "no error" */

  /* Initialize message table pointers */
  err->jpeg_message_table = jpeg_std_message_table;
  err->last_jpeg_message = (int) JMSG_LASTMSGCODE - 1;

  err->addon_message_table = NULL;
  err->first_addon_message = 0;	/* for safety */
  err->last_addon_message = 0;

  return err;
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品久久久久久久一区二区蜜臀| 成人免费视频免费观看| 国产精品国模大尺度视频| 中文字幕在线不卡一区| 亚洲免费毛片网站| 婷婷夜色潮精品综合在线| 裸体在线国模精品偷拍| 国产成人亚洲精品狼色在线| 成人免费高清视频| 欧美亚洲国产bt| 99精品视频免费在线观看| 欧美色综合网站| 日韩欧美在线网站| 国产欧美一区二区精品婷婷 | 樱桃国产成人精品视频| 亚洲自拍偷拍综合| 麻豆成人在线观看| 国产美女av一区二区三区| 成人avav影音| 欧美日韩精品一区二区在线播放| 欧美一级国产精品| 国产精品久久精品日日| 性欧美疯狂xxxxbbbb| 国产在线日韩欧美| 福利一区在线观看| 欧美日本韩国一区二区三区视频 | 丝袜美腿亚洲综合| 国产精品萝li| 欧美国产一区二区在线观看| 亚洲成a人v欧美综合天堂| 国产不卡高清在线观看视频| 欧美性色欧美a在线播放| 国产性天天综合网| 男女激情视频一区| 色婷婷久久综合| 日本一区二区三区电影| 日本aⅴ精品一区二区三区 | 亚洲欧洲精品一区二区精品久久久 | 精品中文字幕一区二区| 欧美性欧美巨大黑白大战| 中文幕一区二区三区久久蜜桃| 日韩av一二三| 在线观看av一区二区| 国产精品午夜免费| 国产一区在线视频| 日韩午夜中文字幕| 亚洲一级不卡视频| 色综合中文字幕国产 | 国产福利不卡视频| 精品福利一二区| 美女国产一区二区| 欧美精品一二三| 亚洲一区二区三区小说| 91亚洲国产成人精品一区二三| 久久久另类综合| 极品少妇xxxx精品少妇偷拍| 欧美一级xxx| 日韩精品欧美精品| 欧美精品视频www在线观看| 亚洲国产日日夜夜| 色欧美乱欧美15图片| 亚洲婷婷综合久久一本伊一区| 国产精品自在在线| 久久久久亚洲蜜桃| 国产精品亚洲午夜一区二区三区 | 国产91在线看| 国产日产亚洲精品系列| 国产精品一级片| 国产片一区二区| 成人黄色软件下载| 中文字幕在线不卡视频| 91婷婷韩国欧美一区二区| 中文字幕中文字幕一区| 99视频精品在线| 亚洲色图欧洲色图| 色999日韩国产欧美一区二区| 亚洲欧美日韩综合aⅴ视频| 91黄视频在线| 亚洲国产日韩a在线播放性色| 欧美三级在线看| 三级久久三级久久| 日韩一级免费观看| 九色综合国产一区二区三区| 久久久精品天堂| 懂色av一区二区在线播放| 中文一区在线播放| 99re热视频这里只精品| 一区二区三区视频在线看| 色婷婷国产精品综合在线观看| 亚洲综合色在线| 91精品国产综合久久小美女| 麻豆精品视频在线| wwwwww.欧美系列| 成人黄色一级视频| 亚洲国产一区二区a毛片| 在线综合亚洲欧美在线视频| 精品一区二区三区免费播放| 欧美高清在线视频| 色噜噜狠狠一区二区三区果冻| 丝袜亚洲另类欧美综合| 久久日一线二线三线suv| 不卡视频在线看| 亚洲一区二区美女| 久久亚洲私人国产精品va媚药| 成人精品国产免费网站| 一区二区欧美在线观看| 欧美一卡二卡三卡四卡| 国产精品一区二区视频| 亚洲免费观看高清在线观看| 欧美一区二区三区公司| 国产成都精品91一区二区三| 一区二区三区在线观看国产| 日韩一区二区在线看| 成人污视频在线观看| 亚洲电影欧美电影有声小说| 精品免费一区二区三区| 91麻豆成人久久精品二区三区| 视频一区中文字幕| 中文字幕精品一区二区精品绿巨人| 在线观看亚洲精品视频| 国产一区二区三区av电影| 亚洲日本丝袜连裤袜办公室| 欧美一级艳片视频免费观看| 成人av网站在线| 日本网站在线观看一区二区三区| 欧美激情在线一区二区三区| 欧美日韩视频在线第一区| 国产盗摄一区二区三区| 天堂久久久久va久久久久| 欧美经典三级视频一区二区三区| 欧美日韩国产精品自在自线| 风间由美一区二区av101 | 日韩欧美专区在线| 99re视频这里只有精品| 狠狠v欧美v日韩v亚洲ⅴ| 亚洲欧美激情插| 国产三级一区二区三区| 3d动漫精品啪啪一区二区竹菊| 丁香一区二区三区| 日韩av高清在线观看| 亚洲猫色日本管| 国产视频亚洲色图| 欧美一级久久久| 欧美日韩国产另类一区| 一本一道久久a久久精品综合蜜臀| 久久成人18免费观看| 亚洲精品日韩专区silk| 国产无遮挡一区二区三区毛片日本| 精品视频在线免费观看| av高清不卡在线| 国产精品自拍一区| 日本午夜精品一区二区三区电影| 亚洲精品免费在线观看| 国产精品女主播av| www精品美女久久久tv| 91精品国产91综合久久蜜臀| 在线观看免费亚洲| 99re这里都是精品| 成人精品免费看| 成人亚洲精品久久久久软件| 狠狠色伊人亚洲综合成人| 日韩中文字幕一区二区三区| 亚洲另类一区二区| 亚洲欧美在线视频| 国产精品每日更新在线播放网址 | 成人av在线资源| 国产一区二区网址| 久久99精品国产91久久来源| 强制捆绑调教一区二区| 亚洲一区二区三区不卡国产欧美| 亚洲天堂中文字幕| 亚洲欧美中日韩| 亚洲欧美综合在线精品| 中文字幕在线不卡一区 | 色婷婷精品久久二区二区蜜臀av| 成人小视频在线观看| 丁香亚洲综合激情啪啪综合| 国产精品18久久久久久久久| 韩国欧美国产1区| 狠狠色综合色综合网络| 久久超级碰视频| 精品一区二区三区视频在线观看| 老司机午夜精品| 精品在线一区二区| 国产乱码精品一区二区三区五月婷 | 欧美系列一区二区| 欧美三级电影网| 91精品国产综合久久香蕉麻豆| 91精品国产综合久久久久久漫画| 欧美一区日本一区韩国一区| 在线不卡中文字幕| 精品少妇一区二区三区在线视频 | 播五月开心婷婷综合| 成人动漫视频在线| av资源网一区| 91久久精品网| 555www色欧美视频| 精品国产亚洲一区二区三区在线观看| 精品1区2区在线观看| 国产欧美一区二区在线|