一个爱技术的人
4004
- 收藏
- 点赞
- 分享
- 举报
海思3519有可以用的鼠标层吗?
本帖最后由 wfjdemmye 于 2016-12-16 09:49 编辑
目前有一个比较严重的问题,就是鼠标的移动有一点点迟滞感,体验不是很好,我想直接用海思提供的鼠标层来刷新,而不用QT的鼠标。在实现的过程中隐藏了QT用的鼠标。但是海思的鼠标也并没有显示出来。
付上代码:
求教一个,在使用海思鼠标层是个使用流程。有其它芯片的例子也可以。我相信过程都是一样的。
目前有一个比较严重的问题,就是鼠标的移动有一点点迟滞感,体验不是很好,我想直接用海思提供的鼠标层来刷新,而不用QT的鼠标。在实现的过程中隐藏了QT用的鼠标。但是海思的鼠标也并没有显示出来。
付上代码:
int hisivBorad::open_hisi_mouse()
{
HIFB_CURSOR_S stCursor;
if(ioctl(stInfo.fd, FBIOGET_CURSOR_INFO,&stCursor))
{
printf("get the soft mouse buffer!\n");
close(stInfo.fd);
return -1;
}
printf("get the soft mouse buffer!\n");
stCursor.stCursor.enFmt =HIFB_FMT_ARGB8888;
stCursor.stCursor.u32Width=1920;
stCursor.stCursor.u32Height =1080;
//stCursor.stCursor.u32PhyAddr=
//stCursor.stCursor.u32Pitch = 32;
stCursor.stHotPos.s32XPos =960;
stCursor.stHotPos.s32YPos =540;
if(ioctl(stInfo.fd, FBIOPUT_CURSOR_INFO,&stCursor))
{
printf("set the soft mouse buffer!\n");
close(stInfo.fd);
return -1;
}
printf("get the soft mouse buffer!\n");
if(ioctl(stInfo.fd,FBIOPUT_CURSOR_DETACHCURSOR,stInfo.layer))
{
printf("deletebind the soft mouse buffer!\n");
close(stInfo.fd);
return -1;
}
if(ioctl (stInfo.fd,FBIOPUT_CURSOR_ATTCHCURSOR,stInfo.layer))
{
printf("bind the soft mouse buffer!\n");
close(stInfo.fd);
return -1;
}
bShow = HI_TRUE;
if(ioctl(stInfo.fd, FBIOPUT_CURSOR_STATE,&bShow))
{
printf("SHOW the soft mouse buffer!\n");
close(stInfo.fd);
return -1;
}
HIFB_POINT_S pstPos;
if(ioctl(stInfo.fd,FBIOGET_CURSOR_POS,&pstPos))
{
printf("GET CURSOR the soft mouse buffer!\n");
close(stInfo.fd);
return -1;
}
if(ioctl(stInfo.fd,FBIOPUT_CURSOR_POS,&pstPos))
{
printf("PUT CURSOR the soft mouse buffer!\n");
close(stInfo.fd);
return -1;
}
return 0;
}
求教一个,在使用海思鼠标层是个使用流程。有其它芯片的例子也可以。我相信过程都是一样的。
我来回答
回答2个
时间排序
认可量排序
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2020-08-25 14:01:32
-
2019-06-19 11:43:32
-
2019-01-21 09:23:08
-
2018-01-10 15:13:07
-
2020-11-22 11:47:10
-
2019-12-24 14:47:08
-
2017-06-06 14:29:08
-
2018-11-16 10:49:36
-
2019-03-04 11:49:21
-
2019-12-16 10:27:21
-
2020-09-26 15:20:47
-
2016-04-18 15:54:15
-
2020-08-18 10:43:37
-
2017-05-02 11:57:10
-
2016-07-02 10:30:59
-
2019-12-16 17:12:23
-
2017-03-13 21:22:00
-
2020-09-18 11:00:51
-
2023-03-08 10:10:52
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
10hi35169dv500平台使用http协议推拉流UVC摄像头,帧率问题
-
10hi3516cv610关于YOLO优化和调优问题
-
10hi_mpi_vpss_get_chn_frame err:0xa0078016报错
-
5gk7205v200(hisi3516ev200)如何接入b656?
-
30pipe管道创建失败
-
10atc转换模型失败
-
20拍摄静止画面显示正常,拍摄运动的画面出现马赛克显示
-
100hi3516cv610 通过易百纳官方SDK中编译出的uboot env kernel,移植到自己的工程中,MPP初始化时出现内核拷贝数据到用户端时出现错误导致内核进入pain模式进而时内核重启
-
5hisi3519 gs2972 bt1120 转sdi 无法正常显示问题
-
5hisi3516cv610 + gc4336p 夜晚很模糊
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认

微信扫码分享
QQ好友