提交 02dbed6e 编写于 作者: R Rostislav Pehlivanov 提交者: Michael Niedermayer

aacpsy: Add energy spread for each band

This commit adds the energy spread to the struct for each band and removes 2 unused fields.
distortion and perceptual_weight were not referenced in any file nor were they set to any value,
so it was safe to remove them. The energy spread is currently only used in the aac psy model.
It's defined as being proportional to the tonality of each band.
Reviewed-by: NClaudio Freire <klaussfreire@gmail.com>
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 a57ee6cc
......@@ -787,6 +787,7 @@ static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel,
psy_band->threshold = band->thr;
psy_band->energy = band->energy;
psy_band->spread = spread_en[w+g];
}
}
......
......@@ -38,8 +38,7 @@ typedef struct FFPsyBand {
int bits;
float energy;
float threshold;
float distortion;
float perceptual_weight;
float spread; /* Energy spread over the band */
} FFPsyBand;
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册