Skip to content

Commit 9b3f5ab

Browse files
Googlerjwcullen
authored andcommitted
Add test vectors for Base-Advanced Profile
- Dual Object + Dual Object test_000815, test_000816, test_000817 PiperOrigin-RevId: 844821137
1 parent ba02284 commit 9b3f5ab

File tree

4 files changed

+636
-0
lines changed

4 files changed

+636
-0
lines changed
Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
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 with Dual Polar and Dual Cartesian 8 Objects"
16+
file_name_prefix: "test_000815"
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.4/objects_config",
26+
"3.7.2.1/rendering_config_ with polar_param_definition"
27+
"3.7.3.1/rendering_config_ with cartesian_8_param_definition"
28+
]
29+
base_test: "test_000802"
30+
partition_mix_gain_parameter_blocks: false
31+
}
32+
33+
encoder_control_metadata {
34+
add_build_information_tag: false
35+
output_rendered_file_format: OUTPUT_FORMAT_WAV_BIT_DEPTH_AUTOMATIC
36+
}
37+
38+
ia_sequence_header_metadata {
39+
primary_profile: PROFILE_VERSION_BASE_ADVANCED
40+
additional_profile: PROFILE_VERSION_BASE_ADVANCED
41+
}
42+
43+
codec_config_metadata {
44+
codec_config_id: 200
45+
codec_config {
46+
codec_id: CODEC_ID_LPCM
47+
num_samples_per_frame: 1024
48+
audio_roll_distance: 0
49+
decoder_config_lpcm {
50+
sample_format_flags: LPCM_LITTLE_ENDIAN
51+
sample_size: 16
52+
sample_rate: 48000
53+
}
54+
}
55+
}
56+
57+
audio_element_metadata {
58+
audio_element_id: 300
59+
audio_element_type: AUDIO_ELEMENT_OBJECT_BASED
60+
reserved: 0
61+
codec_config_id: 200
62+
audio_substream_ids: [0]
63+
objects_config {
64+
num_objects: 2
65+
}
66+
}
67+
68+
audio_element_metadata {
69+
audio_element_id: 301
70+
audio_element_type: AUDIO_ELEMENT_OBJECT_BASED
71+
reserved: 0
72+
codec_config_id: 200
73+
audio_substream_ids: [1]
74+
objects_config {
75+
num_objects: 2
76+
}
77+
}
78+
79+
mix_presentation_metadata {
80+
mix_presentation_id: 42
81+
annotations_language: ["en-us"]
82+
localized_presentation_annotations: ["test_mix_pres"]
83+
sub_mixes {
84+
audio_elements {
85+
audio_element_id: 300
86+
localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
87+
rendering_config {
88+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
89+
rendering_config_param_definitions {
90+
param_definition_type: PARAM_DEFINITION_TYPE_DUAL_POLAR
91+
dual_polar_param_definition {
92+
param_definition {
93+
parameter_id: 1
94+
parameter_rate: 48000
95+
param_definition_mode: 1
96+
}
97+
default_first_azimuth: 1
98+
default_first_elevation: 2
99+
default_first_distance: 3
100+
default_second_azimuth: 4
101+
default_second_elevation: 5
102+
default_second_distance: 6
103+
}
104+
}
105+
}
106+
element_mix_gain {
107+
param_definition {
108+
parameter_id: 100
109+
parameter_rate: 48000
110+
param_definition_mode: 1
111+
reserved: 0
112+
}
113+
default_mix_gain: -768 # -3 dB.
114+
}
115+
}
116+
audio_elements {
117+
audio_element_id: 301
118+
localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
119+
rendering_config {
120+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
121+
rendering_config_param_definitions {
122+
param_definition_type: PARAM_DEFINITION_TYPE_DUAL_CART_8
123+
dual_cart8_param_definition {
124+
param_definition {
125+
parameter_id: 2
126+
parameter_rate: 48000
127+
param_definition_mode: 1
128+
}
129+
default_first_x: 1
130+
default_first_y: 2
131+
default_first_z: 3
132+
default_second_x: 4
133+
default_second_y: 5
134+
default_second_z: 6
135+
}
136+
}
137+
}
138+
element_mix_gain {
139+
param_definition {
140+
parameter_id: 102
141+
parameter_rate: 48000
142+
param_definition_mode: 1
143+
reserved: 0
144+
}
145+
default_mix_gain: -768 # -3 dB.
146+
}
147+
}
148+
output_mix_gain {
149+
param_definition {
150+
parameter_id: 101
151+
parameter_rate: 48000
152+
param_definition_mode: 1
153+
reserved: 0
154+
}
155+
default_mix_gain: 0 # 0 dB.
156+
}
157+
layouts {
158+
loudness_layout {
159+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
160+
ss_layout {
161+
sound_system: SOUND_SYSTEM_A_0_2_0
162+
reserved: 0
163+
}
164+
}
165+
loudness {
166+
info_type_bit_masks: []
167+
}
168+
}
169+
layouts {
170+
loudness_layout {
171+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
172+
ss_layout {
173+
sound_system: SOUND_SYSTEM_11_2_3_0
174+
reserved: 0
175+
}
176+
}
177+
loudness {
178+
info_type_bit_masks: []
179+
}
180+
}
181+
}
182+
183+
}
184+
185+
audio_frame_metadata {
186+
samples_to_trim_at_end_includes_padding: false
187+
samples_to_trim_at_start_includes_codec_delay: false
188+
wav_filename: "dialog_clip_stereo.wav"
189+
audio_element_id: 300
190+
channel_metadatas: [
191+
{ channel_id: 0 channel_label: CHANNEL_LABEL_OBJECT_CHANNEL0 },
192+
{ channel_id: 1 channel_label: CHANNEL_LABEL_OBJECT_CHANNEL1 }
193+
]
194+
}
195+
196+
audio_frame_metadata {
197+
samples_to_trim_at_end_includes_padding: false
198+
samples_to_trim_at_start_includes_codec_delay: false
199+
wav_filename: "dialog_clip_stereo.wav"
200+
audio_element_id: 301
201+
channel_metadatas: [
202+
{ channel_id: 0 channel_label: CHANNEL_LABEL_OBJECT_CHANNEL0 },
203+
{ channel_id: 1 channel_label: CHANNEL_LABEL_OBJECT_CHANNEL1 }
204+
]
205+
}
206+
207+
temporal_delimiter_metadata {
208+
enable_temporal_delimiters: false
209+
}

0 commit comments

Comments
 (0)