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

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

?? jdhuff.h

?? 《精通 vc++ 圖像編程》的源代碼
?? H
字號(hào):
/*
 * 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));

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美一二三区| 精品国产乱子伦一区| 国产一区久久久| 亚洲天堂a在线| 7777精品伊人久久久大香线蕉超级流畅 | 一本一道久久a久久精品综合蜜臀| 亚洲影院免费观看| 中文字幕佐山爱一区二区免费| 日韩免费电影一区| 欧美美女一区二区在线观看| 欧美日韩一区小说| 日韩一区二区三区视频在线 | 欧美精品tushy高清| 91免费视频大全| 91在线播放网址| 91成人看片片| 一本久久a久久免费精品不卡| 色爱区综合激月婷婷| 欧美日韩和欧美的一区二区| 欧美一级片免费看| 精品国产91乱码一区二区三区 | 九一九一国产精品| 成人一区二区视频| 欧美性videosxxxxx| 欧美一区二区三区在线视频| 久久综合网色—综合色88| 久久综合九色综合欧美亚洲| 国产三级久久久| 亚洲精品视频在线| 久久国产精品一区二区| 成人激情文学综合网| 色哟哟日韩精品| 欧美日韩中文精品| 精品av综合导航| 一区二区三区日韩欧美精品| 精品中文字幕一区二区| 99久精品国产| 欧美精品乱码久久久久久| 久久久久久久精| 亚洲天堂2014| 男女性色大片免费观看一区二区 | 欧美综合久久久| ww久久中文字幕| 日韩成人一区二区三区在线观看| 一区二区不卡在线视频 午夜欧美不卡在| 欧美不卡123| 亚洲成人av一区二区| www.亚洲精品| 久久影院电视剧免费观看| 婷婷综合另类小说色区| 色老汉一区二区三区| 久久99日本精品| 色综合色狠狠综合色| www国产成人| 免费观看一级欧美片| 色噜噜狠狠色综合欧洲selulu| 中文字幕一区二区三区不卡| 国产成人午夜视频| wwwwxxxxx欧美| 午夜伦理一区二区| 欧美最猛性xxxxx直播| 一区二区三区精密机械公司| 欧美综合在线视频| 亚洲成人动漫在线观看| 在线精品国精品国产尤物884a| 国产精品国产精品国产专区不蜜| 国产成人av电影| 亚洲欧美色一区| 91精品国产品国语在线不卡| 美女在线一区二区| 精品国产制服丝袜高跟| 韩国女主播成人在线观看| 久久综合色综合88| 国产在线不卡一卡二卡三卡四卡| 日韩精品资源二区在线| 国产成a人亚洲| 亚洲女同一区二区| 欧美一区二区在线不卡| 国产一区二区三区视频在线播放| 久久男人中文字幕资源站| 日韩午夜在线观看视频| 国产美女主播视频一区| 欧美国产精品中文字幕| 欧美三电影在线| 成人美女视频在线观看| 一区二区成人在线视频| 精品sm在线观看| 在线精品视频免费播放| 成人美女视频在线观看18| 一区二区三区中文在线观看| 日韩一区二区三区电影| 色狠狠综合天天综合综合| 成人黄色777网| 国产一区二区电影| 自拍偷自拍亚洲精品播放| 午夜激情久久久| 亚洲日本护士毛茸茸| 一本色道久久综合亚洲aⅴ蜜桃 | 亚洲二区视频在线| 五月天激情小说综合| 中文字幕一区二区三区乱码在线| 日韩欧美一二三| 欧美丝袜第三区| 欧美中文字幕一二三区视频| 成人妖精视频yjsp地址| 欧美综合在线视频| 99久久精品国产毛片| 国产精品综合在线视频| 国产美女娇喘av呻吟久久| 久久99国产精品麻豆| 国产乱人伦精品一区二区在线观看 | 亚洲欧美一区二区视频| 国产精品网曝门| 综合久久国产九一剧情麻豆| 中文字幕一区在线观看视频| 亚洲六月丁香色婷婷综合久久| 国产精品久久久久久久久搜平片 | 日本一区二区三区四区在线视频| 日韩亚洲欧美综合| 欧美日韩亚洲综合在线 | 日韩精品三区四区| 美国欧美日韩国产在线播放| 久久99精品视频| 成人黄色国产精品网站大全在线免费观看| 97久久精品人人做人人爽| 欧美性受xxxx| 欧美成人高清电影在线| 精品理论电影在线| 国产精品剧情在线亚洲| 成人免费在线播放视频| 婷婷激情综合网| 国产精品亚洲第一| 日本福利一区二区| 日韩视频免费观看高清在线视频| 精品久久久久久久久久久久久久久 | 欧美激情综合五月色丁香 | 国产中文一区二区三区| 成人动漫一区二区在线| 欧美日韩综合在线| 欧美国产精品中文字幕| 婷婷成人激情在线网| 国产v综合v亚洲欧| 91麻豆精品国产91久久久久久久久| 久久免费视频色| 一区二区理论电影在线观看| 精品亚洲porn| 91国产免费观看| 国产亚洲一区二区在线观看| 日韩精品乱码av一区二区| 99国产精品久久久久| 日韩精品一区二区三区老鸭窝| 最新热久久免费视频| 久久精品国产网站| 在线一区二区三区四区| 欧美精彩视频一区二区三区| 天天综合网天天综合色 | 国产91丝袜在线18| 欧美一级欧美一级在线播放| 亚洲欧美国产三级| 高清成人在线观看| 日韩欧美成人激情| 亚洲成a人v欧美综合天堂下载 | 色综合天天天天做夜夜夜夜做| 久久久久久久网| 另类成人小视频在线| 欧美一区二区三区不卡| 亚洲一级电影视频| 欧美三级电影网站| 日韩影视精彩在线| 91精品国产福利| 五月综合激情日本mⅴ| 在线免费观看视频一区| 亚洲激情五月婷婷| 色婷婷香蕉在线一区二区| 亚洲色欲色欲www| 色综合久久综合网| 香港成人在线视频| 欧美日韩国产电影| 日本成人中文字幕在线视频 | 美女视频黄免费的久久| 精品国产乱码久久久久久图片| 国产一区二区精品在线观看| 国产精品久久久久久久久久久免费看| a级高清视频欧美日韩| 亚洲国产综合91精品麻豆| 日韩情涩欧美日韩视频| 夫妻av一区二区| 亚洲午夜日本在线观看| 日韩欧美中文字幕制服| 成人福利在线看| 亚洲不卡av一区二区三区| 7799精品视频| 国产成人在线网站| 婷婷一区二区三区| 久久久国产精华| 制服丝袜中文字幕亚洲| 99re成人精品视频| 九九精品视频在线看| 亚洲一区二区三区中文字幕在线| 久久婷婷色综合|