Skip to content

Commit fec57a3

Browse files
Googlerjwcullen
authored andcommitted
Add tests for Base-Advanced Profile
- Mono Object + Dual Object test_000818, test_000819, test_000820, test_000821, test_000822, test_000823, test_000824. PiperOrigin-RevId: 844835320
1 parent 9b3f5ab commit fec57a3

File tree

8 files changed

+1456
-0
lines changed

8 files changed

+1456
-0
lines changed
Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
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 Mono Polar and Dual Polar Objects"
16+
file_name_prefix: "test_000818"
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.2.2/rendering_config_ with dual_polar_param_definition"
28+
]
29+
base_test: "test_000815"
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: 1
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_POLAR
91+
polar_param_definition {
92+
param_definition {
93+
parameter_id: 1
94+
parameter_rate: 48000
95+
param_definition_mode: 1
96+
}
97+
default_azimuth: 1
98+
default_elevation: 2
99+
default_distance: 3
100+
}
101+
}
102+
}
103+
element_mix_gain {
104+
param_definition {
105+
parameter_id: 100
106+
parameter_rate: 48000
107+
param_definition_mode: 1
108+
reserved: 0
109+
}
110+
default_mix_gain: -768 # -3 dB.
111+
}
112+
}
113+
audio_elements {
114+
audio_element_id: 301
115+
localized_element_annotations: ["test_sub_mix_0_audio_element_1"]
116+
rendering_config {
117+
headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
118+
rendering_config_param_definitions {
119+
param_definition_type: PARAM_DEFINITION_TYPE_DUAL_POLAR
120+
dual_polar_param_definition {
121+
param_definition {
122+
parameter_id: 2
123+
parameter_rate: 48000
124+
param_definition_mode: 1
125+
}
126+
default_first_azimuth: 1
127+
default_first_elevation: 2
128+
default_first_distance: 3
129+
default_second_azimuth: 4
130+
default_second_elevation: 5
131+
default_second_distance: 6
132+
}
133+
}
134+
}
135+
element_mix_gain {
136+
param_definition {
137+
parameter_id: 102
138+
parameter_rate: 48000
139+
param_definition_mode: 1
140+
reserved: 0
141+
}
142+
default_mix_gain: -768 # -3 dB.
143+
}
144+
}
145+
output_mix_gain {
146+
param_definition {
147+
parameter_id: 101
148+
parameter_rate: 48000
149+
param_definition_mode: 1
150+
reserved: 0
151+
}
152+
default_mix_gain: 0 # 0 dB.
153+
}
154+
layouts {
155+
loudness_layout {
156+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
157+
ss_layout {
158+
sound_system: SOUND_SYSTEM_A_0_2_0
159+
reserved: 0
160+
}
161+
}
162+
loudness {
163+
info_type_bit_masks: []
164+
}
165+
}
166+
layouts {
167+
loudness_layout {
168+
layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
169+
ss_layout {
170+
sound_system: SOUND_SYSTEM_D_4_5_0
171+
reserved: 0
172+
}
173+
}
174+
loudness {
175+
info_type_bit_masks: []
176+
}
177+
}
178+
}
179+
180+
}
181+
182+
audio_frame_metadata {
183+
samples_to_trim_at_end_includes_padding: false
184+
samples_to_trim_at_start_includes_codec_delay: false
185+
wav_filename: "dialog_clip_stereo.wav"
186+
audio_element_id: 300
187+
channel_metadatas: [
188+
{ channel_id: 0 channel_label: CHANNEL_LABEL_OBJECT_CHANNEL0 }
189+
]
190+
}
191+
192+
audio_frame_metadata {
193+
samples_to_trim_at_end_includes_padding: false
194+
samples_to_trim_at_start_includes_codec_delay: false
195+
wav_filename: "dialog_clip_stereo.wav"
196+
audio_element_id: 301
197+
channel_metadatas: [
198+
{ channel_id: 0 channel_label: CHANNEL_LABEL_OBJECT_CHANNEL0 },
199+
{ channel_id: 1 channel_label: CHANNEL_LABEL_OBJECT_CHANNEL1 }
200+
]
201+
}
202+
203+
temporal_delimiter_metadata {
204+
enable_temporal_delimiters: false
205+
}

0 commit comments

Comments
 (0)