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

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

?? jdhuff.h

?? About JPEG, executable on Visual C++
?? H
字號:
////////////////////////////////////////////////////////////////////////
//
//	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.
//
////////////////////////////////////////////////////////////////////////

/*
 * jdhuff.h
 *
 * 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 declarations for Huffman entropy decoding routines
 * that are shared between the sequential decoder (jdhuff.c) and the
 * progressive decoder (jdphuff.c).  No other modules need to see these.
 */

/* Short forms of external names for systems with brain-damaged linkers. */

#ifdef NEED_SHORT_EXTERNAL_NAMES
#define jpeg_make_d_derived_tbl	jMkDDerived
#define jpeg_fill_bit_buffer	jFilBitBuf
#define jpeg_huff_decode	jHufDecode
#endif /* NEED_SHORT_EXTERNAL_NAMES */


/* Derived data constructed for each Huffman table */

#define HUFF_LOOKAHEAD	8	/* # of bits of lookahead */

typedef struct {
  /* Basic tables: (element [0] of each array is unused) */
  INT32 mincode[17];		/* smallest code of length k */
  INT32 maxcode[18];		/* largest code of length k (-1 if none) */
  /* (maxcode[17] is a sentinel to ensure jpeg_huff_decode terminates) */
  int valptr[17];		/* huffval[] index of 1st symbol of length k */

  /* Link to public Huffman table (needed only in jpeg_huff_decode) */
  JHUFF_TBL *pub;

  /* Lookahead tables: indexed by the next HUFF_LOOKAHEAD bits of
   * the input data stream.  If the next Huffman code is no more
   * than HUFF_LOOKAHEAD bits long, we can obtain its length and
   * the corresponding symbol directly from these tables.
   */
  int look_nbits[1<<HUFF_LOOKAHEAD]; /* # bits, or 0 if too long */
  UINT8 look_sym[1<<HUFF_LOOKAHEAD]; /* symbol, or unused */
} d_derived_tbl;

/* Expand a Huffman table definition into the derived format */
EXTERN(void) jpeg_make_d_derived_tbl JPP((j_decompress_ptr cinfo,
				JHUFF_TBL * htbl, d_derived_tbl ** pdtbl));


/*
 * Fetching the next N bits from the input stream is a time-critical operation
 * for the Huffman decoders.  We implement it with a combination of inline
 * macros and out-of-line subroutines.  Note that N (the number of bits
 * demanded at one time) never exceeds 15 for JPEG use.
 *
 * We read source bytes into get_buffer and dole out bits as needed.
 * If get_buffer already contains enough bits, they are fetched in-line
 * by the macros CHECK_BIT_BUFFER and GET_BITS.  When there aren't enough
 * bits, jpeg_fill_bit_buffer is called; it will attempt to fill get_buffer
 * as full as possible (not just to the number of bits needed; this
 * prefetching reduces the overhead cost of calling jpeg_fill_bit_buffer).
 * Note that jpeg_fill_bit_buffer may return FALSE to indicate suspension.
 * On TRUE return, jpeg_fill_bit_buffer guarantees that get_buffer contains
 * at least the requested number of bits --- dummy zeroes are inserted if
 * necessary.
 */

typedef INT32 bit_buf_type;	/* type of bit-extraction buffer */
#define BIT_BUF_SIZE  32	/* size of buffer in bits */

/* If long is > 32 bits on your machine, and shifting/masking longs is
 * reasonably fast, making bit_buf_type be long and setting BIT_BUF_SIZE
 * appropriately should be a win.  Unfortunately we can't do this with
 * something like  #define BIT_BUF_SIZE (sizeof(bit_buf_type)*8)
 * because not all machines measure sizeof in 8-bit bytes.
 */

typedef struct {		/* Bitreading state saved across MCUs */
  bit_buf_type get_buffer;	/* current bit-extraction buffer */
  int bits_left;		/* # of unused bits in it */
  boolean printed_eod;		/* flag to suppress multiple warning msgs */
} bitread_perm_state;

