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

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

?? jdmarker.c

?? MPEG4解碼程序源代碼(能夠?qū)Ω鞣NMPEG4文件進(jìn)行解碼)
?? C
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
////////////////////////////////////////////////////////////////////////
//
//	Note : this file is included as part of the Smaller Animals Software
//	JpegFile package. Though this file has not been modified from it's 
//	original IJG 6a form, it is not the responsibility on the Independent
//	JPEG Group to answer questions regarding this code.
//	
//	Any questions you have about this code should be addressed to :
//
//	CHRISDL@PAGESZ.NET	- the distributor of this package.
//
//	Remember, by including this code in the JpegFile package, Smaller 
//	Animals Software assumes all responsibilities for answering questions
//	about it. If we (SA Software) can't answer your questions ourselves, we 
//	will direct you to people who can.
//
//	Thanks, CDL.
//
////////////////////////////////////////////////////////////////////////

/*
 * jdmarker.c
 *
 * Copyright (C) 1991-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 routines to decode JPEG datastream markers.
 * Most of the complexity arises from our desire to support input
 * suspension: if not all of the data for a marker is available,
 * we must exit back to the application.  On resumption, we reprocess
 * the marker.
 */

#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"


typedef enum {			/* JPEG marker codes */
  M_SOF0  = 0xc0,
  M_SOF1  = 0xc1,
  M_SOF2  = 0xc2,
  M_SOF3  = 0xc3,
  
  M_SOF5  = 0xc5,
  M_SOF6  = 0xc6,
  M_SOF7  = 0xc7,
  
  M_JPG   = 0xc8,
  M_SOF9  = 0xc9,
  M_SOF10 = 0xca,
  M_SOF11 = 0xcb,
  
  M_SOF13 = 0xcd,
  M_SOF14 = 0xce,
  M_SOF15 = 0xcf,
  
  M_DHT   = 0xc4,
  
  M_DAC   = 0xcc,
  
  M_RST0  = 0xd0,
  M_RST1  = 0xd1,
  M_RST2  = 0xd2,
  M_RST3  = 0xd3,
  M_RST4  = 0xd4,
  M_RST5  = 0xd5,
  M_RST6  = 0xd6,
  M_RST7  = 0xd7,
  
  M_SOI   = 0xd8,
  M_EOI   = 0xd9,
  M_SOS   = 0xda,
  M_DQT   = 0xdb,
  M_DNL   = 0xdc,
  M_DRI   = 0xdd,
  M_DHP   = 0xde,
  M_EXP   = 0xdf,
  
  M_APP0  = 0xe0,
  M_APP1  = 0xe1,
  M_APP2  = 0xe2,
  M_APP3  = 0xe3,
  M_APP4  = 0xe4,
  M_APP5  = 0xe5,
  M_APP6  = 0xe6,
  M_APP7  = 0xe7,
  M_APP8  = 0xe8,
  M_APP9  = 0xe9,
  M_APP10 = 0xea,
  M_APP11 = 0xeb,
  M_APP12 = 0xec,
  M_APP13 = 0xed,
  M_APP14 = 0xee,
  M_APP15 = 0xef,
  
  M_JPG0  = 0xf0,
  M_JPG13 = 0xfd,
  M_COM   = 0xfe,
  
  M_TEM   = 0x01,
  
  M_ERROR = 0x100
} JPEG_MARKER;


/*
 * Macros for fetching data from the data source module.
 *
 * At all times, cinfo->src->next_input_byte and ->bytes_in_buffer reflect
 * the current restart point; we update them only when we have reached a
 * suitable place to restart if a suspension occurs.
 */

/* Declare and initialize local copies of input pointer/count */
#define INPUT_VARS(cinfo)  \
	struct jpeg_source_mgr * datasrc = (cinfo)->src;  \
	const JOCTET * next_input_byte = datasrc->next_input_byte;  \
	size_t bytes_in_buffer = datasrc->bytes_in_buffer

