This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm365是否支持2D降噪功能

hi:

    我在《sprufg8_TMS320DM36x DMSoC Video Processing Front End User's Guide.pdf》的寄存器描述中没有看到2D降噪的相关寄存器,但是在dvsdk_dm365_4_02_00_06的代码中有相关的软件配置如下:

/* 2D Noise filter */
int ipipe_set_d2f_regs(unsigned int id, struct prev_nf *noise_filter)
{
u32 utemp;
int count = 0;
u32 offset = D2F_1ST;

/* id = 0 , NF1 & id = 1, NF 2 */
if (id)
offset = D2F_2ND;
ipipe_clock_enable();
regw_ip(noise_filter->en & 1, offset + D2F_EN);
if (1 == noise_filter->en) {
/* Combine all the fields to make D2F_CFG register of IPIPE */
utemp = ((noise_filter->spread_val & D2F_SPR_VAL_MASK) <<
D2F_SPR_VAL_SHIFT) |
((noise_filter->shft_val & D2F_SHFT_VAL_MASK) <<
D2F_SHFT_VAL_SHIFT) |
(noise_filter->gr_sample_meth <<
D2F_SAMPLE_METH_SHIFT) |
((noise_filter->apply_lsc_gain & 1) <<
D2F_APPLY_LSC_GAIN_SHIFT) | D2F_USE_SPR_REG_VAL;

regw_ip(utemp, offset + D2F_TYP);
/* edge detection minimum */
regw_ip(noise_filter->edge_det_min_thr & D2F_EDGE_DET_THR_MASK,
offset + D2F_EDG_MIN);
/* edge detection maximum */
regw_ip(noise_filter->edge_det_max_thr & D2F_EDGE_DET_THR_MASK,
offset + D2F_EDG_MAX);
count = 0;
while (count < IPIPE_NF_STR_TABLE_SIZE) {
regw_ip((noise_filter->str[count] & D2F_STR_VAL_MASK),
offset + D2F_STR + count * 4);
count++;
}
count = 0;
while (count < IPIPE_NF_THR_TABLE_SIZE) {
regw_ip(noise_filter->thr[count] & D2F_THR_VAL_MASK,
offset + D2F_THR + count * 4);
count++;
}
}
return 0;
}

D2F_1ST寄存器为0xD8,在《sprufg8_TMS320DM36x DMSoC Video Processing Front End User's Guide.pdf》中没有描述,请问DM365是否支持呢?