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

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

?? decoder.c

?? 實現圖像的jpeg無損壓縮
?? C
?? 第 1 頁 / 共 3 頁
字號:
								}
							else 
							{
								local_cscanline=cscanline;
								local_pscanline=pscanline;
							}

							if ( lossless_undoscanline(local_pscanline, local_cscanline, columns, n_c ) != 0 )
							{
								fprintf(stderr,"*** Premature EOF: expected %d rows, got %d\n",rows, n-1);
								found_EOF = 1;
								break;
							}

							if (components>1)
								for (my_i=0;my_i<columns+LEFTMARGIN+RIGHTMARGIN;my_i++)
									cscanline[-components+my_i*components+n_c]=local_cscanline[-1+my_i];
						}

						write_one_line(cscanline + components, components*columns, out);

						tot_out += components*columns;

						/* extend the edges */
						for (n_c=0;n_c<components;n_c++)
							cscanline[components*(columns+1)+n_c] = cscanline[components*columns+n_c];

						/* make the current scanline the previous one */
						swaplines();

						/* Take out the Restart Markers */
						if (got_restart)
						{
							/* Look for restart markers only after a restart interval */
							if ((MCUs_counted % restart_interval) == 0)
							{
								bitiflush();
								read_n_bytes(in, 2);	/* read the RST marker */
								bitiinit();
							}
							MCUs_counted++;

						}

					}	/* End of while loop for each file line */

				else

					/* LOSSY MODE */
					while (++n <= rows)
					{
						/* 'extend' the edges */
						for (n_c=0;n_c<components;n_c++)
							cscanline[-components+n_c]=cscanline[n_c]=pscanline[components+n_c];

						for (n_c=0;n_c<components;n_c++)
						{
							if (components>1)
								for (my_i=0;my_i<columns+LEFTMARGIN+RIGHTMARGIN;my_i++)
								{
									local_cscanline[-1+my_i]=cscanline[-components+my_i*components+n_c];
									local_pscanline[-1+my_i]=pscanline[-components+my_i*components+n_c];
								}
							else 
							{
								local_cscanline=cscanline;
								local_pscanline=pscanline;
							}

							if ( lossy_undoscanline(local_pscanline, local_cscanline, columns, n_c ) != 0 )
							{
								fprintf(stderr,"*** Premature EOF: expected %d rows, got %d\n",rows, n-1);
								found_EOF = 1;
								break;
							}

							if (components>1)
								for (my_i=0;my_i<columns+LEFTMARGIN+RIGHTMARGIN;my_i++)
									cscanline[-components+my_i*components+n_c]=local_cscanline[-1+my_i];
						}

						write_one_line(cscanline + components, components*columns, out);

						tot_out += components*columns;

						/* extend the edges */
						for (n_c=0;n_c<components;n_c++)
							cscanline[components*(columns+1)+n_c] = cscanline[components*columns+n_c];

						/* make the current scanline the previous one */
						swaplines();

						/* Take out the Restart Markers */
						if (got_restart)
						{
							/* Look for restart markers only after a restart interval */
							if ((MCUs_counted % restart_interval) == 0)
							{
								bitiflush();
								read_n_bytes(in, 2);	/* read the RST marker */
								bitiinit();
							}
							MCUs_counted++;

						}

					}	/* End of while loop for each file line */

			}
			else
			{		/* Multiple files */
				/* color_mode==LINE_INT and multi==1 */
				/***********************************************************************/
				/*           Line interleaved mode with multiple files received        */
				/***********************************************************************/

				n++;

				if (lossy==FALSE)

					/* LOSSLESS MODE */
					while (n <= c_rows[whose_max_size_rows])
					{
						for (n_c=0;n_c<components;n_c++)
						{
							for (n_r=0;n_r<samplingy[n_c];n_r++)
							{

								/* 'extend' the edges */
								c_cscanline[n_c][-1]=c_cscanline[n_c][0]=c_pscanline[n_c][1];

								if ( lossless_undoscanline(c_pscanline[n_c], c_cscanline[n_c], c_columns[n_c], n_c ) != 0 )
								{
									fprintf(stderr,"*** Premature EOF: expected %d rows, got %d\n",rows, n-1);
									found_EOF = 1;
									break;
								}

								write_one_line(c_cscanline[n_c] + 1, c_columns[n_c], c_out[n_c]);

								tot_out += c_columns[n_c];

								/* extend the edges */
								c_cscanline[n_c][c_columns[n_c]+1] = c_cscanline[n_c][c_columns[n_c]];

								/* make the current scanline the previous one */
								c_swaplines(n_c);
							}
						}	/* End of for loop for each component */

						n+=samplingy[whose_max_size_rows];

						/* Take out the Restart Markers */
						if (got_restart)
						{
							/* Look for restart markers only after a restart interval */
							if ((MCUs_counted % restart_interval) == 0)
							{
								bitiflush();
								read_n_bytes(in, 2);	/* read the RST marker */
								bitiinit();
							}
							MCUs_counted++;

						}

					}	/* End of while loop for each line */

				else

					/* LOSSY MODE */
					while (n <= c_rows[whose_max_size_rows])
					{
						for (n_c=0;n_c<components;n_c++)
						{
							for (n_r=0;n_r<samplingy[n_c];n_r++)
							{

								/* 'extend' the edges */
								c_cscanline[n_c][-1]=c_cscanline[n_c][0]=c_pscanline[n_c][1];

								if ( lossy_undoscanline(c_pscanline[n_c], c_cscanline[n_c], c_columns[n_c], n_c ) != 0 )
								{
									fprintf(stderr,"*** Premature EOF: expected %d rows, got %d\n",rows, n-1);
									found_EOF = 1;
									break;
								}

								write_one_line(c_cscanline[n_c] + 1, c_columns[n_c], c_out[n_c]);

								tot_out += c_columns[n_c];

								/* extend the edges */
								c_cscanline[n_c][c_columns[n_c]+1] = c_cscanline[n_c][c_columns[n_c]];

								/* make the current scanline the previous one */
								c_swaplines(n_c);
							}
						}	/* End of for loop for each component */

						n+=samplingy[whose_max_size_rows];

						/* Take out the Restart Markers */
						if (got_restart)
						{
							/* Look for restart markers only after a restart interval */
							if ((MCUs_counted % restart_interval) == 0)
							{
								bitiflush();
								read_n_bytes(in, 2);	/* read the RST marker */
								bitiinit();
							}
							MCUs_counted++;

						}

					}	/* End of while loop for each line */


			}		/* Closes the else, LINE_INT and multi=1 */

		}		/* End of part for LINE_INT */

		else {		/* Non LINE_INT mode */
			if (color_mode==PIXEL_INT) {
				/***********************************************************************/
				/*           Pixel interleaved mode with single file received          */
				/***********************************************************************/

				if (lossy==FALSE)

					/* LOSSLESS MODE */
					while (++n <= rows)
					{
						/* 'extend' the edges */
						for (n_c=0;n_c<components;n_c++)
							cscanline[-components+n_c]=cscanline[n_c]=pscanline[components+n_c];

						if ( lossless_undoscanline_pixel(pscanline, cscanline, components*columns) != 0 )
						{
							fprintf(stderr,"*** Premature EOF: expected %d rows, got %d\n",rows,n-1);
							found_EOF = 1;
							break;
						}

						write_one_line(cscanline+components, components*columns, out);

						tot_out += components*columns;

						/* extend the edges */
						for (n_c=0;n_c<components;n_c++)
							cscanline[components*(columns+1)+n_c] = cscanline[components*columns+n_c];

						/* make the current scanline the previous one */
						swaplines();

						/* Take out the Restart Markers */
						if (got_restart)
						{
							/* Look for restart markers only after a restart interval */
							if ((MCUs_counted % restart_interval) == 0)
							{
								bitiflush();
								read_n_bytes(in, 2);	/* read the RST marker */
								bitiinit();
							}
							MCUs_counted++;

						}

					}	/* End of line loop for PIXEL_INT */


				else

					/* LOSSY MODE */
					while (++n <= rows)
					{
						/* 'extend' the edges */
						for (n_c=0;n_c<components;n_c++)
							cscanline[-components+n_c]=cscanline[n_c]=pscanline[components+n_c];

						if ( lossy_undoscanline_pixel(pscanline, cscanline, components*columns) != 0 )
						{
							fprintf(stderr,"*** Premature EOF: expected %d rows, got %d\n",rows,n-1);
							found_EOF = 1;
							break;
						}

						write_one_line(cscanline+components, components*columns, out);

						tot_out += components*columns;

						/* extend the edges */
						for (n_c=0;n_c<components;n_c++)
							cscanline[components*(columns+1)+n_c] = cscanline[components*columns+n_c];

						/* make the current scanline the previous one */
						swaplines();

						/* Take out the Restart Markers */
						if (got_restart)
						{
							/* Look for restart markers only after a restart interval */
							if ((MCUs_counted % restart_interval) == 0)
							{
								bitiflush();
								read_n_bytes(in, 2);	/* read the RST marker */
								bitiinit();
							}
							MCUs_counted++;

						}

					}	/* End of line loop for PIXEL_INT */

			}
			else {
				/***********************************************************************/
				/*           Plane interleaved mode 				       */
				/***********************************************************************/

				if (lossy==FALSE)

					/* LOSSLESS MODE */
					while (++n <= c_rows[n_s])
					{
						/* 'extend' the edges */
						c_cscanline[n_s][-1]=c_cscanline[n_s][0]=c_pscanline[n_s][1];

						if (lossless_undoscanline(c_pscanline[n_s], c_cscanline[n_s], c_columns[n_s], n_s ) != 0 )
						{
							fprintf(stderr,"*** Premature EOF: expected %d rows, got %d\n",rows, n-1);
							found_EOF = 1;
							break;
						}

						write_one_line(c_cscanline[n_s]+1, c_columns[n_s], c_out[n_s]);

						tot_out += c_columns[n_s];

						/* extend the edges */
						c_cscanline[n_s][c_columns[n_s]+1] = c_cscanline[n_s][c_columns[n_s]];

						/* make the current scanline the previous one */
						c_swaplines(n_s);

						/* Take out the Restart Markers */
						if (got_restart)
						{
							/* Look for restart markers only after a restart interval */
							if ((MCUs_counted % restart_interval) == 0)
							{
								bitiflush();
								read_n_bytes(in, 2);	/* read the RST marker */
								bitiinit();
							}
							MCUs_counted++;

						}

					}	/* End of line loop in PLANE_INT */

				else

					/* LOSSY MODE */
					while (++n <= c_rows[n_s])
					{
						/* 'extend' the edges */
						c_cscanline[n_s][-1]=c_cscanline[n_s][0]=c_pscanline[n_s][1];

						if (lossy_undoscanline(c_pscanline[n_s], c_cscanline[n_s], c_columns[n_s], n_s ) != 0 )
						{
							fprintf(stderr,"*** Premature EOF: expected %d rows, got %d\n",rows, n-1);
							found_EOF = 1;
							break;
						}

						write_one_line(c_cscanline[n_s]+1, c_columns[n_s], c_out[n_s]);

						tot_out += c_columns[n_s];

						/* extend the edges */
						c_cscanline[n_s][c_columns[n_s]+1] = c_cscanline[n_s][c_columns[n_s]];

						/* make the current scanline the previous one */
						c_swaplines(n_s);

						/* Take out the Restart Markers */
						if (got_restart)
						{
							/* Look for restart markers only after a restart interval */
							if ((MCUs_counted % restart_interval) == 0)
							{
								bitiflush();
								read_n_bytes(in, 2);	/* read the RST marker */
								bitiinit();
							}
							MCUs_counted++;

						}

					}	/* End of line loop in PLANE_INT */

			}	/* End of each component for PLANE_INT */

		}	/* End of non LINE_INT */

		bitiflush();

	} /* End of loop for scans */


	mk = 0;

	/* Read EOI */
	seek_return=seek_marker(in,&mk);
	if (seek_return==EOF)
	{
		fprintf(stderr,"Did not get EOI at end of compressed image\n");
		exit(10);
	}
	if ( seek_return > 2 )
	{
		fprintf(msgfile,"*** WARNING: %d extra bytes between end of scan and next marker.\n",seek_return-2);
		fprintf(msgfile,"***          Added to marker segment count.\n");
	}

	pos0 += seek_return;
	if (mk != EOI)
	{
		fprintf(stderr,"In this implementation last marker must be EOI\n");
		exit(10);
	}

	if (head_scan[0]->need_table)
		fprintf(msgfile,"A mapping table was used which had %i entries of %i bytes each.\n",head_scan[0]->MAXTAB, head_scan[0]->Wt);

	if (got_restart)
		fprintf(msgfile,"Restart markers were found with a restart interval of %i.\n",restart_interval);

	if ( verbose )
		fprintf(msgfile,"Marker segment bytes: %ld\n",pos0);

	/* position in input file */
	pos1 = ftell(in);
	/* tot_in = 8*(pos1-pos0); */

	/* size of compressed file read (bits), incl. headers. */
	tot_in = 8*pos1;

	/* Close down */
	close_process_run();
	closebuffers(multi);


	t1 = get_utime();
	fprintf(msgfile,"Total bits  in: %ld  Symbols out: %ld  %5.3lf bps\n",
		tot_in,tot_out,tot_in/(double)tot_out);
	fprintf(msgfile,"Time = %1.3lf secs : %1.0lf KSymbols/sec\n",t1-t0,
		(tot_out)/(1024*(t1-t0)));

	if ( found_EOF )
		exit(0);
	else
		return 1;
}