/* Unload the local copies --- do this only at a restart boundary */
#define INPUT_SYNC(cinfo)  \
	( datasrc->next_input_byte = next_input_byte,  \
	  datasrc->bytes_in_buffer = bytes_in_buffer )

/* Reload the local copies --- seldom used except in MAKE_BYTE_AVAIL */
#define INPUT_RELOAD(cinfo)  \
	( next_input_byte = datasrc->next_input_byte,  \
	  bytes_in_buffer = datasrc->bytes_in_buffer )

/* Internal macro for INPUT_BYTE and INPUT_2BYTES: make a byte available.
 * Note we do *not* do INPUT_SYNC before calling fill_input_buffer,
 * but we must reload the local copies after a successful fill.
 */
#define MAKE_BYTE_AVAIL(cinfo,action)  \
	if (bytes_in_buffer == 0) {  \
	  if (! (*datasrc->fill_input_buffer) (cinfo))  \
	    { action; }  \
	  INPUT_RELOAD(cinfo);  \
	}  \
	bytes_in_buffer--

/* Read a byte into variable V.
 * If must suspend, take the specified action (typically "return FALSE").
 */
#define INPUT_BYTE(cinfo,V,action)  \
	MAKESTMT( MAKE_BYTE_AVAIL(cinfo,action); \
		  V = GETJOCTET(*next_input_byte++); )

/* As above, but read two bytes interpreted as an unsigned 16-bit integer.
 * V should be declared unsigned int or perhaps long.
 */
#define INPUT_2BYTES(cinfo,V,action)  \
	MAKESTMT( MAKE_BYTE_AVAIL(cinfo,action); \
		  V = ((unsigned int) GETJOCTET(*next_input_byte++)) << 8; \
		  MAKE_BYTE_AVAIL(cinfo,action); \
		  V += GETJOCTET(*next_input_byte++); )


/*
 * Routines to process JPEG markers.
 *
 * Entry condition: JPEG marker itself has been read and its code saved
 *   in cinfo->unread_marker; input restart point is just after the marker.
 *
 * Exit: if return TRUE, have read and processed any parameters, and have
 *   updated the restart point to point after the parameters.
 *   If return FALSE, was forced to suspend before reaching end of
 *   marker parameters; restart point has not been moved.  Same routine
 *   will be called again after application supplies more input data.
 *
 * This approach to suspension assumes that all of a marker's parameters can
 * fit into a single input bufferload.  This should hold for "normal"
 * markers.  Some COM/APPn markers might have large parameter segments,
 * but we use skip_input_data to get past those, and thereby put the problem
 * on the source manager's shoulders.
 *
 * Note that we don't bother to avoid duplicate trace messages if a
 * suspension occurs within marker parameters.  Other side effects
 * require more care.
 */


LOCAL(boolean)
get_soi (j_decompress_ptr cinfo)
/* Process an SOI marker */
{
  int i;
  
  TRACEMS(cinfo, 1, JTRC_SOI);

  if (cinfo->marker->saw_SOI)
    ERREXIT(cinfo, JERR_SOI_DUPLICATE);

  /* Reset all parameters that are defined to be reset by SOI */

  for (i = 0; i < NUM_ARITH_TBLS; i++) {
    cinfo->arith_dc_L[i] = 0;
    cinfo->arith_dc_U[i] = 1;
    cinfo->arith_ac_K[i] = 5;
  }
  cinfo->restart_interval = 0;

  /* Set initial assumptions for colorspace etc */

  cinfo->jpeg_color_space = JCS_UNKNOWN;
  cinfo->CCIR601_sampling = FALSE; /* Assume non-CCIR sampling??? */

  cinfo->saw_JFIF_marker = FALSE;
  cinfo->density_unit = 0;	/* set default JFIF APP0 values */
  cinfo->X_density = 1;
  cinfo->Y_density = 1;
  cinfo->saw_Adobe_marker = FALSE;
  cinfo->Adobe_transform = 0;

  cinfo->marker->saw_SOI = TRUE;

  return TRUE;
}


