我有一个嵌入式系统的C语言源代码,其中包含每像素8位灰度图像的数据数组。我负责编写软件文档,我想将此源代码转换为JPEG(图像)文件。这是一个代码示例:constunsignedchargrayscale_image[]={0,0,0,0,0,0,0,74,106,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,159,146,93,39,0,0,0,0,0,0,0,0,0,0,0,//...};constunsignedintheight=41;constu