typedef struct {		/* Bitreading working state within an MCU */
  /* current data source state */
  const JOCTET * next_input_byte; /* => next byte to read from source */
  size_t bytes_in_buffer;	/* # of bytes remaining in source buffer */
  int unread_marker;		/* nonzero if we have hit a marker */
  /* bit input buffer --- note these values are kept in register variables,
   * not in this struct, inside the inner loops.
   */
  bit_buf_type get_buffer;	/* current bit-extraction buffer */
  int bits_left;		/* # of unused bits in it */
  /* pointers needed by jpeg_fill_bit_buffer */
  j_decompress_ptr cinfo;	/* back link to decompress master record */
  boolean * printed_eod_ptr;	/* => flag in permanent state */
} bitread_working_state;

/* Macros to declare and load/save bitread local variables. */
#define BITREAD_STATE_VARS  \
	register bit_buf_type get_buffer;  \
	register int bits_left;  \
	bitread_working_state br_state

#define BITREAD_LOAD_STATE(cinfop,permstate)  \
	br_state.cinfo = cinfop; \
	br_state.next_input_byte = cinfop->src->next_input_byte; \
	br_state.bytes_in_buffer = cinfop->src->bytes_in_buffer; \
	br_state.unread_marker = cinfop->unread_marker; \
	get_buffer = permstate.get_buffer; \
	bits_left = permstate.bits_left; \
	br_state.printed_eod_ptr = & permstate.printed_eod

#define BITREAD_SAVE_STATE(cinfop,permstate)  \
	cinfop->src->next_input_byte = br_state.next_input_byte; \
	cinfop->src->bytes_in_buffer = br_state.bytes_in_buffer; \
	cinfop->unread_marker = br_state.unread_marker; \
	permstate.get_buffer = get_buffer; \
	permstate.bits_left = bits_left

/*
 * These macros provide the in-line portion of bit fetching.
 * Use CHECK_BIT_BUFFER to ensure there are N bits in get_buffer
 * before using GET_BITS, PEEK_BITS, or DROP_BITS.
 * The variables get_buffer and bits_left are assumed to be locals,
 * but the state struct might not be (jpeg_huff_decode needs this).
 *	CHECK_BIT_BUFFER(state,n,action);
 *		Ensure there are N bits in get_buffer; if suspend, take action.
 *      val = GET_BITS(n);
 *		Fetch next N bits.
 *      val = PEEK_BITS(n);
 *		Fetch next N bits without removing them from the buffer.
 *	DROP_BITS(n);
 *		Discard next N bits.
 * The value N should be a simple variable, not an expression, because it
 * is evaluated multiple times.
 */

#define CHECK_BIT_BUFFER(state,nbits,action) \
	{ if (bits_left < (nbits)) {  \
	    if (! jpeg_fill_bit_buffer(&(state),get_buffer,bits_left,nbits))  \
	      { action; }  \
	    get_buffer = (state).get_buffer; bits_left = (state).bits_left; } }

#define GET_BITS(nbits) \
	(((int) (get_buffer >> (bits_left -= (nbits)))) & ((1<<(nbits))-1))

#define PEEK_BITS(nbits) \
	(((int) (get_buffer >> (bits_left -  (nbits)))) & ((1<<(nbits))-1))

#define DROP_BITS(nbits) \
	(bits_left -= (nbits))

/* Load up the bit buffer to a depth of at least nbits */
EXTERN(boolean) jpeg_fill_bit_buffer
	JPP((bitread_working_state * state, register bit_buf_type get_buffer,
	     register int bits_left, int nbits));


/*
 * Code for extracting next Huffman-coded symbol from input bit stream.
 * Again, this is time-critical and we make the main paths be macros.
 *
 * We use a lookahead table to process codes of up to HUFF_LOOKAHEAD bits
 * without looping.  Usually, more than 95% of the Huffman codes will be 8
 * or fewer bits long.  The few overlength codes are handled with a loop,
 * which need not be inline code.
 *
 * Notes about the HUFF_DECODE macro:
 * 1. Near the end of the data segment, we may fail to get enough bits
 *    for a lookahead.  In that case, we do it the hard way.
 * 2. If the lookahead table contains no entry, the next code must be
 *    more than HUFF_LOOKAHEAD bits long.
 * 3. jpeg_huff_decode returns -1 if forced to suspend.
 */

#define HUFF_DECODE(result,state,htbl,failaction,slowlabel) \
{ register int nb, look; \
  if (bits_left < HUFF_LOOKAHEAD) { \
    if (! jpeg_fill_bit_buffer(&state,get_buffer,bits_left, 0)) {failaction;} \
    get_buffer = state.get_buffer; bits_left = state.bits_left; \
    if (bits_left < HUFF_LOOKAHEAD) { \
      nb = 1; goto slowlabel; \
    } \
  } \
  look = PEEK_BITS(HUFF_LOOKAHEAD); \
  if ((nb = htbl->look_nbits[look]) != 0) { \
    DROP_BITS(nb); \
    result = htbl->look_sym[look]; \
  } else { \
    nb = HUFF_LOOKAHEAD+1; \
slowlabel: \
    if ((result=jpeg_huff_decode(&state,get_buffer,bits_left,htbl,nb)) < 0) \
	{ failaction; } \
    get_buffer = state.get_buffer; bits_left = state.bits_left; \
  } \
}

/* Out-of-line case for Huffman code fetching */
EXTERN(int) jpeg_huff_decode
	JPP((bitread_working_state * state, register bit_buf_type get_buffer,
	     register int bits_left, d_derived_tbl * htbl, int min_bits));

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品免费视频观看| 蜜臀av一级做a爰片久久| 国产精品美女视频| 国产精品午夜免费| 成人免费一区二区三区在线观看| 欧美极品xxx| 亚洲欧洲日产国产综合网| 国产女同性恋一区二区| 国产精品久久久久久久久晋中| 中文字幕免费不卡在线| 亚洲色图清纯唯美| 亚洲最新视频在线观看| 亚洲va欧美va天堂v国产综合| 亚洲成人动漫在线免费观看| 日韩和欧美一区二区三区| 久色婷婷小香蕉久久| 国产精品综合av一区二区国产馆| 国产黑丝在线一区二区三区| 成人av资源在线观看| 色先锋资源久久综合| 欧美日韩精品福利| 精品日韩欧美一区二区| 国产欧美一区二区三区网站| 亚洲欧洲三级电影| 亚洲成人久久影院| 久久爱另类一区二区小说| 国产成人自拍高清视频在线免费播放| 国产精品18久久久久久久久久久久| 成人一道本在线| 欧美视频一区在线| 精品福利av导航| 中文字幕五月欧美| 日韩高清不卡一区二区| 国产综合久久久久久鬼色| 不卡视频一二三| 欧美日韩高清在线| 久久久精品影视| 亚洲国产精品久久久男人的天堂| 美腿丝袜亚洲一区| 99视频有精品| 欧美一区二区三区电影| 中文字幕第一区二区| 亚洲国产一区二区视频| 国产在线视频不卡二| 色呦呦网站一区| 精品区一区二区| 一区二区三区中文在线| 玖玖九九国产精品| 91成人在线免费观看| 久久综合色综合88| 亚洲一区二区三区四区在线观看 | 欧美大片在线观看一区二区| 国产精品成人在线观看| 蜜臀91精品一区二区三区| 97se亚洲国产综合自在线不卡| 日韩欧美国产三级电影视频| 日韩一区欧美一区| 狠狠色综合播放一区二区| 日本高清无吗v一区| 国产欧美一区在线| 男人的j进女人的j一区| 色天天综合色天天久久| 久久久91精品国产一区二区三区| 午夜精品一区二区三区免费视频| 成人av网站在线观看| 久久综合丝袜日本网| 日日夜夜精品视频天天综合网| 成人av网在线| 国产亚洲成年网址在线观看| 日韩av在线发布| 在线免费av一区| 国产精品高清亚洲| 国产成人一级电影| 精品久久久久久久久久久久包黑料 | 日韩国产精品大片| 91官网在线免费观看| 亚洲欧洲精品成人久久奇米网| 激情久久五月天| 欧美一区二区三区视频免费| 亚洲一区国产视频| 色偷偷88欧美精品久久久| 欧美国产欧美亚州国产日韩mv天天看完整| 日日欢夜夜爽一区| 欧美亚洲综合另类| 亚洲精品成a人| 99久久精品免费精品国产| 久久精品亚洲乱码伦伦中文 | 97se亚洲国产综合自在线观| 久久精品一级爱片| 国产精品一区二区久久不卡 | 国内精品不卡在线| 精品国产精品一区二区夜夜嗨| 日本不卡视频在线| 欧美妇女性影城| 青青草视频一区| 欧美一区二区三区视频免费播放| 三级久久三级久久久| 欧美精品在欧美一区二区少妇| 洋洋成人永久网站入口| 欧美体内she精高潮| 亚洲美女电影在线| 色妹子一区二区| 亚洲一区二区三区四区在线观看| 日本丰满少妇一区二区三区| 亚洲影视在线播放| 欧美色电影在线| 日产国产欧美视频一区精品| 日韩一区二区三区在线观看| 麻豆成人91精品二区三区| 精品日韩欧美在线| 国产69精品久久99不卡| 国产精品成人一区二区三区夜夜夜| 北条麻妃国产九九精品视频| 综合久久久久久| 欧美性做爰猛烈叫床潮| 日韩精品成人一区二区三区| 日韩女优毛片在线| 国产a区久久久| 亚洲激情欧美激情| 欧美日韩不卡在线| 极品销魂美女一区二区三区| 国产日产精品1区| 99v久久综合狠狠综合久久| 亚洲宅男天堂在线观看无病毒| 欧美日韩卡一卡二| 久久精品国产成人一区二区三区 | 一区二区三区不卡在线观看 | 午夜欧美一区二区三区在线播放| 91精品国产日韩91久久久久久| 国产在线不卡视频| 最新欧美精品一区二区三区| 欧美日精品一区视频| 极品销魂美女一区二区三区| 国产精品久久久一区麻豆最新章节| 色菇凉天天综合网| 日本不卡一区二区| 欧美激情综合网| 欧美丝袜第三区| 国产精品亚洲专一区二区三区 | 美腿丝袜一区二区三区| 国产精品久久久久久久久免费樱桃 | 日韩午夜激情视频| 国产69精品久久久久毛片| 亚洲一区二区三区小说| 精品成人一区二区| 在线看日本不卡| 国产乱子伦一区二区三区国色天香| 中文字幕一区二区三区在线观看| 欧美巨大另类极品videosbest| 国产麻豆91精品| 亚洲高清视频的网址| 久久久99精品免费观看不卡| 欧美视频在线播放| 成人一级视频在线观看| 全部av―极品视觉盛宴亚洲| 国产精品国产三级国产普通话蜜臀| 欧美电影在线免费观看| 成人18精品视频| 麻豆视频一区二区| 亚洲狠狠丁香婷婷综合久久久| 精品日韩欧美一区二区| 精品视频一区二区不卡| 成人激情免费电影网址| 免费的成人av| 亚洲国产综合人成综合网站| 国产精品视频在线看| 精品国产乱码久久久久久影片| 在线观看亚洲精品视频| 成人性生交大片免费看在线播放 | 欧美无砖砖区免费| 九九九久久久精品| 一区二区三区免费看视频| 国产午夜三级一区二区三| av电影天堂一区二区在线 | 91麻豆精品国产| 色综合天天综合网国产成人综合天| 精品一区二区免费在线观看| 亚洲国产精品久久不卡毛片 | 国产综合一区二区| 日韩国产一区二| 一区二区三区精品| 亚洲视频在线一区| 国产精品视频yy9299一区| 久久综合九色综合97婷婷女人| 欧美蜜桃一区二区三区| 欧美午夜免费电影| 色综合视频一区二区三区高清| 国产成人免费9x9x人网站视频| 久久99精品久久久久婷婷| 奇米888四色在线精品| 亚洲午夜久久久久久久久电影院| 国产精品入口麻豆九色| 国产女主播在线一区二区| 欧美精品一区二区三区在线| 日韩一区二区高清| 欧美美女一区二区| 91麻豆精品91久久久久久清纯| 欧美群妇大交群中文字幕| 欧美视频一区二区在线观看| 欧美性色欧美a在线播放|