LOCAL(boolean)
get_sof (j_decompress_ptr cinfo, boolean is_prog, boolean is_arith)
/* Process a SOFn marker */
{
  long length;
  int c, ci;
  jpeg_component_info * compptr;
  INPUT_VARS(cinfo);

  cinfo->progressive_mode = is_prog;
  cinfo->arith_code = is_arith;

  INPUT_2BYTES(cinfo, length, return FALSE);

  INPUT_BYTE(cinfo, cinfo->data_precision, return FALSE);
  INPUT_2BYTES(cinfo, cinfo->image_height, return FALSE);
  INPUT_2BYTES(cinfo, cinfo->image_width, return FALSE);
  INPUT_BYTE(cinfo, cinfo->num_components, return FALSE);

  length -= 8;

  TRACEMS4(cinfo, 1, JTRC_SOF, cinfo->unread_marker,
	   (int) cinfo->image_width, (int) cinfo->image_height,
	   cinfo->num_components);

  if (cinfo->marker->saw_SOF)
    ERREXIT(cinfo, JERR_SOF_DUPLICATE);

  /* We don't support files in which the image height is initially specified */
  /* as 0 and is later redefined by DNL.  As long as we have to check that,  */
  /* might as well have a general sanity check. */
  if (cinfo->image_height <= 0 || cinfo->image_width <= 0
      || cinfo->num_components <= 0)
    ERREXIT(cinfo, JERR_EMPTY_IMAGE);

  if (length != (cinfo->num_components * 3))
    ERREXIT(cinfo, JERR_BAD_LENGTH);

  if (cinfo->comp_info == NULL)	/* do only once, even if suspend */
    cinfo->comp_info = (jpeg_component_info *) (*cinfo->mem->alloc_small)
			((j_common_ptr) cinfo, JPOOL_IMAGE,
			 cinfo->num_components * SIZEOF(jpeg_component_info));
  
  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
       ci++, compptr++) {
    compptr->component_index = ci;
    INPUT_BYTE(cinfo, compptr->component_id, return FALSE);
    INPUT_BYTE(cinfo, c, return FALSE);
    compptr->h_samp_factor = (c >> 4) & 15;
    compptr->v_samp_factor = (c     ) & 15;
    INPUT_BYTE(cinfo, compptr->quant_tbl_no, return FALSE);

    TRACEMS4(cinfo, 1, JTRC_SOF_COMPONENT,
	     compptr->component_id, compptr->h_samp_factor,
	     compptr->v_samp_factor, compptr->quant_tbl_no);
  }

  cinfo->marker->saw_SOF = TRUE;

  INPUT_SYNC(cinfo);
  return TRUE;
}


LOCAL(boolean)
get_sos (j_decompress_ptr cinfo)
/* Process a SOS marker */
{
  long length;
  int i, ci, n, c, cc;
  jpeg_component_info * compptr;
  INPUT_VARS(cinfo);

  if (! cinfo->marker->saw_SOF)
    ERREXIT(cinfo, JERR_SOS_NO_SOF);

  INPUT_2BYTES(cinfo, length, return FALSE);

  INPUT_BYTE(cinfo, n, return FALSE); /* Number of components */

  if (length != (n * 2 + 6) || n < 1 || n > MAX_COMPS_IN_SCAN)
    ERREXIT(cinfo, JERR_BAD_LENGTH);

  TRACEMS1(cinfo, 1, JTRC_SOS, n);

  cinfo->comps_in_scan = n;

  /* Collect the component-spec parameters */

  for (i = 0; i < n; i++) {
    INPUT_BYTE(cinfo, cc, return FALSE);
    INPUT_BYTE(cinfo, c, return FALSE);
    
    for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
	 ci++, compptr++) {
      if (cc == compptr->component_id)
	goto id_found;
    }

    ERREXIT1(cinfo, JERR_BAD_COMPONENT_ID, cc);

  id_found:

    cinfo->cur_comp_info[i] = compptr;
    compptr->dc_tbl_no = (c >> 4) & 15;
    compptr->ac_tbl_no = (c     ) & 15;
    
    TRACEMS3(cinfo, 1, JTRC_SOS_COMPONENT, cc,
	     compptr->dc_tbl_no, compptr->ac_tbl_no);
  }

  /* Collect the additional scan parameters Ss, Se, Ah/Al. */
  INPUT_BYTE(cinfo, c, return FALSE);
  cinfo->Ss = c;
  INPUT_BYTE(cinfo, c, return FALSE);
  cinfo->Se = c;
  INPUT_BYTE(cinfo, c, return FALSE);
  cinfo->Ah = (c >> 4) & 15;
  cinfo->Al = (c     ) & 15;

  TRACEMS4(cinfo, 1, JTRC_SOS_PARAMS, cinfo->Ss, cinfo->Se,
	   cinfo->Ah, cinfo->Al);

  /* Prepare to scan data & restart markers */
  cinfo->marker->next_restart_num = 0;

  /* Count another SOS marker */
  cinfo->input_scan_number++;

  INPUT_SYNC(cinfo);
  return TRUE;
}


