Skip to content

Commit 15b8a88

Browse files
felicialimjwcullen
authored andcommitted
Introduce [test_000839, test_000844].
PiperOrigin-RevId: 843857433
1 parent 822689b commit 15b8a88

File tree

7 files changed

+1291
-0
lines changed

7 files changed

+1291
-0
lines changed
Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
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 7.1.5.4ch Expanded Layout and 0OA."
17+
file_name_prefix: "test_000839"
18+
is_valid: true
19+
is_valid_to_decode: true
20+
validate_user_loudness: false
21+
mp4_fixed_timestamp: "2025-12-12 00:00:00"
22+
test_repository_tags: [
23+
"github/aomediacodec/libiamf/main"
24+
]
25+
primary_tested_spec_sections: [
26+
"3.6.2/loudspeaker_layout == Expanded",
27+
"3.6.2/expanded_loudspeaker_layout == 7.1.5.4ch",
28+
"3.6.3/ambisonics_mono_config"
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, 2, 3, 4, 5, 6, 7, 8, 9]
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: 10
73+
coupled_substream_count: 7
74+
expanded_loudspeaker_layout: EXPANDED_LOUDSPEAKER_LAYOUT_7_1_5_4_CH
75+
}
76+
]
77+
}
78+
}
79+
80+
audio_element_metadata {
81+
audio_element_id: 301
82+
audio_element_type: AUDIO_ELEMENT_SCENE_BASED
83+
reserved: 0
84+
codec_config_id: 200
85+
audio_substream_ids: [100]
86+
ambisonics_config {
87+
ambisonics_mode: AMBISONICS_MODE_MONO
88+
ambisonics_mono_config {
89+
output_channel_count: 1
90+
substream_count: 1
91+
channel_mapping: [0]
92+
}
93+
}
94+
}
95+
96+
mix_presentation_metadata {
97+
mix_presentation_id: 42
98+
annotations_language: ["en-us"]
99+
localized_presentation_annotations: ["test_mix_pres"]
100+
sub_mixes {
101+
audio_elements: [
102+
{
103+
audio_element_id: 300
104+
localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
105+
rendering_config {
106+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL
107+
}
108+
element_mix_gain {
109+
param_definition {
110+
parameter_id: 100
111+
parameter_rate: 48000
112+
param_definition_mode: 1
113+
reserved: 0
114+
}
115+
default_mix_gain: -768 # -3 dB.
116+
}
117+
},
118+
{
119+
audio_element_id: 301
120+
localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
121+
rendering_config {
122+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_BINAURAL
123+
}
124+
element_mix_gain {
125+
param_definition {
126+
parameter_id: 100
127+
parameter_rate: 48000
128+
param_definition_mode: 1
129+
reserved: 0
130+
}
131+
default_mix_gain: -768 # -3 dB.
132+
}
133+
}
134+
]
135+
output_mix_gain {
136+
param_definition {
137+
parameter_id: 101
138+
parameter_rate: 48000
139+
param_definition_mode: 1
140+
reserved: 0
141+
}
142+
default_mix_gain: 0 # 0 dB.
143+
}
144+
layouts {
145+
loudness_layout {
146+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
147+
ss_layout {
148+
sound_system: SOUND_SYSTEM_A_0_2_0
149+
reserved: 0
150+
}
151+
}
152+
loudness {
153+
info_type_bit_masks: []
154+
}
155+
}
156+
layouts {
157+
loudness_layout {
158+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
159+
ss_layout {
160+
sound_system: SOUND_SYSTEM_D_4_5_0
161+
reserved: 0
162+
}
163+
}
164+
loudness {
165+
info_type_bit_masks: []
166+
}
167+
}
168+
}
169+
170+
}
171+
172+
audio_frame_metadata {
173+
samples_to_trim_at_end_includes_padding: false
174+
samples_to_trim_at_start_includes_codec_delay: false
175+
wav_filename: "sine_1000_4oa_48khz.wav"
176+
audio_element_id: 300
177+
channel_metadatas: [
178+
{ channel_id: 0 channel_label: CHANNEL_LABEL_L_7 },
179+
{ channel_id: 1 channel_label: CHANNEL_LABEL_R_7 },
180+
{ channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE },
181+
{ channel_id: 3 channel_label: CHANNEL_LABEL_LFE },
182+
{ channel_id: 4 channel_label: CHANNEL_LABEL_LSS_7 },
183+
{ channel_id: 5 channel_label: CHANNEL_LABEL_RSS_7 },
184+
{ channel_id: 6 channel_label: CHANNEL_LABEL_LRS_7 },
185+
{ channel_id: 7 channel_label: CHANNEL_LABEL_RRS_7 },
186+
{ channel_id: 8 channel_label: CHANNEL_LABEL_LTF_4 },
187+
{ channel_id: 9 channel_label: CHANNEL_LABEL_RTF_4 },
188+
{ channel_id: 10 channel_label: CHANNEL_LABEL_LTB_4 },
189+
{ channel_id: 11 channel_label: CHANNEL_LABEL_RTB_4 },
190+
{ channel_id: 12 channel_label: CHANNEL_LABEL_TP_C },
191+
{ channel_id: 13 channel_label: CHANNEL_LABEL_BT_FL },
192+
{ channel_id: 14 channel_label: CHANNEL_LABEL_BT_FR },
193+
{ channel_id: 15 channel_label: CHANNEL_LABEL_BT_BL },
194+
{ channel_id: 16 channel_label: CHANNEL_LABEL_BT_BR }
195+
]
196+
}
197+
198+
audio_frame_metadata {
199+
samples_to_trim_at_end_includes_padding: false
200+
samples_to_trim_at_start_includes_codec_delay: false
201+
wav_filename: "Transport_TOA_5s.wav"
202+
audio_element_id: 301
203+
channel_metadatas: [
204+
{ channel_id: 0 channel_label: CHANNEL_LABEL_A_0 }
205+
]
206+
}
207+
208+
temporal_delimiter_metadata {
209+
enable_temporal_delimiters: false
210+
}

0 commit comments

Comments
 (0)