Skip to content

Commit 822689b

Browse files
trevorknightjwcullen
authored andcommitted
Add test files 833, 834, 835, 836, 837, 838
PiperOrigin-RevId: 843852146
1 parent b6c3bac commit 822689b

File tree

7 files changed

+1267
-0
lines changed

7 files changed

+1267
-0
lines changed
Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
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 "
17+
"Layout."
18+
file_name_prefix: "test_000833"
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 == 7.1.5.4ch"
29+
]
30+
base_test: "test_001016"
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_ADVANCED2
41+
additional_profile: PROFILE_VERSION_ADVANCED2
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_CHANNEL_BASED
83+
reserved: 0
84+
codec_config_id: 200
85+
audio_substream_ids: [10]
86+
scalable_channel_layout_config {
87+
reserved: 0
88+
channel_audio_layer_configs: [
89+
{
90+
loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
91+
output_gain_is_present_flag: 0
92+
recon_gain_is_present_flag: 0
93+
reserved_a: 0
94+
substream_count: 1
95+
coupled_substream_count: 1
96+
}
97+
]
98+
}
99+
}
100+
101+
mix_presentation_metadata {
102+
mix_presentation_id: 42
103+
annotations_language: ["en-us"]
104+
localized_presentation_annotations: ["test_mix_pres"]
105+
sub_mixes {
106+
audio_elements {
107+
audio_element_id: 300
108+
localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
109+
rendering_config {
110+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
111+
}
112+
element_mix_gain {
113+
param_definition {
114+
parameter_id: 100
115+
parameter_rate: 48000
116+
param_definition_mode: 1
117+
reserved: 0
118+
}
119+
default_mix_gain: -768 # -3 dB.
120+
}
121+
}
122+
audio_elements {
123+
audio_element_id: 301
124+
localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
125+
rendering_config {
126+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
127+
}
128+
element_mix_gain {
129+
param_definition {
130+
parameter_id: 102
131+
parameter_rate: 48000
132+
param_definition_mode: 1
133+
reserved: 0
134+
}
135+
default_mix_gain: -768 # -3 dB.
136+
}
137+
}
138+
output_mix_gain {
139+
param_definition {
140+
parameter_id: 101
141+
parameter_rate: 48000
142+
param_definition_mode: 1
143+
reserved: 0
144+
}
145+
default_mix_gain: 0 # 0 dB.
146+
}
147+
layouts {
148+
loudness_layout {
149+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
150+
ss_layout {
151+
sound_system: SOUND_SYSTEM_A_0_2_0
152+
reserved: 0
153+
}
154+
}
155+
loudness {
156+
info_type_bit_masks: []
157+
}
158+
}
159+
layouts {
160+
loudness_layout {
161+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
162+
ss_layout {
163+
sound_system: SOUND_SYSTEM_J_4_7_0
164+
reserved: 0
165+
}
166+
}
167+
loudness {
168+
info_type_bit_masks: []
169+
}
170+
}
171+
}
172+
173+
}
174+
175+
audio_frame_metadata {
176+
samples_to_trim_at_end_includes_padding: false
177+
samples_to_trim_at_start_includes_codec_delay: false
178+
wav_filename: "sine_1000_4oa_48khz.wav"
179+
audio_element_id: 300
180+
channel_metadatas: [
181+
{ channel_id: 0 channel_label: CHANNEL_LABEL_L_7 },
182+
{ channel_id: 1 channel_label: CHANNEL_LABEL_R_7 },
183+
{ channel_id: 2 channel_label: CHANNEL_LABEL_CENTRE },
184+
{ channel_id: 3 channel_label: CHANNEL_LABEL_LFE },
185+
{ channel_id: 4 channel_label: CHANNEL_LABEL_LSS_7 },
186+
{ channel_id: 5 channel_label: CHANNEL_LABEL_RSS_7 },
187+
{ channel_id: 6 channel_label: CHANNEL_LABEL_LRS_7 },
188+
{ channel_id: 7 channel_label: CHANNEL_LABEL_RRS_7 },
189+
{ channel_id: 8 channel_label: CHANNEL_LABEL_LTF_4 },
190+
{ channel_id: 9 channel_label: CHANNEL_LABEL_RTF_4 },
191+
{ channel_id: 10 channel_label: CHANNEL_LABEL_LTB_4 },
192+
{ channel_id: 11 channel_label: CHANNEL_LABEL_RTB_4 },
193+
{ channel_id: 12 channel_label: CHANNEL_LABEL_TP_C },
194+
{ channel_id: 13 channel_label: CHANNEL_LABEL_BT_FL },
195+
{ channel_id: 14 channel_label: CHANNEL_LABEL_BT_FR },
196+
{ channel_id: 15 channel_label: CHANNEL_LABEL_BT_BL },
197+
{ channel_id: 16 channel_label: CHANNEL_LABEL_BT_BR }
198+
]
199+
}
200+
201+
audio_frame_metadata {
202+
samples_to_trim_at_end_includes_padding: false
203+
samples_to_trim_at_start_includes_codec_delay: false
204+
wav_filename: "sine_1000_4oa_48khz.wav"
205+
audio_element_id: 301
206+
channel_metadatas: [
207+
{ channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
208+
{ channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
209+
]
210+
}
211+
212+
temporal_delimiter_metadata {
213+
enable_temporal_delimiters: false
214+
}

0 commit comments

Comments
 (0)