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

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

?? jpeg.c

?? ANFY特效
?? C
字號:
#include <stdio.h>/* * These macros are used to read the input file. * To reuse this code in another application, you might need to change these. */#define EXIT_FAILURE 0#define EXIT_SUCCESS 1unsigned int image_height, image_width;static FILE * infile;		/* input JPEG file *//* Error exit handler */#define ERREXIT(msg)  { fprintf(stderr, "%s\n", msg); return 0; }/* Read one byte, testing for EOF */static int read_1_byte (void) {  int c;  c = getc(infile);  if (c == EOF)    ERREXIT("Premature EOF in JPEG file");  return c;}/* Read 2 bytes, convert to unsigned int *//* All 2-byte quantities in JPEG markers are MSB first */static unsigned int read_2_bytes (void) {  int c1, c2;  c1 = getc(infile);  if (c1 == EOF) ERREXIT("Premature EOF in JPEG file");  c2 = getc(infile);  if (c2 == EOF) ERREXIT("Premature EOF in JPEG file");  return (((unsigned int) c1) << 8) + ((unsigned int) c2);}/* * JPEG markers consist of one or more 0xFF bytes, followed by a marker * code byte (which is not an FF).  Here are the marker codes of interest * in this program. */#define M_SOF0  0xC0		/* Start Of Frame N */#define M_SOF1  0xC1		/* N indicates which compression process */#define M_SOF2  0xC2		/* Only SOF0-SOF2 are now in common use */#define M_SOF3  0xC3#define M_SOF5  0xC5		/* NB: codes C4 and CC are NOT SOF markers */#define M_SOF6  0xC6#define M_SOF7  0xC7#define M_SOF9  0xC9#define M_SOF10 0xCA#define M_SOF11 0xCB#define M_SOF13 0xCD#define M_SOF14 0xCE#define M_SOF15 0xCF#define M_SOI   0xD8		/* Start Of Image (beginning of datastream) *//* * Find the next JPEG marker and return its marker code. * We expect at least one FF byte, possibly more if the compressor used FFs * to pad the file. * There could also be non-FF garbage between markers.  The treatment of such * garbage is unspecified; we choose to skip over it but emit a warning msg. * NB: this routine must not be used after seeing SOS marker, since it will * not deal correctly with FF/00 sequences in the compressed image data... */static int next_marker (void) {  int c;  int discarded_bytes = 0;  /* Find 0xFF byte; count and skip any non-FFs. */  c = read_1_byte();  while (c != 0xFF) {    discarded_bytes++;    c = read_1_byte();  }  /* Get marker code byte, swallowing any duplicate FF bytes.  Extra FFs   * are legal as pad bytes, so don't count them in discarded_bytes.   */  do {    c = read_1_byte();  } while (c == 0xFF);  if (discarded_bytes != 0) {    fprintf(stderr, "Warning: garbage data found in JPEG file\n");  }  return c;}/* * Read the initial marker, which should be SOI. * For a JFIF file, the first two bytes of the file should be literally * 0xFF M_SOI.  To be more general, we could use next_marker, but if the * input file weren't actually JPEG at all, next_marker might read the whole * file and then return a misleading error message... */static int first_marker (void) {  int c1, c2;  c1 = getc(infile);  c2 = getc(infile);  if (c1 != 0xFF || c2 != M_SOI) ERREXIT("Not a JPEG file");  return c2;}/* * Most types of marker are followed by a variable-length parameter segment. * This routine skips over the parameters for any marker we don't otherwise * want to process. * Note that we MUST skip the parameter segment explicitly in order not to * be fooled by 0xFF bytes that might appear within the parameter segment; * such bytes do NOT introduce new markers. *//* Skip over an unknown or uninteresting variable-length marker */static void skip_variable (void) {  unsigned int length;  /* Get the marker parameter length count */  length = read_2_bytes();  /* Length includes itself, so must be at least 2 */  //if (length < 2) ERREXIT("Erroneous JPEG marker length");  if (length < 2) return;  length -= 2;  /* Skip over the remaining bytes */  while (length > 0) {    (void) read_1_byte();    length--;  }}/* * We are only interested in the image dimensions, so we stop at SOFn. */static int scan_JPEG_header(void) {  int marker = 0;// Expect SOI at start of file  if (first_marker() != M_SOI) ERREXIT("Expected SOI marker first");// Scan miscellaneous markers until we reach SOFn.  for (;;) {    marker = next_marker();    switch (marker) {// Note that marker codes 0xC4, 0xC8, 0xCC are not, and must not be,// treated as SOFn.  C4 in particular is actually DHT.    case M_SOF0:	/* Baseline */    case M_SOF1:	/* Extended sequential, Huffman */    case M_SOF2:	/* Progressive, Huffman */    case M_SOF3:	/* Lossless, Huffman */    case M_SOF5:	/* Differential sequential, Huffman */    case M_SOF6:	/* Differential progressive, Huffman */    case M_SOF7:	/* Differential lossless, Huffman */    case M_SOF9:	/* Extended sequential, arithmetic */    case M_SOF10:	/* Progressive, arithmetic */    case M_SOF11:	/* Lossless, arithmetic */    case M_SOF13:	/* Differential sequential, arithmetic */    case M_SOF14:	/* Differential progressive, arithmetic */    case M_SOF15:	/* Differential lossless, arithmetic */    // Process SOFn         (void) read_2_bytes();  /* usual parameter length count */         (void) read_1_byte();         image_height = read_2_bytes();         image_width = read_2_bytes();         return marker;      break;    default:			/* Anything else just gets skipped */      skip_variable();		/* we assume it has a parameter count... */      break;    }  } /* end loop */}int GetJPEGSize(char* cszJpegFile, unsigned int* iWidth, unsigned int* iHeight ){	// Open the input file.	if ((infile = fopen(cszJpegFile, "rb")) == NULL) {		fprintf(stderr, "can't open %s\n", cszJpegFile);		return EXIT_FAILURE;	}	// Clear high word of 32 bit int (the size is only 16 bit)	// (to be sure no trash is present...) 	image_height=0;	image_width=0;	// Scan the JPEG headers to get size	// (saved in global vars image_width and image_height)	if( scan_JPEG_header() == EXIT_FAILURE )		return EXIT_FAILURE;	*iWidth = image_width;	*iHeight = image_height;  	// All done, exit	fclose(infile);	return EXIT_SUCCESS;		/* suppress no-return-value warnings */}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲男女一区二区三区| 成人avav在线| 奇米影视一区二区三区| 亚瑟在线精品视频| 日av在线不卡| 精品一区二区三区在线播放| 国产一区在线观看麻豆| 国产成人亚洲精品狼色在线| 国产91精品精华液一区二区三区| 国精产品一区一区三区mba桃花| 国产激情视频一区二区三区欧美| 成人免费毛片嘿嘿连载视频| 99久久久无码国产精品| 在线视频综合导航| 欧美精品视频www在线观看 | 99精品桃花视频在线观看| 成人黄色国产精品网站大全在线免费观看 | 欧美日韩三级在线| 正在播放一区二区| 欧美电影免费观看高清完整版 | 久久 天天综合| 国产精品91xxx| 99免费精品视频| 色香色香欲天天天影视综合网| 色欧美片视频在线观看在线视频| 欧美午夜精品电影| 日韩欧美在线网站| 久久精品一区二区三区不卡牛牛| 国产精品美女久久福利网站| 亚洲另类中文字| 日本不卡免费在线视频| 狠狠色丁香婷综合久久| av在线播放成人| 欧美日韩在线三级| 欧美精品一区二区三区久久久 | 国产大片一区二区| 99久久er热在这里只有精品66| 欧美在线视频你懂得| 日韩欧美卡一卡二| 亚洲欧洲日韩女同| 亚洲 欧美综合在线网络| 国内不卡的二区三区中文字幕| www.欧美色图| 欧美精品久久天天躁| 久久久久久久电影| 一区二区三区资源| 久久爱另类一区二区小说| 国产凹凸在线观看一区二区| 在线观看成人小视频| 精品日韩成人av| 亚洲欧美日韩国产综合| 久久66热re国产| 色噜噜狠狠成人网p站| 欧美电影免费观看高清完整版在 | 五月婷婷色综合| 国产精品一区二区久久精品爱涩| 欧亚洲嫩模精品一区三区| 久久久亚洲高清| 五月天网站亚洲| aa级大片欧美| 欧美va亚洲va在线观看蝴蝶网| 玉米视频成人免费看| 国产精品亚洲成人| 这里只有精品视频在线观看| 亚洲欧美日韩电影| 国产做a爰片久久毛片| 777欧美精品| 亚洲欧美日韩国产成人精品影院 | 国产精品一区二区黑丝| 欧美性生活久久| 国产日本亚洲高清| 麻豆精品久久久| 在线免费观看日本一区| 国产三级一区二区| 久久精品久久精品| 欧美日韩免费一区二区三区视频| 国产精品久久久久一区| 国产一区二区精品久久| 欧美高清视频一二三区 | 本田岬高潮一区二区三区| 91精品国产乱码久久蜜臀| 一区二区三区四区不卡在线 | 秋霞影院一区二区| 91美女视频网站| 国产欧美一区二区三区在线老狼| 日本不卡的三区四区五区| 欧美视频一区二区三区在线观看| 中文字幕一区二区三区四区不卡| 国产成人免费视频一区| 26uuu精品一区二区在线观看| 日韩国产一区二| 欧美日韩视频第一区| 亚洲国产成人av| 欧美亚洲综合一区| 亚洲国产色一区| 欧美视频日韩视频在线观看| 亚洲专区一二三| 欧美午夜在线一二页| 亚洲精品大片www| 色噜噜偷拍精品综合在线| 中文字幕一区二区日韩精品绯色| 成人黄色小视频| 中文字幕日韩精品一区| 99国产精品99久久久久久| 亚洲视频综合在线| 97超碰欧美中文字幕| 亚洲色图第一区| 欧美最新大片在线看| 亚洲午夜精品在线| 欧美日韩不卡一区| 免费成人你懂的| 欧美刺激午夜性久久久久久久| 蜜桃视频在线一区| 精品国产伦一区二区三区观看方式 | 日韩一区二区中文字幕| 久久9热精品视频| 久久免费看少妇高潮| 国产成人午夜视频| 自拍偷在线精品自拍偷无码专区| 一本色道**综合亚洲精品蜜桃冫| 亚洲第一主播视频| 337p亚洲精品色噜噜狠狠| 蜜桃久久久久久| 久久色中文字幕| 99久久99久久精品免费看蜜桃| 一片黄亚洲嫩模| 777久久久精品| 国产一区二区女| 亚洲美女视频一区| 91麻豆精品国产91久久久久久| 久久 天天综合| 国产精品精品国产色婷婷| 日本道免费精品一区二区三区| 日本中文字幕一区二区视频 | 国产一区二区影院| 国产精品夫妻自拍| 欧美丰满少妇xxxxx高潮对白| 国内精品久久久久影院薰衣草| 亚洲欧洲日产国码二区| 欧美体内she精视频| 久久99精品久久久久久动态图 | 国产精品理论在线观看| 欧美三级一区二区| 韩国三级电影一区二区| 日韩毛片视频在线看| 欧美一级免费观看| proumb性欧美在线观看| 五月婷婷久久丁香| 中文字幕欧美日韩一区| 欧美三级视频在线观看| 国产精品夜夜嗨| 亚洲一区二区三区四区在线免费观看| 91精品麻豆日日躁夜夜躁| 成人午夜在线视频| 日本va欧美va精品发布| 中文字幕在线一区免费| 欧美一区二区日韩| 色噜噜偷拍精品综合在线| 极品瑜伽女神91| 亚洲福利视频一区二区| 国产精品午夜春色av| 日韩一区二区三区电影在线观看 | 另类小说视频一区二区| 有坂深雪av一区二区精品| 久久人人97超碰com| 欧美日韩中文精品| bt欧美亚洲午夜电影天堂| 激情综合网av| 亚洲国产你懂的| 中文字幕日本不卡| 精品对白一区国产伦| 精品视频1区2区| 色综合欧美在线| 粉嫩绯色av一区二区在线观看| 蜜桃视频在线观看一区| 亚洲综合色视频| 国产精品福利av| 久久久亚洲午夜电影| 91精品国产91综合久久蜜臀| 91久久精品国产91性色tv | 国产欧美日韩精品a在线观看| 337p亚洲精品色噜噜噜| 欧美这里有精品| 91首页免费视频| kk眼镜猥琐国模调教系列一区二区| 精品写真视频在线观看| 日本欧美肥老太交大片| 午夜欧美电影在线观看| 亚洲欧洲综合另类在线| 国产精品乱码一区二三区小蝌蚪| 久久综合色天天久久综合图片| 欧美一级高清大全免费观看| 欧美欧美欧美欧美首页| 欧美午夜精品电影| 在线日韩一区二区| 色94色欧美sute亚洲13| 色婷婷久久久亚洲一区二区三区 | 精品免费一区二区三区| 欧美一区二区免费观在线| 欧美绝品在线观看成人午夜影视 |