2407
- 收藏
- 点赞
- 分享
- 举报
海思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)
相关问答
-
152015-05-25 10:46:27
-
2019-12-16 09:36:27
-
2019-01-16 21:26:30
-
82019-06-21 13:44:00
-
322015-01-20 11:18:59
-
2022-07-10 15:14:57
-
2019-06-27 21:41:10
-
2016-04-05 11:29:44
-
2020-03-23 11:48:49
-
2019-01-16 21:49:13
-
2016-05-27 11:10:04
-
2016-03-08 10:00:36
-
12019-04-17 16:37:10
-
92017-12-09 15:45:28
-
2020-07-31 19:53:15
-
2018-05-28 15:36:05
-
172014-10-05 18:05:46
-
2018-11-16 12:06:03
-
2018-09-26 11:48:56
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认