Skip to content

Commit b6c3bac

Browse files
trevorknightjwcullen
authored andcommitted
Add test cases 828, 829, 830, 831, 832
PiperOrigin-RevId: 843851650
1 parent 2a985d0 commit b6c3bac

File tree

6 files changed

+771
-0
lines changed

6 files changed

+771
-0
lines changed
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
# Copyright (c) 2025, Alliance for Open Media. All rights reserved
2+
#
3+
# This source code is subject to the terms of the BSD 3-Clause Clear License
4+
# and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear
5+
# License was not distributed with this source code in the LICENSE file, you
6+
# can obtain it at www.aomedia.org/license/software-license/bsd-3-c-c. If the
7+
# Alliance for Open Media Patent License 1.0 was not distributed with this
8+
# source code in the PATENTS file, you can obtain it at
9+
# www.aomedia.org/license/patent.
10+
11+
# proto-file: iamf/cli/proto/user_metadata.proto
12+
# proto-message: UserMetadata
13+
14+
test_vector_metadata {
15+
human_readable_description: "A Base-Advanced Profile Stream using an LFE-Pair Expanded Layout."
16+
file_name_prefix: "test_000828"
17+
is_valid: true
18+
is_valid_to_decode: true
19+
validate_user_loudness: false
20+
mp4_fixed_timestamp: "2025-12-09 00:00:00"
21+
test_repository_tags: [
22+
"github/aomediacodec/libiamf/main"
23+
]
24+
primary_tested_spec_sections: [
25+
"3.6.2/loudspeaker_layout == Expanded",
26+
"3.6.2/expanded_loudspeaker_layout == LFE-Pair"
27+
]
28+
base_test: "test_000827"
29+
partition_mix_gain_parameter_blocks: false
30+
}
31+
32+
encoder_control_metadata {
33+
add_build_information_tag: false
34+
output_rendered_file_format: OUTPUT_FORMAT_WAV_BIT_DEPTH_AUTOMATIC
35+
}
36+
37+
ia_sequence_header_metadata {
38+
primary_profile: PROFILE_VERSION_BASE_ADVANCED
39+
additional_profile: PROFILE_VERSION_BASE_ADVANCED
40+
}
41+
42+
codec_config_metadata {
43+
codec_config_id: 200
44+
codec_config {
45+
codec_id: CODEC_ID_LPCM
46+
num_samples_per_frame: 1024
47+
audio_roll_distance: 0
48+
decoder_config_lpcm {
49+
sample_format_flags: LPCM_LITTLE_ENDIAN
50+
sample_size: 16
51+
sample_rate: 48000
52+
}
53+
}
54+
}
55+
56+
audio_element_metadata {
57+
audio_element_id: 300
58+
audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
59+
reserved: 0
60+
codec_config_id: 200
61+
audio_substream_ids: [0, 1]
62+
scalable_channel_layout_config {
63+
reserved: 0
64+
channel_audio_layer_configs: [
65+
{
66+
loudspeaker_layout: LOUDSPEAKER_LAYOUT_EXPANDED
67+
output_gain_is_present_flag: 0
68+
recon_gain_is_present_flag: 0
69+
reserved_a: 0
70+
substream_count: 2
71+
coupled_substream_count: 0
72+
expanded_loudspeaker_layout: EXPANDED_LOUDSPEAKER_LAYOUT_LFE_PAIR
73+
}
74+
]
75+
}
76+
}
77+
78+
mix_presentation_metadata {
79+
mix_presentation_id: 42
80+
annotations_language: ["en-us"]
81+
localized_presentation_annotations: ["test_mix_pres"]
82+
sub_mixes {
83+
audio_elements {
84+
audio_element_id: 300
85+
localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
86+
rendering_config {
87+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
88+
}
89+
element_mix_gain {
90+
param_definition {
91+
parameter_id: 100
92+
parameter_rate: 48000
93+
param_definition_mode: 1
94+
reserved: 0
95+
}
96+
default_mix_gain: -768 # -3 dB.
97+
}
98+
}
99+
output_mix_gain {
100+
param_definition {
101+
parameter_id: 101
102+
parameter_rate: 48000
103+
param_definition_mode: 1
104+
reserved: 0
105+
}
106+
default_mix_gain: 0 # 0 dB.
107+
}
108+
layouts {
109+
loudness_layout {
110+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
111+
ss_layout {
112+
sound_system: SOUND_SYSTEM_A_0_2_0
113+
reserved: 0
114+
}
115+
}
116+
loudness {
117+
info_type_bit_masks: []
118+
}
119+
}
120+
layouts {
121+
loudness_layout {
122+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
123+
ss_layout {
124+
sound_system: SOUND_SYSTEM_H_9_10_3
125+
reserved: 0
126+
}
127+
}
128+
loudness {
129+
info_type_bit_masks: []
130+
}
131+
}
132+
}
133+
134+
}
135+
136+
audio_frame_metadata {
137+
samples_to_trim_at_end_includes_padding: false
138+
samples_to_trim_at_start_includes_codec_delay: false
139+
wav_filename: "sine_1000_4oa_48khz.wav"
140+
audio_element_id: 300
141+
channel_metadatas: [
142+
{ channel_id: 0 channel_label: CHANNEL_LABEL_LFE },
143+
{ channel_id: 1 channel_label: CHANNEL_LABEL_LFE2 }
144+
]
145+
}
146+
147+
temporal_delimiter_metadata {
148+
enable_temporal_delimiters: false
149+
}
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
# Copyright (c) 2025, Alliance for Open Media. All rights reserved
2+
#
3+
# This source code is subject to the terms of the BSD 3-Clause Clear License
4+
# and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear
5+
# License was not distributed with this source code in the LICENSE file, you
6+
# can obtain it at www.aomedia.org/license/software-license/bsd-3-c-c. If the
7+
# Alliance for Open Media Patent License 1.0 was not distributed with this
8+
# source code in the PATENTS file, you can obtain it at
9+
# www.aomedia.org/license/patent.
10+
11+
# proto-file: iamf/cli/proto/user_metadata.proto
12+
# proto-message: UserMetadata
13+
14+
test_vector_metadata {
15+
human_readable_description:
16+
"A Base-Advanced Profile Stream using a Bottom-3ch Expanded "
17+
"Layout."
18+
file_name_prefix: "test_000829"
19+
is_valid: true
20+
is_valid_to_decode: true
21+
validate_user_loudness: false
22+
mp4_fixed_timestamp: "2025-12-09 00:00:00"
23+
test_repository_tags: [
24+
"github/aomediacodec/libiamf/main"
25+
]
26+
primary_tested_spec_sections: [
27+
"3.6.2/loudspeaker_layout == Expanded",
28+
"3.6.2/expanded_loudspeaker_layout == Bottom-3ch"
29+
]
30+
base_test: "test_000827"
31+
partition_mix_gain_parameter_blocks: false
32+
}
33+
34+
encoder_control_metadata {
35+
add_build_information_tag: false
36+
output_rendered_file_format: OUTPUT_FORMAT_WAV_BIT_DEPTH_AUTOMATIC
37+
}
38+
39+
ia_sequence_header_metadata {
40+
primary_profile: PROFILE_VERSION_BASE_ADVANCED
41+
additional_profile: PROFILE_VERSION_BASE_ADVANCED
42+
}
43+
44+
codec_config_metadata {
45+
codec_config_id: 200
46+
codec_config {
47+
codec_id: CODEC_ID_LPCM
48+
num_samples_per_frame: 1024
49+
audio_roll_distance: 0
50+
decoder_config_lpcm {
51+
sample_format_flags: LPCM_LITTLE_ENDIAN
52+
sample_size: 16
53+
sample_rate: 48000
54+
}
55+
}
56+
}
57+
58+
audio_element_metadata {
59+
audio_element_id: 300
60+
audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
61+
reserved: 0
62+
codec_config_id: 200
63+
audio_substream_ids: [0, 1]
64+
scalable_channel_layout_config {
65+
reserved: 0
66+
channel_audio_layer_configs: [
67+
{
68+
loudspeaker_layout: LOUDSPEAKER_LAYOUT_EXPANDED
69+
output_gain_is_present_flag: 0
70+
recon_gain_is_present_flag: 0
71+
reserved_a: 0
72+
substream_count: 2
73+
coupled_substream_count: 1
74+
expanded_loudspeaker_layout: EXPANDED_LOUDSPEAKER_LAYOUT_BOTTOM_3_CH
75+
}
76+
]
77+
}
78+
}
79+
80+
mix_presentation_metadata {
81+
mix_presentation_id: 42
82+
annotations_language: ["en-us"]
83+
localized_presentation_annotations: ["test_mix_pres"]
84+
sub_mixes {
85+
audio_elements {
86+
audio_element_id: 300
87+
localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
88+
rendering_config {
89+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
90+
}
91+
element_mix_gain {
92+
param_definition {
93+
parameter_id: 100
94+
parameter_rate: 48000
95+
param_definition_mode: 1
96+
reserved: 0
97+
}
98+
default_mix_gain: -768 # -3 dB.
99+
}
100+
}
101+
output_mix_gain {
102+
param_definition {
103+
parameter_id: 101
104+
parameter_rate: 48000
105+
param_definition_mode: 1
106+
reserved: 0
107+
}
108+
default_mix_gain: 0 # 0 dB.
109+
}
110+
layouts {
111+
loudness_layout {
112+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
113+
ss_layout {
114+
sound_system: SOUND_SYSTEM_A_0_2_0
115+
reserved: 0
116+
}
117+
}
118+
loudness {
119+
info_type_bit_masks: []
120+
}
121+
}
122+
layouts {
123+
loudness_layout {
124+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
125+
ss_layout {
126+
sound_system: SOUND_SYSTEM_10_2_7_0
127+
reserved: 0
128+
}
129+
}
130+
loudness {
131+
info_type_bit_masks: []
132+
}
133+
}
134+
}
135+
136+
}
137+
138+
audio_frame_metadata {
139+
samples_to_trim_at_end_includes_padding: false
140+
samples_to_trim_at_start_includes_codec_delay: false
141+
wav_filename: "sine_1000_4oa_48khz.wav"
142+
audio_element_id: 300
143+
channel_metadatas: [
144+
{ channel_id: 0 channel_label: CHANNEL_LABEL_BT_FL },
145+
{ channel_id: 1 channel_label: CHANNEL_LABEL_BT_FC },
146+
{ channel_id: 2 channel_label: CHANNEL_LABEL_BT_FR }
147+
]
148+
}
149+
150+
temporal_delimiter_metadata {
151+
enable_temporal_delimiters: false
152+
}

0 commit comments

Comments
 (0)