Green

Green

2个粉丝

10

问答

0

专栏

0

资料

Green  发布于  2023-09-19 14:42:44
采纳率 0%
10个问答
547

A182-Hi3516DV300开发板简单的VI-VENC实现不了。

int STREAM_SYS_Init(void)
{
HI_S32 s32Ret = HI_FAILURE;
VB_CONFIG_S stVbConf;

stVbConf.astCommPool[0].u64BlkSize = COMMON_GetPicBufferSize(1920, 1080, 
                                                            PIXEL_FORMAT_YVU_SEMIPLANAR_420,                                                             
                                                            DATA_BITWIDTH_8, 
                                                            COMPRESS_MODE_SEG, 
                                                            DEFAULT_ALIGN);
stVbConf.astCommPool[0].u32BlkCnt = 10;

stVbConf.astCommPool[1].u64BlkSize = COMMON_GetPicBufferSize(720, 576, 
                                                            PIXEL_FORMAT_YVU_SEMIPLANAR_420, 
                                                            DATA_BITWIDTH_8, 
                                                            COMPRESS_MODE_SEG,
                                                            DEFAULT_ALIGN);
stVbConf.astCommPool[1].u32BlkCnt = 10;

stVbConf.u32MaxPoolCnt = 2;//整个系统中可容纳缓冲池的数量

s32Ret = HI_MPI_SYS_Exit();
if(HI_SUCCESS!= s32Ret)
{
    SAMPLE_PRT("HI_MPI_SYS_Exit failed with %d!\n",s32Ret);
    return s32Ret;
}

s32Ret = HI_MPI_VB_Exit();
if (HI_SUCCESS != s32Ret)
{
    SAMPLE_PRT("HI_MPI_VB_Exit failed with %d!\n",s32Ret);
    return s32Ret;
}

s32Ret = HI_MPI_VB_SetConfig(&stVbConf);
if (HI_SUCCESS != s32Ret)
{
    SAMPLE_PRT("[MPP-SYS-ERROR]HI_MPI_VB_SetConf failed with %#x.\n", s32Ret);
    return HI_FAILURE;
}

s32Ret = HI_MPI_VB_Init();
if (HI_SUCCESS != s32Ret)
{
    SAMPLE_PRT("[MPP-SYS-ERROR]HI_MPI_VB_Init failed!\n");
    return HI_FAILURE;
}

s32Ret = HI_MPI_SYS_Init();
if (HI_SUCCESS != s32Ret)
{
    SAMPLE_PRT("[MPP-SYS-ERROR]HI_MPI_SYS_Init failed!\n");
    HI_MPI_VB_Exit();
    return HI_FAILURE;
}
printf("STREAM_SYS_Init OK \n");

return HI_SUCCESS;

}
为什么会在HI_MPI_SYS_Exit和HI_MPI_VB_Exit的时候出错。如果不用这两个API,会在HI_MPI_VB_SetConfig是出现以下错误:

易百纳技术社区文件: 11.png
下载
我来回答
回答4个
时间排序
认可量排序

hale

9个粉丝

0

问答

1

专栏

0

资料

hale 2023-09-19 14:59:42 已获得 0.50 现金
认可0

你这个没有加载ko吧,load3516dv300的那个脚本

Green
Green   回复   hale  2023-09-19 15:54:58
0

感谢,果然是没有加载驱动,但是又出现了以下问题:ISP_Sensor_Regiter_callback OK
ISP_BindSns OK
HI_MPI_ISP_MemInit OK
HI_MPI_hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
ISP_SetPubAttr OK
GC2053_SENSOR_1080P_30FPS_LINEAR_MODE
[Func]:ghibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
c2053_write_register [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
write_register [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_wrihibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
te_register [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_writehibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
_register [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_rhibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
egister [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_regihibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
ster [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_registhibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
er [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_registerhibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_register [hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_register [Lihibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
ne]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_register [Linehibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_register [Line]:hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_register [Line]:14hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
0 [Info]:I2C_WRITE error!
[Func]:gc2053_write_register [Line]:140 hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Info]:I2C_WRITE error!
[Func]:gc2053_write_register [Line]:140 [Ihibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
nfo]:I2C_WRITE error!
[Func]:gc2053_write_register [Line]:140 [Infhibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
o]:I2C_WRITE error!
[Func]:gc2053_write_register [Line]:140 [Info]hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
:I2C_WRITE error!
[Func]:gc2053_write_register [Line]:140 [Info]:Ihibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
2C_WRITE error!
[Func]:gc2053_write_register [Line]:140 [Info]:I2Chibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
_WRITE error!
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_Whibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
RITE error!
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRIhibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
TE error!
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITEhibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
error!
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE errhibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
or!
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
=== Galaxycore GC2053_1080P_30FPS_10BIT_LINE_Init_OK!===
[Func]:gchibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
2053_write_register [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc20hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
53_write_register [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053hibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
_write_register [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_whibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
rite_register [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_wrihibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
te_register [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_writehibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
_register [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_rhibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
egister [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_reghibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
ister [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_regishibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
ter [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_registehibvt-i2c 120b0000.i2c: wait idle abort!, RIS: 0x611
r [Line]:140 [Info]:I2C_WRITE error!
[Func]:gc2053_write_register [Line]:140 [Info]:I2C_WRITE error!
GC2053 init succuss!
HI_MPI_ISP_Init OK

codinglab

4个粉丝

1

问答

12

专栏

0

资料

codinglab 2023-09-19 15:12:02
认可0

EXIT出错时因为需要先调用HI_MPI_SYS_Init去初始化MPP,再调用HI_MPI_VB_Exit去初始化VB缓存
HI_MPI_VB_SetConfig报错时可能时因为没有正确EXIT导致的,可以参考下mpp手册

Green
Green   回复   codinglab  2023-09-19 15:38:08
0

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区