Skip to content

Commit 2a985d0

Browse files
committed
Introduce [test_001000, test_001004].
PiperOrigin-RevId: 843829593
1 parent 0d623ce commit 2a985d0

File tree

6 files changed

+1642
-0
lines changed

6 files changed

+1642
-0
lines changed
Lines changed: 367 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,367 @@
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+
"An Advanced-2 Profile Stream using a 9.1.6 Expanded Layout with "
17+
"several Mono Polar Objects."
18+
file_name_prefix: "test_001000"
19+
is_valid: true
20+
is_valid_to_decode: true
21+
validate_user_loudness: false
22+
mp4_fixed_timestamp: "2025-12-05 00:00:00"
23+
test_repository_tags: [
24+
"github/aomediacodec/libiamf/main"
25+
]
26+
primary_tested_spec_sections: [
27+
"3.6.4/objects_config",
28+
"3.6.2/loudspeaker_layout == Expanded",
29+
"3.6.2/expanded_loudspeaker_layout == 9.1.6ch"
30+
]
31+
base_test: "test_000845"
32+
partition_mix_gain_parameter_blocks: false
33+
}
34+
35+
encoder_control_metadata {
36+
add_build_information_tag: false
37+
output_rendered_file_format: OUTPUT_FORMAT_WAV_BIT_DEPTH_AUTOMATIC
38+
}
39+
40+
ia_sequence_header_metadata {
41+
primary_profile: PROFILE_VERSION_ADVANCED2
42+
additional_profile: PROFILE_VERSION_ADVANCED2
43+
}
44+
45+
codec_config_metadata {
46+
codec_config_id: 200
47+
codec_config {
48+
codec_id: CODEC_ID_LPCM
49+
num_samples_per_frame: 1024
50+
audio_roll_distance: 0
51+
decoder_config_lpcm {
52+
sample_format_flags: LPCM_LITTLE_ENDIAN
53+
sample_size: 16
54+
sample_rate: 48000
55+
}
56+
}
57+
}
58+
59+
audio_element_metadata {
60+
audio_element_id: 300
61+
audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
62+
reserved: 0
63+
codec_config_id: 200
64+
audio_substream_ids: [0, 1, 2, 3, 4, 5, 6, 7, 8]
65+
scalable_channel_layout_config {
66+
reserved: 0
67+
channel_audio_layer_configs: [
68+
{
69+
loudspeaker_layout: LOUDSPEAKER_LAYOUT_EXPANDED
70+
output_gain_is_present_flag: 0
71+
recon_gain_is_present_flag: 0
72+
reserved_a: 0
73+
substream_count: 9
74+
coupled_substream_count: 7
75+
expanded_loudspeaker_layout: EXPANDED_LOUDSPEAKER_LAYOUT_9_1_6_CH
76+
}
77+
]
78+
}
79+
}
80+
81+
audio_element_metadata {
82+
audio_element_id: 301
83+
audio_element_type: AUDIO_ELEMENT_OBJECT_BASED
84+
reserved: 0
85+
codec_config_id: 200
86+
audio_substream_ids: [100]
87+
objects_config {
88+
num_objects: 1
89+
}
90+
}
91+
92+
audio_element_metadata {
93+
audio_element_id: 302
94+
audio_element_type: AUDIO_ELEMENT_OBJECT_BASED
95+
reserved: 0
96+
codec_config_id: 200
97+
audio_substream_ids: [200]
98+
objects_config {
99+
num_objects: 1
100+
}
101+
}
102+
103+
audio_element_metadata {
104+
audio_element_id: 303
105+
audio_element_type: AUDIO_ELEMENT_OBJECT_BASED
106+
reserved: 0
107+
codec_config_id: 200
108+
audio_substream_ids: [300]
109+
objects_config {
110+
num_objects: 1
111+
}
112+
}
113+
114+
audio_element_metadata {
115+
audio_element_id: 304
116+
audio_element_type: AUDIO_ELEMENT_OBJECT_BASED
117+
reserved: 0
118+
codec_config_id: 200
119+
audio_substream_ids: [400]
120+
objects_config {
121+
num_objects: 1
122+
}
123+
}
124+
125+
mix_presentation_metadata {
126+
mix_presentation_id: 42
127+
annotations_language: ["en-us"]
128+
localized_presentation_annotations: ["test_mix_pres"]
129+
sub_mixes {
130+
audio_elements {
131+
audio_element_id: 300
132+
localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
133+
rendering_config {
134+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL
135+
}
136+
element_mix_gain {
137+
param_definition {
138+
parameter_id: 100
139+
parameter_rate: 48000
140+
param_definition_mode: 1
141+
reserved: 0
142+
}
143+
default_mix_gain: -768 # -3 dB.
144+
}
145+
}
146+
audio_elements {
147+
audio_element_id: 301
148+
localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
149+
rendering_config {
150+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL
151+
rendering_config_param_definitions {
152+
param_definition_type: PARAM_DEFINITION_TYPE_POLAR
153+
polar_param_definition {
154+
param_definition {
155+
parameter_id: 1
156+
parameter_rate: 48000
157+
param_definition_mode: 1
158+
}
159+
default_azimuth: 1
160+
default_elevation: 2
161+
default_distance: 127
162+
}
163+
}
164+
}
165+
element_mix_gain {
166+
param_definition {
167+
parameter_id: 100
168+
parameter_rate: 48000
169+
param_definition_mode: 1
170+
reserved: 0
171+
}
172+
default_mix_gain: -768 # -3 dB.
173+
}
174+
}
175+
audio_elements {
176+
audio_element_id: 302
177+
localized_element_annotations: ["test_sub_mix_0_audio_element_2"]
178+
rendering_config {
179+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL
180+
rendering_config_param_definitions {
181+
param_definition_type: PARAM_DEFINITION_TYPE_POLAR
182+
polar_param_definition {
183+
param_definition {
184+
parameter_id: 1
185+
parameter_rate: 48000
186+
param_definition_mode: 1
187+
}
188+
default_azimuth: 180
189+
default_elevation: 3
190+
default_distance: 126
191+
}
192+
}
193+
}
194+
element_mix_gain {
195+
param_definition {
196+
parameter_id: 100
197+
parameter_rate: 48000
198+
param_definition_mode: 1
199+
reserved: 0
200+
}
201+
default_mix_gain: -768 # -3 dB.
202+
}
203+
}
204+
audio_elements {
205+
audio_element_id: 303
206+
localized_element_annotations: ["test_sub_mix_0_audio_element_3"]
207+
rendering_config {
208+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL
209+
rendering_config_param_definitions {
210+
param_definition_type: PARAM_DEFINITION_TYPE_POLAR
211+
polar_param_definition {
212+
param_definition {
213+
parameter_id: 1
214+
parameter_rate: 48000
215+
param_definition_mode: 1
216+
}
217+
default_azimuth: 90
218+
default_elevation: 8
219+
default_distance: 64
220+
}
221+
}
222+
}
223+
element_mix_gain {
224+
param_definition {
225+
parameter_id: 100
226+
parameter_rate: 48000
227+
param_definition_mode: 1
228+
reserved: 0
229+
}
230+
default_mix_gain: -768 # -3 dB.
231+
}
232+
}
233+
audio_elements {
234+
audio_element_id: 304
235+
localized_element_annotations: ["test_sub_mix_0_audio_element_4"]
236+
rendering_config {
237+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL
238+
rendering_config_param_definitions {
239+
param_definition_type: PARAM_DEFINITION_TYPE_POLAR
240+
polar_param_definition {
241+
param_definition {
242+
parameter_id: 1
243+
parameter_rate: 48000
244+
param_definition_mode: 1
245+
}
246+
default_azimuth: 75
247+
default_elevation: 45
248+
default_distance: 127
249+
}
250+
}
251+
}
252+
element_mix_gain {
253+
param_definition {
254+
parameter_id: 100
255+
parameter_rate: 48000
256+
param_definition_mode: 1
257+
reserved: 0
258+
}
259+
default_mix_gain: -768 # -3 dB.
260+
}
261+
}
262+
output_mix_gain {
263+
param_definition {
264+
parameter_id: 101
265+
parameter_rate: 48000
266+
param_definition_mode: 1
267+
reserved: 0
268+
}
269+
default_mix_gain: 0 # 0 dB.
270+
}
271+
layouts {
272+
loudness_layout {
273+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
274+
ss_layout {
275+
sound_system: SOUND_SYSTEM_A_0_2_0
276+
reserved: 0
277+
}
278+
}
279+
loudness {
280+
info_type_bit_masks: []
281+
}
282+
}
283+
layouts {
284+
loudness_layout {
285+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
286+
ss_layout {
287+
sound_system: SOUND_SYSTEM_12_0_1_0
288+
reserved: 0
289+
}
290+
}
291+
loudness {
292+
info_type_bit_masks: []
293+
}
294+
}
295+
}
296+
297+
}
298+
299+
audio_frame_metadata {
300+
samples_to_trim_at_end_includes_padding: false
301+
samples_to_trim_at_start_includes_codec_delay: false
302+
wav_filename: "sine_1000_4oa_48khz.wav"
303+
audio_element_id: 300
304+
channel_metadatas: [
305+
{ channel_id: 0 channel_label: CHANNEL_LABEL_FL },
306+
{ channel_id: 1 channel_label: CHANNEL_LABEL_FR },
307+
{ channel_id: 2 channel_label: CHANNEL_LABEL_FC },
308+
{ channel_id: 3 channel_label: CHANNEL_LABEL_LFE },
309+
{ channel_id: 4 channel_label: CHANNEL_LABEL_BL },
310+
{ channel_id: 5 channel_label: CHANNEL_LABEL_BR },
311+
{ channel_id: 6 channel_label: CHANNEL_LABEL_FLC },
312+
{ channel_id: 7 channel_label: CHANNEL_LABEL_FRC },
313+
{ channel_id: 9 channel_label: CHANNEL_LABEL_LFE2 },
314+
{ channel_id: 10 channel_label: CHANNEL_LABEL_SI_L },
315+
{ channel_id: 11 channel_label: CHANNEL_LABEL_SI_R },
316+
{ channel_id: 12 channel_label: CHANNEL_LABEL_TP_FL },
317+
{ channel_id: 13 channel_label: CHANNEL_LABEL_TP_FR },
318+
{ channel_id: 16 channel_label: CHANNEL_LABEL_TP_BL },
319+
{ channel_id: 17 channel_label: CHANNEL_LABEL_TP_BR },
320+
{ channel_id: 18 channel_label: CHANNEL_LABEL_TP_SI_L },
321+
{ channel_id: 19 channel_label: CHANNEL_LABEL_TP_SI_R }
322+
]
323+
}
324+
325+
audio_frame_metadata {
326+
samples_to_trim_at_end_includes_padding: false
327+
samples_to_trim_at_start_includes_codec_delay: false
328+
wav_filename: "dialog_clip_stereo.wav"
329+
audio_element_id: 301
330+
channel_metadatas: [
331+
{ channel_id: 0 channel_label: CHANNEL_LABEL_OBJECT_CHANNEL0 }
332+
]
333+
}
334+
335+
audio_frame_metadata {
336+
samples_to_trim_at_end_includes_padding: false
337+
samples_to_trim_at_start_includes_codec_delay: false
338+
wav_filename: "dialog_clip_stereo.wav"
339+
audio_element_id: 302
340+
channel_metadatas: [
341+
{ channel_id: 0 channel_label: CHANNEL_LABEL_OBJECT_CHANNEL0 }
342+
]
343+
}
344+
345+
audio_frame_metadata {
346+
samples_to_trim_at_end_includes_padding: false
347+
samples_to_trim_at_start_includes_codec_delay: false
348+
wav_filename: "dialog_clip_stereo.wav"
349+
audio_element_id: 303
350+
channel_metadatas: [
351+
{ channel_id: 0 channel_label: CHANNEL_LABEL_OBJECT_CHANNEL0 }
352+
]
353+
}
354+
355+
audio_frame_metadata {
356+
samples_to_trim_at_end_includes_padding: false
357+
samples_to_trim_at_start_includes_codec_delay: false
358+
wav_filename: "dialog_clip_stereo.wav"
359+
audio_element_id: 304
360+
channel_metadatas: [
361+
{ channel_id: 0 channel_label: CHANNEL_LABEL_OBJECT_CHANNEL0 }
362+
]
363+
}
364+
365+
temporal_delimiter_metadata {
366+
enable_temporal_delimiters: false
367+
}

0 commit comments

Comments
 (0)