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

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

?? jdapi.c

?? These are all the utilities you need to generate MPEG-I movies on a UNIX box with full motion video
?? C
字號:
/* * jdapi.c * * Copyright (C) 1994, 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 application interface code for the decompression half of * the JPEG library.  Most of the routines intended to be called directly by * an application are in this file.  But also see jcomapi.c for routines * shared by compression and decompression. */#include "jinclude.h"#include "jpegint.h"/* * Initialization of a JPEG decompression object. * The error manager must already be set up (in case memory manager fails). */GLOBAL voidjpeg_create_decompress (j_decompress_ptr cinfo){  int i;  /* For debugging purposes, zero the whole master structure.   * But error manager pointer is already there, so save and restore it.   */  {    struct jpeg_error_mgr * err = cinfo->err;    MEMZERO(cinfo, SIZEOF(struct jpeg_decompress_struct));    cinfo->err = err;  }  cinfo->is_decompressor = TRUE;  /* Initialize a memory manager instance for this object */  jinit_memory_mgr((j_common_ptr) cinfo);  /* Zero out pointers to permanent structures. */  cinfo->progress = NULL;  cinfo->src = NULL;  for (i = 0; i < NUM_QUANT_TBLS; i++)    cinfo->quant_tbl_ptrs[i] = NULL;  for (i = 0; i < NUM_HUFF_TBLS; i++) {    cinfo->dc_huff_tbl_ptrs[i] = NULL;    cinfo->ac_huff_tbl_ptrs[i] = NULL;  }  cinfo->sample_range_limit = NULL;  /* Initialize marker processor so application can override methods   * for COM, APPn markers before calling jpeg_read_header.   */  cinfo->marker = NULL;  jinit_marker_reader(cinfo);  /* OK, I'm ready */  cinfo->global_state = DSTATE_START;}/* * Destruction of a JPEG decompression object */GLOBAL voidjpeg_destroy_decompress (j_decompress_ptr cinfo){  jpeg_destroy((j_common_ptr) cinfo); /* use common routine */}/* * Set default decompression parameters. */LOCAL voiddefault_decompress_parms (j_decompress_ptr cinfo){  /* Guess the input colorspace, and set output colorspace accordingly. */  /* (Wish JPEG committee had provided a real way to specify this...) */  /* Note application may override our guesses. */  cinfo->want_raw_output = FALSE;  switch (cinfo->num_components) {  case 1:    cinfo->jpeg_color_space = JCS_GRAYSCALE;    cinfo->out_color_space = JCS_GRAYSCALE;    break;      case 3:    if (cinfo->saw_JFIF_marker) {      cinfo->jpeg_color_space = JCS_YCbCr; /* JFIF implies YCbCr */    } else if (cinfo->saw_Adobe_marker) {      switch (cinfo->Adobe_transform) {      case 0:	cinfo->jpeg_color_space = JCS_RGB;	break;      case 1:	cinfo->jpeg_color_space = JCS_YCbCr;	break;      default:	WARNMS1(cinfo, JWRN_ADOBE_XFORM, cinfo->Adobe_transform);	cinfo->jpeg_color_space = JCS_YCbCr; /* assume it's YCbCr */	break;      }    } else {      /* Saw no special markers, try to guess from the component IDs */      int cid0 = cinfo->comp_info[0].component_id;      int cid1 = cinfo->comp_info[1].component_id;      int cid2 = cinfo->comp_info[2].component_id;      if (cid0 == 1 && cid1 == 2 && cid2 == 3)	cinfo->jpeg_color_space = JCS_YCbCr; /* assume JFIF w/out marker */      else if (cid0 == 82 && cid1 == 71 && cid2 == 66)	cinfo->jpeg_color_space = JCS_RGB; /* ASCII 'R', 'G', 'B' */      else {	TRACEMS3(cinfo, 1, JTRC_UNKNOWN_IDS, cid0, cid1, cid2);	cinfo->jpeg_color_space = JCS_YCbCr; /* assume it's YCbCr */      }    }    /* Always guess RGB is proper output colorspace. */    cinfo->out_color_space = JCS_RGB;    break;      case 4:    if (cinfo->saw_Adobe_marker) {      switch (cinfo->Adobe_transform) {      case 0:	cinfo->jpeg_color_space = JCS_CMYK;	break;      case 2:	cinfo->jpeg_color_space = JCS_YCCK;	break;      default:	WARNMS1(cinfo, JWRN_ADOBE_XFORM, cinfo->Adobe_transform);	cinfo->jpeg_color_space = JCS_YCCK; /* assume it's YCCK */	break;      }    } else {      /* No special markers, assume straight CMYK. */      cinfo->jpeg_color_space = JCS_CMYK;    }    cinfo->out_color_space = JCS_CMYK;    break;      default:    cinfo->jpeg_color_space = JCS_UNKNOWN;    cinfo->out_color_space = JCS_UNKNOWN;    break;  }  /* Set defaults for other decompression parameters. */  cinfo->scale_num = 1;		/* 1:1 scaling */  cinfo->scale_denom = 1;  cinfo->output_gamma = 1.0;  cinfo->quantize_colors = FALSE;  /* We set these in case application only sets quantize_colors. */  cinfo->two_pass_quantize = TRUE;  cinfo->use_dithering = TRUE;  cinfo->desired_number_of_colors = 256;  cinfo->do_block_smoothing = FALSE;  cinfo->do_fancy_upsampling = TRUE;  cinfo->colormap = NULL;}/* * Decompression startup: read start of JPEG datastream to see what's there. * Need only initialize JPEG object and supply a data source before calling. * * This routine will read as far as the first SOS marker (ie, actual start of * compressed data), and will save all tables and parameters in the JPEG * object.  It will also initialize the decompression parameters to default * values, and finally return JPEG_HEADER_OK.  On return, the application may * adjust the decompression parameters and then call jpeg_start_decompress. * (Or, if the application only wanted to determine the image parameters, * the data need not be decompressed.  In that case, call jpeg_abort or * jpeg_destroy to release any temporary space.) * If an abbreviated (tables only) datastream is presented, the routine will * return JPEG_HEADER_TABLES_ONLY upon reaching EOI.  The application may then * re-use the JPEG object to read the abbreviated image datastream(s). * It is unnecessary (but OK) to call jpeg_abort in this case. * The JPEG_SUSPENDED return code only occurs if the data source module * requests suspension of the decompressor.  In this case the application * should load more source data and then re-call jpeg_read_header to resume * processing. * If a non-suspending data source is used and require_image is TRUE, then the * return code need not be inspected since only JPEG_HEADER_OK is possible. */GLOBAL intjpeg_read_header (j_decompress_ptr cinfo, boolean require_image){  int retcode;  if (cinfo->global_state == DSTATE_START) {    /* First-time actions: reset appropriate modules */    (*cinfo->err->reset_error_mgr) ((j_common_ptr) cinfo);    (*cinfo->marker->reset_marker_reader) (cinfo);    (*cinfo->src->init_source) (cinfo);    cinfo->global_state = DSTATE_INHEADER;  } else if (cinfo->global_state != DSTATE_INHEADER) {    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);  }  retcode = (*cinfo->marker->read_markers) (cinfo);  switch (retcode) {  case JPEG_HEADER_OK:		/* Found SOS, prepare to decompress */    /* Set up default parameters based on header data */    default_decompress_parms(cinfo);    /* Set global state: ready for start_decompress */    cinfo->global_state = DSTATE_READY;    break;  case JPEG_HEADER_TABLES_ONLY:	/* Found EOI before any SOS */    if (cinfo->marker->saw_SOF)      ERREXIT(cinfo, JERR_SOF_NO_SOS);    if (require_image)		/* Complain if application wants an image */      ERREXIT(cinfo, JERR_NO_IMAGE);    /* We need not do any cleanup since only permanent storage (for DQT, DHT)     * has been allocated.     */    /* Set global state: ready for a new datastream */    cinfo->global_state = DSTATE_START;    break;  case JPEG_SUSPENDED:		/* Had to suspend before end of headers */    /* no work */    break;  }  return retcode;}/* * Decompression initialization. * jpeg_read_header must be completed before calling this. * * If a multipass operating mode was selected, this will do all but the * last pass, and thus may take a great deal of time. */GLOBAL voidjpeg_start_decompress (j_decompress_ptr cinfo){  if (cinfo->global_state != DSTATE_READY)    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);  /* Perform master selection of active modules */  jinit_master_decompress(cinfo);  /* Do all but the final (output) pass, and set up for that one. */  for (;;) {    (*cinfo->master->prepare_for_pass) (cinfo);    if (cinfo->master->is_last_pass)      break;    /* Drive pass here??? */    /* Terminate pass here??? */  }  /* Ready for application to drive last pass through jpeg_read_scanlines */  cinfo->output_scanline = 0;  cinfo->global_state = DSTATE_SCANNING;}/* * Read some scanlines of data from the JPEG decompressor. * * The return value will be the number of lines actually read. * This may be less than the number requested in several cases, * including bottom of image, data source suspension, and operating * modes that emit multiple scanlines at a time. */GLOBAL JDIMENSIONjpeg_read_scanlines (j_decompress_ptr cinfo, JSAMPARRAY scanlines,		     JDIMENSION max_lines){  JDIMENSION row_ctr;  if (cinfo->global_state != DSTATE_SCANNING)    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);  row_ctr = 0;  (*cinfo->main->process_data) (cinfo, scanlines, &row_ctr, max_lines);  cinfo->output_scanline += row_ctr;  return row_ctr;}GLOBAL JDIMENSIONjpeg_read_raw_scanlines(j_decompress_ptr cinfo, JSAMPIMAGE scanarray,                         JDIMENSION max_lines){ JDIMENSION row_ctr; if (cinfo->global_state != DSTATE_SCANNING)   ERREXIT1(cinfo,JERR_BAD_STATE,cinfo->global_state); row_ctr =0; (*cinfo->main->process_data)(cinfo,scanarray,&row_ctr,max_lines);   cinfo->output_scanline += row_ctr; return row_ctr;}/* * Finish JPEG decompression. * * This will normally just verify the file trailer and release temp storage. * * Returns FALSE if suspended.  The return value need be inspected only if * a suspending data source is used. */GLOBAL booleanjpeg_finish_decompress (j_decompress_ptr cinfo){  if (cinfo->global_state == DSTATE_SCANNING &&      cinfo->output_scanline == cinfo->output_height) {    /* Terminate final pass */    (*cinfo->main->finish_pass) (cinfo);    cinfo->global_state = DSTATE_STOPPING;  } else if (cinfo->global_state != DSTATE_STOPPING) {    ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);  }  /* Check for EOI in source file */  switch ((*cinfo->marker->read_markers) (cinfo)) {  case JPEG_HEADER_OK:		/* Found SOS!? */    ERREXIT(cinfo, JERR_EOI_EXPECTED);    break;  case JPEG_HEADER_TABLES_ONLY:	/* Found EOI, A-OK */    break;  case JPEG_SUSPENDED:		/* Suspend, come back later */    return FALSE;  }  /* Do final cleanup ??? */  (*cinfo->src->term_source) (cinfo);  /* We can use jpeg_abort to release memory and reset global_state */  jpeg_abort((j_common_ptr) cinfo);  return TRUE;}/* * Abort processing of a JPEG decompression operation, * but don't destroy the object itself. */GLOBAL voidjpeg_abort_decompress (j_decompress_ptr cinfo){  jpeg_abort((j_common_ptr) cinfo); /* use common routine */}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看av不卡| 久久精品一区二区三区不卡| 精品奇米国产一区二区三区| 中文字幕欧美日本乱码一线二线| 一区二区三区四区不卡在线| 韩国毛片一区二区三区| 91搞黄在线观看| 国产性天天综合网| 日韩二区在线观看| 色婷婷久久久亚洲一区二区三区| 亚洲精品一区二区三区蜜桃下载| 亚洲午夜一区二区三区| 成人免费黄色大片| 日韩一级二级三级| 亚洲午夜久久久久久久久久久| 国产二区国产一区在线观看| 欧美成人女星排行榜| 亚洲小说春色综合另类电影| 丁香五精品蜜臀久久久久99网站| 在线综合亚洲欧美在线视频| 亚洲免费观看在线视频| 成人综合在线网站| 久久夜色精品国产欧美乱极品| 亚洲成人免费观看| 日本精品一级二级| 国产精品久久久久婷婷二区次| 国产在线精品国自产拍免费| 欧美一区二区三区思思人| 婷婷六月综合网| 欧美唯美清纯偷拍| 亚洲一线二线三线久久久| 91免费观看在线| 欧美经典三级视频一区二区三区| 国产剧情一区在线| 久久精品一区八戒影视| 国产精品一区二区无线| 久久久www成人免费无遮挡大片| 免费成人在线观看视频| 日韩欧美aaaaaa| 蜜桃av噜噜一区| 日韩欧美国产一区二区在线播放 | 一本一本久久a久久精品综合麻豆| 国产亚洲美州欧州综合国 | 夜夜爽夜夜爽精品视频| 色综合视频一区二区三区高清| 国产精品美女久久久久久久久| 成人一区二区三区中文字幕| 国产精品国产三级国产aⅴ中文| 播五月开心婷婷综合| 亚洲三级在线观看| 在线观看日韩电影| 日韩国产欧美在线观看| 日韩欧美亚洲国产另类| 激情欧美一区二区| 亚洲综合区在线| 6080国产精品一区二区| 久久国产精品一区二区| 国产日韩精品视频一区| 99国产精品久久久久久久久久| 亚洲精品欧美综合四区| 精品视频123区在线观看| 美腿丝袜亚洲色图| 国产偷国产偷亚洲高清人白洁| 99久久久精品| 天天综合网 天天综合色| 精品乱人伦小说| 菠萝蜜视频在线观看一区| 亚洲图片欧美综合| 欧美精品一区男女天堂| 91蝌蚪porny九色| 欧美96一区二区免费视频| 国产婷婷一区二区| 欧美性三三影院| 国产一区二区三区四| 亚洲免费在线电影| www久久精品| 在线精品视频小说1| 黄色日韩三级电影| 亚洲裸体xxx| 精品999在线播放| 91美女蜜桃在线| 精品中文字幕一区二区小辣椒| 中文字幕制服丝袜成人av| 欧美日韩五月天| 丰满放荡岳乱妇91ww| 无吗不卡中文字幕| 国产精品国产三级国产普通话蜜臀| 欧美日韩在线观看一区二区| 国产露脸91国语对白| 亚洲综合成人网| 国产欧美日韩激情| 欧美精品免费视频| 91同城在线观看| 国内一区二区在线| 日韩影院免费视频| 亚洲欧洲综合另类| 久久精品在线免费观看| 911精品产国品一二三产区| 成人av电影在线观看| 久久国产婷婷国产香蕉| 亚洲国产综合91精品麻豆| 免费观看在线综合| 亚洲男人的天堂网| 中文字幕精品综合| 精品国产乱码久久久久久久 | 91在线高清观看| 国产精品中文字幕一区二区三区| 午夜久久久久久电影| 亚洲激情六月丁香| 成人欧美一区二区三区| 久久久久97国产精华液好用吗| 日韩精品一区二区三区在线观看| 欧美日韩一区二区三区视频| 91麻豆成人久久精品二区三区| 从欧美一区二区三区| 国产精品888| 国产一区不卡在线| 六月丁香婷婷色狠狠久久| 日韩电影免费一区| 视频一区二区欧美| 天堂精品中文字幕在线| 天天综合日日夜夜精品| 午夜免费久久看| 日韩主播视频在线| 天堂va蜜桃一区二区三区漫画版 | 91麻豆福利精品推荐| 99精品国产热久久91蜜凸| av影院午夜一区| 91影视在线播放| 91黄色激情网站| 欧美三级日韩在线| 欧美男女性生活在线直播观看| 欧美人与禽zozo性伦| 91精品国产综合久久精品app| 欧美久久久久久久久| 日韩欧美一区二区不卡| 精品国产一二三区| 久久久不卡网国产精品一区| 日本一区二区三区四区在线视频| 国产精品视频一区二区三区不卡| 日韩电影在线看| 久久99精品国产.久久久久久| 极品少妇一区二区| 成人黄色在线看| 色综合久久精品| 欧美一区二区视频免费观看| 精品少妇一区二区三区视频免付费| 久久久久久一二三区| 亚洲国产精品99久久久久久久久 | wwww国产精品欧美| 国产精品三级av| 亚洲免费看黄网站| 日本成人在线看| 国产成人亚洲精品狼色在线| 日本高清免费不卡视频| 日韩视频免费观看高清完整版在线观看 | 欧美一二三在线| 日本一区二区三区高清不卡| 一区二区三区在线观看动漫| 欧美a一区二区| 成人激情综合网站| 欧美日本在线播放| 久久久欧美精品sm网站| 一区二区三区欧美日韩| 乱一区二区av| 91麻豆成人久久精品二区三区| 日韩免费一区二区| 一区精品在线播放| 久久国产精品99久久久久久老狼| 国产高清不卡二三区| 欧美日韩国产高清一区二区三区| 欧美精品一区二| 国产美女精品在线| 欧美日韩精品欧美日韩精品一综合| 2020国产成人综合网| 午夜影院久久久| 成熟亚洲日本毛茸茸凸凹| 日韩欧美一区在线| 亚洲成人免费影院| www.亚洲国产| 精品国产乱子伦一区| 日日摸夜夜添夜夜添精品视频| 成人h动漫精品| 精品国产电影一区二区| 亚洲成人av福利| 色综合夜色一区| 中文字幕欧美激情一区| 久久激情五月激情| 欧美美女网站色| 一区二区视频免费在线观看| 高清在线不卡av| 欧美成人女星排名| 蜜桃精品视频在线观看| 欧美日韩中文精品| 亚洲男人的天堂在线观看| 成人成人成人在线视频| 欧美激情一区二区三区| 国产成人综合在线观看| 久久女同性恋中文字幕| 韩国av一区二区三区在线观看|