⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smallimg.c~

📁 JPEG Image compression using IJG standards followed
💻 C~
字号:
/* ******************************************************************** * *	Include Files * ******************************************************************** */#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>#include <time.h>int main(int argc, char *argv[]){  FILE 				*outfile;  int r, c;  char img[64] = {	52, 55, 61, 66,  70,  61,  64, 73,	63, 59, 66, 90,  109, 85,  69, 72,	62, 59, 68, 113, 144, 104, 66, 73,	63, 58, 71, 122, 154, 106, 70, 69,	67, 61, 68, 104, 126, 88,  68, 70,	79, 65, 60, 70,  77,  68,  58, 75,	85, 71, 64, 59,  55,  61,  65, 83,	87, 79, 69, 68,  65,  76,  78, 94,  };	  /* Open output files */  outfile = fopen("smallimg.pgm", "w");   if (outfile == NULL)  {	fprintf(stderr, "Output file not found.\n");	return(-1);  }  fwrite("P5\n", sizeof(char), 3, outfile);  fwrite("8 8\n", sizeof(char), 4, outfile);  fwrite("255\n", 1, 4, outfle);  for

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -