初级会员

- 积分
- 100
- 金钱
- 100
- 注册时间
- 2019-6-28
- 在线时间
- 27 小时
|

楼主 |
发表于 2019-9-15 19:27:54
|
显示全部楼层
问题解决了 ,需要重新写GetData()函数,
U8 _image_buf[] __attribute__((at(0XC01f4004)));//存放图片用0XC1b40000
int Image_GetData(void * p, const U8 ** ppData, unsigned NumBytes, U32 Off)
{
U32 src_index,dest_index;
U8* pSrc = (U8*)p;
for(dest_index=0,src_index=Off;dest_index<NumBytes;dest_index++,src_index++)
{
_image_buf[dest_index]=*(pSrc+src_index);
}
*ppData = _image_buf;
return NumBytes;
}
///。。。
IMAGE_SetJPEGEx(IMAGE_Handle hObj,Image_GetData,_acImage_0); |
|