1.还原transcode模式内存申请
This commit is contained in:
parent
254f2a0e35
commit
ff600106c0
14
code/application/source/cardv/SrcCode/UIApp/Transcode/UIAppTranscode_Exe.c
Normal file → Executable file
14
code/application/source/cardv/SrcCode/UIApp/Transcode/UIAppTranscode_Exe.c
Normal file → Executable file
|
@ -108,7 +108,12 @@ static HD_RESULT _TranscodeExe_CommPool_Init(void)
|
||||||
mem_cfg.pool_info[id].type = HD_COMMON_MEM_COMMON_POOL;
|
mem_cfg.pool_info[id].type = HD_COMMON_MEM_COMMON_POOL;
|
||||||
mem_cfg.pool_info[id].blk_size = DBGINFO_BUFSIZE() + _TranscodeExe_Get_Max_Cap_Buf_Size();
|
mem_cfg.pool_info[id].blk_size = DBGINFO_BUFSIZE() + _TranscodeExe_Get_Max_Cap_Buf_Size();
|
||||||
#if HUNTING_CAMERA_MCU == ENABLE
|
#if HUNTING_CAMERA_MCU == ENABLE
|
||||||
mem_cfg.pool_info[id].blk_cnt = 0;
|
if(sf_get_fw_update())
|
||||||
|
{
|
||||||
|
mem_cfg.pool_info[id].blk_cnt = 0;
|
||||||
|
}else {
|
||||||
|
mem_cfg.pool_info[id].blk_cnt = 1;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
mem_cfg.pool_info[id].blk_cnt = 1;
|
mem_cfg.pool_info[id].blk_cnt = 1;
|
||||||
#endif
|
#endif
|
||||||
|
@ -120,7 +125,12 @@ static HD_RESULT _TranscodeExe_CommPool_Init(void)
|
||||||
mem_cfg.pool_info[id].type = HD_COMMON_MEM_COMMON_POOL;
|
mem_cfg.pool_info[id].type = HD_COMMON_MEM_COMMON_POOL;
|
||||||
mem_cfg.pool_info[id].blk_size = DBGINFO_BUFSIZE() + _TranscodeExe_Get_Target_Buf_Size();
|
mem_cfg.pool_info[id].blk_size = DBGINFO_BUFSIZE() + _TranscodeExe_Get_Target_Buf_Size();
|
||||||
#if HUNTING_CAMERA_MCU == ENABLE
|
#if HUNTING_CAMERA_MCU == ENABLE
|
||||||
mem_cfg.pool_info[id].blk_cnt = 0;
|
if(sf_get_fw_update())
|
||||||
|
{
|
||||||
|
mem_cfg.pool_info[id].blk_cnt = 0;
|
||||||
|
}else {
|
||||||
|
mem_cfg.pool_info[id].blk_cnt = 1;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
mem_cfg.pool_info[id].blk_cnt = 1;
|
mem_cfg.pool_info[id].blk_cnt = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user