METHODDEF(boolean)
get_app0 (j_decompress_ptr cinfo)
/* Process an APP0 marker */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩中字一区| 精品日韩在线一区| 激情五月婷婷综合网| 一区二区三区欧美视频| 精品久久国产老人久久综合| 91精品国产综合久久婷婷香蕉 | 国产一区二区精品久久99| 亚洲人123区| 国产亚洲欧美中文| 日韩欧美一级精品久久| 欧美亚洲一区二区在线观看| 99热99精品| 国产精一品亚洲二区在线视频| 午夜精品福利视频网站| 亚洲男人的天堂av| 久久久777精品电影网影网| 欧美一区二区三区四区高清| 91国偷自产一区二区三区观看 | 日本一区二区三区四区| 日韩一卡二卡三卡四卡| 欧美三级乱人伦电影| 成人美女视频在线观看18| 日韩国产一区二| 亚洲精品自拍动漫在线| 亚洲欧美一区二区在线观看| 国产亚洲视频系列| 久久久综合激的五月天| 精品sm在线观看| 日韩精品资源二区在线| 在线不卡一区二区| 欧美日韩免费观看一区二区三区| 色综合久久88色综合天天免费| 处破女av一区二区| 成人激情动漫在线观看| 国产精品1区2区3区| 国产成人精品三级| 国产精品18久久久久久久网站| 国产美女av一区二区三区| 精品一区二区三区在线播放| 久久99国产精品久久| 精品夜夜嗨av一区二区三区| 久久99精品久久久久久动态图| 激情综合网最新| 韩国女主播成人在线观看| 国内精品写真在线观看| 国产成人综合网| 成人动漫精品一区二区| 91日韩在线专区| 色婷婷久久久综合中文字幕 | 欧美精品vⅰdeose4hd| 欧美日韩一区国产| 欧美一二三区在线| 精品欧美一区二区在线观看| 久久免费视频色| 国产精品福利电影一区二区三区四区| 国产精品视频看| 亚洲激情综合网| 视频一区视频二区中文字幕| 久久99国产精品久久99| 成人免费毛片高清视频| 91国偷自产一区二区三区成为亚洲经典 | 97精品电影院| 日本韩国欧美一区| 欧美久久久久久久久中文字幕| 欧美成人伊人久久综合网| 国产欧美一区二区三区鸳鸯浴| 国产精品久久午夜| 国产精品成人在线观看| 亚洲一级二级在线| 奇米四色…亚洲| 成人久久久精品乱码一区二区三区| 成人黄色小视频在线观看| 91视频xxxx| 精品久久久久久亚洲综合网 | 国产精品久久久爽爽爽麻豆色哟哟 | 91免费看片在线观看| 欧美乱熟臀69xxxxxx| 久久久亚洲综合| 一区二区理论电影在线观看| 日本伊人精品一区二区三区观看方式 | 亚洲色图19p| 奇米在线7777在线精品| 91在线视频网址| 欧美一级高清片在线观看| 国产精品你懂的在线| 婷婷亚洲久悠悠色悠在线播放| 丁香激情综合国产| 欧美高清视频www夜色资源网| 中文字幕国产一区| 喷白浆一区二区| 色综合久久99| 欧美国产一区视频在线观看| 秋霞午夜鲁丝一区二区老狼| 99国产麻豆精品| 久久婷婷色综合| 日韩精品视频网| 一本久道中文字幕精品亚洲嫩 | 亚洲欧洲另类国产综合| 美女在线观看视频一区二区| www.欧美亚洲| 精品国产伦一区二区三区免费| 亚洲一区二区在线免费看| 国产99精品国产| 日韩欧美国产一区二区在线播放| 一区二区三区日韩精品视频| 成人午夜激情影院| 精品国产免费人成电影在线观看四季| 亚洲电影你懂得| 91蝌蚪porny九色| 欧美激情中文字幕一区二区| 精品一区二区免费看| 337p亚洲精品色噜噜噜| 亚洲午夜电影网| 在线观看网站黄不卡| 亚洲欧洲三级电影| 成人sese在线| 国产精品高潮久久久久无| 国产精品99久| 国产亚洲精品免费| 国产精选一区二区三区| 久久久亚洲欧洲日产国码αv| 久久国产精品露脸对白| 欧美成人三级电影在线| 男女男精品视频| 制服丝袜av成人在线看| 日精品一区二区三区| 欧美绝品在线观看成人午夜影视| 亚洲无人区一区| 欧美精选一区二区| 日精品一区二区| 日韩亚洲电影在线| 久久精品国产99久久6| 日韩午夜激情免费电影| 久久精品国产秦先生| 亚洲精品在线电影| 国产精品亚洲成人| 国产精品丝袜在线| 成人不卡免费av| 亚洲精品免费播放| 一本到不卡免费一区二区| 亚洲伊人伊色伊影伊综合网| 欧美日韩激情一区二区| 免费成人深夜小野草| 日韩欧美高清一区| 国产精品一级黄| 中文字幕亚洲电影| 欧美色窝79yyyycom| 天堂久久久久va久久久久| 在线播放一区二区三区| 久久精品国产99国产| 中文字幕va一区二区三区| 97超碰欧美中文字幕| 亚洲一二三区视频在线观看| 欧美男男青年gay1069videost| 欧美a级理论片| 国产三级精品视频| 色av综合在线| 青青草97国产精品免费观看无弹窗版| 日韩欧美国产一区在线观看| 国产91精品欧美| 一区二区三区av电影 | 亚洲色图在线视频| 欧美肥胖老妇做爰| 国产一区二区h| 亚洲最新视频在线播放| 91精品国产综合久久福利| 国产精品资源在线观看| 亚洲视频电影在线| 日韩免费一区二区| 成人免费毛片app| 视频一区视频二区中文字幕| 久久久影视传媒| 欧美亚洲日本国产| 国产一区二区三区在线看麻豆| 国产精品久久久一本精品| 777亚洲妇女| 成人美女视频在线看| 日韩av成人高清| 中文字幕一区不卡| 欧美v国产在线一区二区三区| 91美女福利视频| 久久se精品一区精品二区| 亚洲欧美偷拍另类a∨色屁股| 日韩一区二区三区视频在线 | 亚洲欧美日韩国产手机在线| 日韩亚洲欧美成人一区| 91丨porny丨蝌蚪视频| 久久精品99国产精品日本| 一区视频在线播放| 久久综合av免费| 欧美精品一二三四| 91女厕偷拍女厕偷拍高清| 精品伊人久久久久7777人| 亚洲综合激情网| 国产精品视频你懂的| 精品日韩在线观看| 在线不卡中文字幕播放| 色综合天天做天天爱| 国产精品123| 精品综合久久久久久8888|