4963
- 收藏
- 点赞
- 分享
- 举报
请问音频编码时所用的内存会跟视频分配的内存冲突吗?
1.sample_audio.c中最开始的初始化为:
memset(&stVbConf, 0, sizeof(VB_CONF_S));
s32Ret = SAMPLE_COMM_SYS_Init(&stVbConf);
2.sample_venc.c中最开始的初始化为:
memset(&stVbConf,0,sizeof(VB_CONF_S));
u32BlkSize = SAMPLE_COMM_SYS_CalcPicVbBlkSize(gs_enNorm,\
PIC_HD1080, SAMPLE_PIXEL_FORMAT, SAMPLE_SYS_ALIGN_WIDTH);
stVbConf.u32MaxPoolCnt = 128;
/*ddr0 video buffer*/
stVbConf.astCommPool[0].u32BlkSize = u32BlkSize;
stVbConf.astCommPool[0].u32BlkCnt = u32ViChnCnt * 24;//u32ViChnCnt * 16;
memset(stVbConf.astCommPool[0].acMmzName,0,
sizeof(stVbConf.astCommPool[0].acMmzName));
/*ddr0 hist buf*/
stVbConf.astCommPool[1].u32BlkSize = (384*4);//(196*4);
stVbConf.astCommPool[1].u32BlkCnt = u32ViChnCnt * 24;//u32ViChnCnt * 16;
memset(stVbConf.astCommPool[1].acMmzName,0,
sizeof(stVbConf.astCommPool[1].acMmzName));
/*ddr1 video buffer*/
stVbConf.astCommPool[2].u32BlkSize = u32BlkSize;
stVbConf.astCommPool[2].u32BlkCnt = u32ViChnCnt * 24;//u32ViChnCnt * 16;
strcpy(stVbConf.astCommPool[2].acMmzName,"ddr1");
/*ddr1 hist buf*/
stVbConf.astCommPool[3].u32BlkSize = (384*4);//(196*4);
stVbConf.astCommPool[3].u32BlkCnt = u32ViChnCnt * 24;//u32ViChnCnt * 16;
strcpy(stVbConf.astCommPool[3].acMmzName,"ddr1");
s32Ret = SAMPLE_COMM_SYS_Init(&stVbConf);
3.假设同时使用音视频编码,此时他们分配的内存会冲突吗?
memset(&stVbConf, 0, sizeof(VB_CONF_S));
s32Ret = SAMPLE_COMM_SYS_Init(&stVbConf);
2.sample_venc.c中最开始的初始化为:
memset(&stVbConf,0,sizeof(VB_CONF_S));
u32BlkSize = SAMPLE_COMM_SYS_CalcPicVbBlkSize(gs_enNorm,\
PIC_HD1080, SAMPLE_PIXEL_FORMAT, SAMPLE_SYS_ALIGN_WIDTH);
stVbConf.u32MaxPoolCnt = 128;
/*ddr0 video buffer*/
stVbConf.astCommPool[0].u32BlkSize = u32BlkSize;
stVbConf.astCommPool[0].u32BlkCnt = u32ViChnCnt * 24;//u32ViChnCnt * 16;
memset(stVbConf.astCommPool[0].acMmzName,0,
sizeof(stVbConf.astCommPool[0].acMmzName));
/*ddr0 hist buf*/
stVbConf.astCommPool[1].u32BlkSize = (384*4);//(196*4);
stVbConf.astCommPool[1].u32BlkCnt = u32ViChnCnt * 24;//u32ViChnCnt * 16;
memset(stVbConf.astCommPool[1].acMmzName,0,
sizeof(stVbConf.astCommPool[1].acMmzName));
/*ddr1 video buffer*/
stVbConf.astCommPool[2].u32BlkSize = u32BlkSize;
stVbConf.astCommPool[2].u32BlkCnt = u32ViChnCnt * 24;//u32ViChnCnt * 16;
strcpy(stVbConf.astCommPool[2].acMmzName,"ddr1");
/*ddr1 hist buf*/
stVbConf.astCommPool[3].u32BlkSize = (384*4);//(196*4);
stVbConf.astCommPool[3].u32BlkCnt = u32ViChnCnt * 24;//u32ViChnCnt * 16;
strcpy(stVbConf.astCommPool[3].acMmzName,"ddr1");
s32Ret = SAMPLE_COMM_SYS_Init(&stVbConf);
3.假设同时使用音视频编码,此时他们分配的内存会冲突吗?
我来回答
回答19个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
102017-04-11 15:03:50
-
2015-10-10 14:40:45
-
2016-05-20 11:52:15
-
2019-07-22 10:45:02
-
2024-10-08 17:36:44
-
2023-07-01 16:30:02
-
2019-12-03 15:04:50
-
2020-11-30 20:41:48
-
2017-05-24 11:09:44
-
2025-12-29 17:18:27
-
2016-11-10 17:28:57
-
2019-05-16 08:45:59
-
2024-03-26 14:40:44
-
2015-09-17 17:22:21
-
2016-11-25 11:36:19
-
2019-12-02 17:37:21
-
2023-10-06 23:15:31
-
2018-07-12 16:25:08
-
2020-05-13 15:53:17
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
10svp nnn目标检测不全
-
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 无法正常显示问题
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认

微信扫码分享
QQ好友
