2444
- 收藏
- 点赞
- 分享
- 举报
海思OSD问题
在Linux端报错:
[HI_MAPI_VEnc_OSD_GetAttr][1804]HI_MAPI_VEnc_OSD_GetAttr fail s32Ret:a3038009
[HI_MAPI_VEnc_OSD_SetAttr][1762]HI_MAPI_VEnc_OSD_SetAttr fail s32Ret:a3038003
[HI_MAPI_VEnc_OSD_Start][1844]HI_MAPI_VEnc_OSD_Start fail s32Ret:a3038009
Press Enter key to stop record...
[#### s32VeChn:0 the first time of VideoFrame(MAPI_VEnc_GetVStream): u64PTS: [4212136060]
[#### s32VeChn:1 the first time of VideoFrame(MAPI_VEnc_GetVStream): u64PTS: [4212136060]
在HUAWEI LiteOS端:
[Func:HI_MAPI_VEnc_OSD_GetAttr][Line:3388][Info]:osd not been set yet
[Func:HI_MAPI_VEnc_OSD_SetAttr][Line:3276][Info]:stBitmapAttr.enPixelFormat:0 can not less than min val 2
[Func:HI_MAPI_VEnc_OSD_Start][Line:3423][Info]:osd not been set yet
[Func:HI_MAPI_VEnc_OSD_Stop][Line:3558][Info]:osd already been stoped
以下是我的代码:
pstOsdAttr->stBitmapAttr.enPixelFormat = HI_MPP_PIXEL_FORMAT_RGB_1555;
pstOsdAttr->stBitmapAttr.pData = (void *)gImage_SHUZU;
pstOsdAttr->stBitmapAttr.u32Width = 50;
pstOsdAttr->stBitmapAttr.u32Height = 50;
pstOsdAttr->stOsdDisplayAttr.bShow = HI_TRUE;
pstOsdAttr->stOsdDisplayAttr.s32RegionX = 100;
pstOsdAttr->stOsdDisplayAttr.s32RegionY = 100;
pstOsdAttr->stOsdDisplayAttr.u32Alpha = 128;
pstOsdAttr->stOsdDisplayAttr.u32Color = 0X0;
HI_MAPI_VEnc_OSD_GetAttr(hVencHdl1, hVOsdHdl1, pstOsdAttr);
HI_MAPI_VEnc_OSD_SetAttr(hVencHdl1, hVOsdHdl1, pstOsdAttr);
HI_MAPI_VEnc_OSD_Start(hVencHdl1,hVOsdHdl1);
请问是我设置的参数问题还是调用流程的问题?
[HI_MAPI_VEnc_OSD_GetAttr][1804]HI_MAPI_VEnc_OSD_GetAttr fail s32Ret:a3038009
[HI_MAPI_VEnc_OSD_SetAttr][1762]HI_MAPI_VEnc_OSD_SetAttr fail s32Ret:a3038003
[HI_MAPI_VEnc_OSD_Start][1844]HI_MAPI_VEnc_OSD_Start fail s32Ret:a3038009
Press Enter key to stop record...
[#### s32VeChn:0 the first time of VideoFrame(MAPI_VEnc_GetVStream): u64PTS: [4212136060]
[#### s32VeChn:1 the first time of VideoFrame(MAPI_VEnc_GetVStream): u64PTS: [4212136060]
在HUAWEI LiteOS端:
[Func:HI_MAPI_VEnc_OSD_GetAttr][Line:3388][Info]:osd not been set yet
[Func:HI_MAPI_VEnc_OSD_SetAttr][Line:3276][Info]:stBitmapAttr.enPixelFormat:0 can not less than min val 2
[Func:HI_MAPI_VEnc_OSD_Start][Line:3423][Info]:osd not been set yet
[Func:HI_MAPI_VEnc_OSD_Stop][Line:3558][Info]:osd already been stoped
以下是我的代码:
pstOsdAttr->stBitmapAttr.enPixelFormat = HI_MPP_PIXEL_FORMAT_RGB_1555;
pstOsdAttr->stBitmapAttr.pData = (void *)gImage_SHUZU;
pstOsdAttr->stBitmapAttr.u32Width = 50;
pstOsdAttr->stBitmapAttr.u32Height = 50;
pstOsdAttr->stOsdDisplayAttr.bShow = HI_TRUE;
pstOsdAttr->stOsdDisplayAttr.s32RegionX = 100;
pstOsdAttr->stOsdDisplayAttr.s32RegionY = 100;
pstOsdAttr->stOsdDisplayAttr.u32Alpha = 128;
pstOsdAttr->stOsdDisplayAttr.u32Color = 0X0;
HI_MAPI_VEnc_OSD_GetAttr(hVencHdl1, hVOsdHdl1, pstOsdAttr);
HI_MAPI_VEnc_OSD_SetAttr(hVencHdl1, hVOsdHdl1, pstOsdAttr);
HI_MAPI_VEnc_OSD_Start(hVencHdl1,hVOsdHdl1);
请问是我设置的参数问题还是调用流程的问题?
我来回答
回答4个
时间排序
认可量排序
认可0
认可0
认可0
认可1
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2019-12-16 09:36:27
-
152015-05-25 10:46:27
-
2019-01-16 21:26:30
-
82019-06-21 13:44:00
-
322015-01-20 11:18:59
-
2019-06-27 21:41:10
-
2022-07-10 15:14:57
-
2016-04-05 11:29:44
-
2020-03-23 11:48:49
-
2016-05-27 11:10:04
-
2019-01-16 21:49:13
-
2016-03-08 10:00:36
-
92017-12-09 15:45:28
-
12019-04-17 16:37:10
-
2018-05-28 15:36:05
-
2020-07-31 19:53:15
-
172014-10-05 18:05:46
-
2018-11-16 12:06:03
-
2018-09-26 11:48:56
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5SS928的emmc有32GB,bootargs设置使用16GB,但是为啥能用的只有rootfs的大小
-
33SS928怎样烧写ubuntu系统
-
10ToolPlatform下载rootfs提示网络失败
-
10谁有GK7205V500的SDK
-
5Hi3516CV610 烧录不进去
-
10Hi3559AV100 芯片硬解码h265编码格式的视频时出现视频播放错误,解码错误信息 s32PackErr:码流有错
-
5海思SS928 / SD3403的sample_venc.c摄像头编码Demo中,采集到的摄像头的YUV数据在哪个相关的函数中?
-
5海鸥派openEuler无法启动网卡,连接WIFI存在问题
-
66有没有ISP相关的巨佬帮忙看看SS928对接IMX347的图像问题
-
50求助hi3559与FPGA通过SLVS-EC接口对接问题
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认