|
2440 Buffer_preview_info_update 问题
[复制链接]
temp = (s2440CAM->rCIPRSTATUS>>26)&3;
temp = (temp + 2) % 4;
RETAILMSG(MSG_EN_2,(_T("preview index = %d, size %d\r\n"), temp, image_size));
switch (temp)
{
case 0:
buffer_rgb = s2440CAM->rCIPRCLRSA1;
break;
case 1:
buffer_rgb = s2440CAM->rCIPRCLRSA2;
break;
case 2:
buffer_rgb = s2440CAM->rCIPRCLRSA3;
break;
case 3:
buffer_rgb = s2440CAM->rCIPRCLRSA4;
break;
default :
buffer_rgb = s2440CAM->rCIPRCLRSA1;
break;
}
buffer_rgb += VIRTUAL_ADDR_OFFSET;
问题1:
temp = (s2440CAM->rCIPRSTATUS>>26)&3;
temp = (temp + 2) % 4;
temp值每次都固定吗?因为发现代码中rCIPRSTATUS 一直都没变化 ?
问题2:
buffer_rgb += VIRTUAL_ADDR_OFFSET; 其中buffer_rgb为物理地址为什么还要加上VIRTUAL_ADDR_OFFSET(0x7c000000)?
而在Display_Cam_Image中buffer_rgb却又没有加上VIRTUAL_ADDR_OFFSET
|
|