初级会员

- 积分
- 104
- 金钱
- 104
- 注册时间
- 2016-7-26
- 在线时间
- 30 小时
|
1金钱
[mw_shl_code=c,true] sramlcdbuf=gui_memex_malloc(spbdev.spbheight*spbdev.spbheight*4); //需要2帧缓存
if(sramlcdbuf==NULL)return 1;//错误
spbdev.frame=0;
res=ai_load_picfile(spb_bkpic_path_tbl[lcdtype][0],0,0,spbdev.spbwidth,spbdev.spbheight,0);//加载第一页背景图片
if(res==0)res=spb_load_icos(0); //加载第0帧图标
spbdev.frame=1;
if(res==0)res=ai_load_picfile(spb_bkpic_path_tbl[lcdtype][1],0,0,spbdev.spbwidth,spbdev.spbheight,0);//加载第二页背景图片
if(res==0)res=spb_load_icos(1); //加载第1帧图标[/mw_shl_code]
加载的背景图片是何时写入内存里面的?sramlcdbuf是申请的外部内存,图片解码是用的内部内存。什么时候图片加载到外部内存里的?
|
最佳答案
查看完整内容[请看2#楼]
解码的时候,因为在前面将打点函数重定向到了SPB RAM里面。所以画图的时候,就直接画到RAM里面了。
|