XmuYW
2015-04-30 14:32Delphi 错误:incompatible types
function SnapCallBack(iCamID: integer; pImageBuffer: PByte;
pFrInfo: PFrameInfo): integer;stdcall;
var
sFrInfo: tDSFrameInfo;
pIsp: PByte;begin sFrInfo := pFrInfo^;
pIsp := CameraISP(iCamID, pImageBuffer, pFrInfo);//出错语句!!!
CameraDisplayRGB24(iCamID, pIsp, pFrInfo);
result := 0;
end;补充API:
Function: 图像数据处理
Parameter:
1 In INT iCameraID 摄像头ID,回调函数参数
2 In BYTE *pbyRAW 图像数据首地址,回调函数参数
3 In FrameInfo sFrInfo 图像帧数据信息,参见FrameInfo定义Return: 调用成功返回RGB24图像数据首地址,失败返回NULLNotification:
type pFrameInfo = ^tDSFrameInfo;
function CameraISP(iCameraID:integer;pbyRAW: PByte;
sFrInfo: pFrameInfo):PByte;cdecl;****
- 点赞
- 回答
- 收藏
- 复制链接分享
6条回答
为你推荐
- 带有模板字符串的kubectl get失败,类型不兼容,无法进行比较
- kubernetes
- 1个回答
- 尝试注入依赖项时出错
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 1个回答
- 重命名类型后,我无法访问其某些方法
- types
- methods
- 1个回答
- 错误:展示模板中的“用于比较的无效类型”
- templates
- revel
- 2个回答
- 错误调用eq:Go模板中的比较类型无效
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 1个回答
换一换