| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 781 人关注过本帖
标题:如何在Codewarrior IDE上用C语言解码png,并将它显示在液晶屏上?
只看楼主 加入收藏
jeackeeli
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2013-8-21
结帖率:50%
收藏
已结贴  问题点数:20 回复次数:2 
如何在Codewarrior IDE上用C语言解码png,并将它显示在液晶屏上?
static unsigned char x_png[495] =
{0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a,0x00,0x00,0x00,0x0d,0x49,0x48,0x44,0x52,
 0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x40,0x08,0x06,0x00,0x00,0x00,0xaa,0x69,0x71,
 0xde,0x00,0x00,0x01,0xb6,0x49,0x44,0x41,0x54,0x78,0xda,0xed,0xdb,0x31,0x4e,0xc3,
 0x30,0x14,0x06,0x60,0xe7,0x12,0x64,0xe1,0x00,0x1c,0x00,0x66,0xb2,0x46,0x82,0x9d,
 0x2b,0x70,0x88,0x08,0xa3,0x1c,0x82,0x89,0x9d,0x1d,0xa4,0xac,0x61,0x86,0x63,0x74,
 0x09,0x97,0x08,0x18,0xc9,0xca,0xa3,0x7a,0x4e,0x6d,0xea,0xc4,0x7e,0xcd,0xff,0xa4,
 0x4a,0x75,0xa2,0xb4,0xfe,0xbf,0xd4,0x4f,0xce,0xd0,0xa2,0xef,0xfb,0x51,0x6d,0xb4,
 0xaa,0xaa,0x52,0x85,0x01,0xf8,0x79,0x15,0xa9,0x27,0x93,0xa2,0xb4,0xd6,0x23,0x00,
 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0xb6,0x00,0x66,0x92,0xcc,0xb1,
 0x28,0xf3,0x05,0x80,0x04,0x80,0xdf,0x89,0xaa,0x97,0x71,0x7a,0x7f,0x17,0x6d,0xae,
 0x00,0x48,0x09,0xe0,0xfb,0xd3,0xa6,0xe1,0x63,0x23,0x00,0x20,0xf5,0x12,0xb8,0x3c,
 0x9f,0x10,0x3e,0x77,0x7e,0xe1,0x63,0x22,0x00,0x20,0x25,0x00,0x0d,0xcf,0x21,0xd8,
 0xf0,0xc3,0xfd,0xbb,0x2a,0x9f,0xae,0x17,0x41,0x58,0x04,0xc0,0x77,0x6d,0x6f,0x1a,
 0x80,0x0b,0x4f,0x11,0x68,0x78,0x53,0x2e,0x80,0x63,0x11,0x16,0x5b,0x02,0xfa,0x61,
 0x0a,0xa8,0x1f,0xfd,0xee,0xbe,0x0b,0x60,0x2e,0xbc,0x48,0x00,0x1b,0xfe,0xea,0x76,
 0x50,0x1f,0xaf,0x25,0x7b,0xfd,0xcd,0xee,0x42,0x89,0x05,0xa0,0xe1,0x39,0x84,0x10,
 0x00,0xaf,0xef,0x93,0x04,0x40,0xc3,0x9b,0x72,0x01,0x84,0x20,0x64,0x05,0xc0,0x85,
 0xa7,0x08,0x3e,0x77,0x1f,0x00,0x52,0x01,0x6c,0xf8,0xe1,0x6b,0x50,0xe5,0x19,0x1f,
 0xee,0xed,0xd9,0xff,0xf3,0x0e,0x01,0xd8,0x06,0x09,0x80,0x1c,0x00,0x68,0x78,0x53,
 0x2e,0x80,0x10,0x04,0xb1,0x00,0x73,0xe1,0x63,0x01,0xd0,0xfd,0xc1,0xc9,0x01,0xd8,
 0x06,0xe9,0xd3,0x04,0xb3,0x79,0x16,0x98,0xeb,0xfe,0xff,0x05,0xe0,0x1e,0x8f,0x63,
 0x17,0x00,0x72,0x03,0xa0,0xfb,0x83,0x4d,0x02,0xd8,0x5a,0x23,0xfc,0xea,0x00,0xb6,
 0x41,0x72,0x8f,0xc7,0xa9,0x0a,0x00,0x00,0x58,0x09,0x80,0xee,0x0f,0x4e,0x12,0xc0,
 0x07,0x21,0xb7,0xf0,0xd1,0x01,0x24,0x16,0x00,0x00,0x00,0x80,0xf8,0x00,0x4d,0xd3,
 0xfc,0x69,0x86,0x6d,0xdb,0x16,0xf4,0xf8,0xfe,0x38,0xa4,0xec,0xb5,0xd9,0x02,0xb8,
 0x42,0x9a,0x31,0x0d,0x4c,0xc7,0x87,0x80,0x5c,0x63,0x11,0x00,0xdc,0x39,0x00,0x04,
 0x02,0xd0,0x12,0xb7,0x04,0x5c,0xe7,0xf6,0x31,0xe6,0x00,0x38,0x2c,0x31,0x00,0xae,
 0x10,0x00,0x08,0x04,0xe0,0xc6,0x59,0x02,0xd0,0x89,0x1e,0x1b,0x90,0x0b,0x1c,0x1b,
 0x01,0x1b,0x21,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x4d,0x03,
 0xd4,0x75,0xbd,0xd9,0xbf,0xcf,0x77,0x5d,0xa7,0xbe,0x01,0x89,0x7b,0xc9,0x2e,0x9c,
 0x79,0x97,0x34,0x00,0x00,0x00,0x00,0x49,0x45,0x4e,0x44,0xae,0x42,0x60,0x82};
以上是png的压缩数据,如何将它解压成原始数据呢?请前辈们指点!
搜索更多相关主题的帖子: 液晶屏 C语言 如何 
2013-08-21 16:20
embed_xuel
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
等 级:贵宾
威 望:58
帖 子:3845
专家分:11385
注 册:2011-9-13
收藏
得分:14 
这种问问题的方式都得不到解决

总有那身价贱的人给作业贴回复完整的代码
2013-08-21 17:36
jeackeeli
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2013-8-21
收藏
得分:0 
那请问一下png格式里的动态huffman编码的解码思想是什么?格式里面的5+5+4是什么意思?
2013-08-23 16:36
快速回复:如何在Codewarrior IDE上用C语言解码png,并将它显示在液晶屏上?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.071193 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved