test: add test for 6p1 to 5p1 with remapped REAR

See #2809
This commit is contained in:
Wim Taymans 2022-11-09 09:41:21 +01:00
parent 39bfc0cb56
commit bb002a3eef

View file

@ -791,6 +791,26 @@ struct data dsp_5p1_remapped = {
.size = sizeof(float) * 4
};
struct data dsp_5p1_remapped_from_6p1 = {
.mode = SPA_PARAM_PORT_CONFIG_MODE_dsp,
.info = SPA_AUDIO_INFO_RAW_INIT(
.format = SPA_AUDIO_FORMAT_F32,
.rate = 48000,
.channels = 6,
.position = {
SPA_AUDIO_CHANNEL_FL,
SPA_AUDIO_CHANNEL_FR,
SPA_AUDIO_CHANNEL_RL,
SPA_AUDIO_CHANNEL_RR,
SPA_AUDIO_CHANNEL_FC,
SPA_AUDIO_CHANNEL_LFE,
}),
.ports = 6,
.planes = 1,
.data = { data_f32p_1, data_f32p_2, data_f32p_5_6p1, data_f32p_6_6p1, data_f32p_3, data_f32p_4, },
.size = sizeof(float) * 4
};
struct data dsp_6p1 = {
.mode = SPA_PARAM_PORT_CONFIG_MODE_dsp,
.info = SPA_AUDIO_INFO_RAW_INIT(
@ -1104,6 +1124,7 @@ static int test_convert_remap_conv(struct context *ctx)
run_convert(ctx, &conv_f32_48000_6p1, &dsp_5p1_from_6p1);
run_convert(ctx, &conv_f32_48000_6p1_side, &dsp_5p1_from_6p1);
run_convert(ctx, &conv_f32_48000_6p1, &dsp_5p1_remapped_from_6p1);
return 0;
}