usage()
{
	fprintf(stderr,"Usage: %s [flags] [infile] [outfile1 [outfile2, ...]]\n\
				   DEFAULTS:\n\
				   infile   = %s.\n\
				   outfile1 = %s for color image in a single (PPM) output file.\n\
				   outfile1 = %s for monochrome image in a single (PGM) output file.\n\
				   outfile[1,2,...] = %s for multiple (PGM) output files \n\
				   in plane or line interleaved modes.\n",
				   "locod", "specified JLS file", OUTFILE ".out", 
				   OUTFILE "1.out",
				   OUTFILE "[1,2,...].out");
	fprintf(stderr,"FLAGS:\n\
				   outfile2, ... : Multiple output specification for plane or line int. mode.\n\
				   -i<infile>    : Alternate input specification, use -i- for stdin.\n\
				   -o<outfile>   : Alternate output specification, use -o- for stdout.\n\
				   -P            : Generate single (.ppm) output file for sample/line int. mode.\n\
				   ");
	fprintf(stderr,"\
				   -h            : Print this help.\n\
				   *** No spaces allowed between a flag and its argument.\n\
				   ");

}


bad_flag(char *s)
{
	fprintf(stderr,"Bad flag %s\n",s);
	usage();
	exit(10);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产精选| 日韩三级免费观看| 3751色影院一区二区三区| 久久综合999| 亚洲国产综合人成综合网站| 国产原创一区二区| 欧美日韩一区二区不卡| 国产欧美日产一区| 免费成人你懂的| 91极品美女在线| 国产精品狼人久久影院观看方式| 免费xxxx性欧美18vr| 欧美色图一区二区三区| 国产精品每日更新| 国产一区二区三区最好精华液| 欧美日韩国产影片| 国产精品国产三级国产aⅴ中文 | 亚洲国产精品久久不卡毛片| 国产精品系列在线观看| 日韩丝袜情趣美女图片| 亚洲午夜影视影院在线观看| 色偷偷一区二区三区| 欧美激情综合五月色丁香小说| 午夜视频在线观看一区二区三区| av色综合久久天堂av综合| 国产欧美精品区一区二区三区| 精品一区二区日韩| 日韩女优电影在线观看| 日韩av不卡一区二区| 91精品国产综合久久久蜜臀粉嫩| 夜夜嗨av一区二区三区网页| 色综合婷婷久久| 亚洲天堂av老司机| 91婷婷韩国欧美一区二区| 国产精品三级电影| 99国产欧美久久久精品| 亚洲欧美另类综合偷拍| 欧美在线视频日韩| 亚洲国产日韩一级| 欧美人成免费网站| 奇米影视在线99精品| 日韩欧美在线123| 老司机精品视频在线| 日韩精品一区二区三区蜜臀| 国产一区二区三区久久悠悠色av| 久久久久久久久久久久久久久99 | 国产成人欧美日韩在线电影| 中文一区一区三区高中清不卡| 成人一区二区三区| 一区二区三区中文字幕精品精品 | 亚洲欧美日韩国产中文在线| 欧美午夜精品免费| 日本视频中文字幕一区二区三区| 日韩午夜中文字幕| 成人一二三区视频| 亚洲国产视频一区| 日韩欧美激情四射| 国产91高潮流白浆在线麻豆| 日韩伦理免费电影| 欧美日韩国产大片| 老司机免费视频一区二区| 亚洲国产成人午夜在线一区| 色婷婷亚洲综合| 麻豆精品新av中文字幕| 国产精品福利在线播放| 欧美三日本三级三级在线播放| 强制捆绑调教一区二区| 亚洲国产高清不卡| 555夜色666亚洲国产免| 欧美午夜一区二区| 男男视频亚洲欧美| 亚洲视频在线一区观看| 日韩一级大片在线| 色综合中文字幕| 国内精品国产成人| 亚洲一区自拍偷拍| 久久久久久久久久久久电影| 欧美色图免费看| 懂色中文一区二区在线播放| 亚洲国产一二三| 国产精品麻豆99久久久久久| 欧美一区2区视频在线观看| a4yy欧美一区二区三区| 麻豆高清免费国产一区| 一区二区三区欧美久久| 国产精品少妇自拍| 精品国产亚洲一区二区三区在线观看| heyzo一本久久综合| 精品一区二区三区在线观看国产 | 国产精品一区二区视频| 天天操天天干天天综合网| 国产精品对白交换视频 | 欧美伦理影视网| 92精品国产成人观看免费| 国产又黄又大久久| 蜜桃视频一区二区| 天天影视网天天综合色在线播放 | 色哟哟一区二区| 成人免费看视频| 久久不见久久见免费视频7 | 成人国产亚洲欧美成人综合网| 午夜视频在线观看一区二区| 中文字幕一区二区三区蜜月| 久久久99精品免费观看不卡| 日韩一级视频免费观看在线| 欧美日韩国产在线播放网站| 欧美性猛交xxxx黑人交| 97久久精品人人爽人人爽蜜臀| 国产精一品亚洲二区在线视频| 另类小说图片综合网| 亚洲va天堂va国产va久| 亚洲一区欧美一区| 一区二区三区视频在线看| 中文字幕字幕中文在线中不卡视频| 国产喂奶挤奶一区二区三区| 久久久99久久精品欧美| 国产亚洲欧美日韩在线一区| 精品国产伦一区二区三区免费| 欧美一区二区三区影视| 欧美一区二区三区小说| 91麻豆精品91久久久久同性| 7777精品伊人久久久大香线蕉的| 欧美色图天堂网| 欧美一区永久视频免费观看| 日韩一区二区三区精品视频 | 久久爱另类一区二区小说| 日韩电影一区二区三区四区| 日本免费在线视频不卡一不卡二| 日韩黄色片在线观看| 美国精品在线观看| 国产老肥熟一区二区三区| 国产精品主播直播| www.久久久久久久久| 色狠狠色噜噜噜综合网| 国产精品区一区二区三区| 自拍av一区二区三区| 亚洲高清中文字幕| 久久精品999| 丁香婷婷综合色啪| 91成人在线精品| 91精品国产乱| 国产欧美一区二区在线| 一区二区三区蜜桃| 奇米在线7777在线精品| 国产成人在线色| 欧美日韩亚州综合| 国产三级三级三级精品8ⅰ区| 亚洲人成人一区二区在线观看| 丝袜亚洲另类欧美综合| 国产成人一级电影| 欧美日韩激情一区二区三区| 2023国产精品| 一区二区视频在线| 美女脱光内衣内裤视频久久网站 | 欧美自拍偷拍一区| 久久蜜臀精品av| 亚洲曰韩产成在线| 国模少妇一区二区三区| 91福利小视频| 久久久蜜臀国产一区二区| 一级特黄大欧美久久久| 国产一区二区三区黄视频| 在线日韩一区二区| 久久夜色精品国产欧美乱极品| 一区二区三区日韩| 国产成人精品三级| 欧美一区二区三区日韩| **性色生活片久久毛片| 久久er99热精品一区二区| 在线观看视频欧美| 中国色在线观看另类| 日本aⅴ亚洲精品中文乱码| 91网站最新地址| 日本一区二区不卡视频| 另类欧美日韩国产在线| 欧美日韩三级视频| 亚洲欧洲成人精品av97| 国产一区二区三区精品视频| 欧美一区二区成人| 亚洲午夜羞羞片| 色94色欧美sute亚洲线路一ni| 久久久精品天堂| 国内精品自线一区二区三区视频| 欧美日韩精品一区视频| |精品福利一区二区三区| 国产福利一区二区三区视频在线| 欧美日韩和欧美的一区二区| 亚洲欧美偷拍三级| av日韩在线网站| 日本一区二区高清| 国产精品一卡二卡在线观看| 日韩精品在线网站| 久久99精品国产.久久久久久| 欧美剧情电影在线观看完整版免费励志电影 | 91精品国产综合久久精品性色| 亚洲精品视频一区二区| 北条麻妃国产九九精品视频| 国产欧美精品区一区二区三区| 国产成人av电影在线观看| 国产欧美中文在线|