• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024, 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
14test_vector_metadata {
15  human_readable_description:
16    "An IAMF stream which is encoding using an `obu_extension_flag` in the IA "
17    "Sequence Header OBU, and with all `leb128`s padded to be 5 bytes long."
18  file_name_prefix: "test_000134"
19  is_valid: true
20  is_valid_to_decode: true
21  validate_user_loudness: true
22  mp4_fixed_timestamp: "2024-10-14 00:00:00"
23  test_repository_tags: [
24    "github/aomediacodec/libiamf/main",
25    "github/aomediacodec/libiamf/v1.0.0-errata"
26  ]
27  primary_tested_spec_sections: [
28    "3.2/obu_extension_flag",
29    "8.1.1/leb128"
30  ]
31  base_test: "test_000002"
32  # All `leb128s` are padded to be 5 bytes long.
33  leb_generator: {
34    mode: GENERATE_LEB_FIXED_SIZE
35    fixed_size: 5
36  }
37}
38
39encoder_control_metadata {
40  add_build_information_tag: false
41}
42
43ia_sequence_header_metadata {
44  primary_profile: PROFILE_VERSION_SIMPLE
45  additional_profile: PROFILE_VERSION_SIMPLE
46  # The profiles signal backwards compatibility; the extension header should be
47  # safely ignored.
48  obu_header: {
49    obu_extension_flag: true
50    extension_header_size: 5
51    extension_header_bytes: "extra"
52  }
53}
54
55codec_config_metadata {
56  codec_config_id: 200
57  codec_config {
58    codec_id: CODEC_ID_LPCM
59    num_samples_per_frame: 64
60    audio_roll_distance: 0
61    decoder_config_lpcm {
62      sample_format_flags: LPCM_LITTLE_ENDIAN
63      sample_size: 16
64      sample_rate: 16000
65    }
66  }
67}
68
69audio_element_metadata {
70  audio_element_id: 300
71  audio_element_type: AUDIO_ELEMENT_CHANNEL_BASED
72  reserved: 0
73  codec_config_id: 200
74  num_substreams: 1
75  audio_substream_ids: [0]
76  num_parameters: 0
77  scalable_channel_layout_config {
78    num_layers: 1
79    reserved: 0
80    channel_audio_layer_configs: [
81      {
82        loudspeaker_layout: LOUDSPEAKER_LAYOUT_STEREO
83        output_gain_is_present_flag: 0
84        recon_gain_is_present_flag: 0
85        reserved_a: 0
86        substream_count: 1
87        coupled_substream_count: 1
88      }
89    ]
90  }
91}
92
93mix_presentation_metadata {
94  mix_presentation_id: 42
95  count_label: 1
96  annotations_language: ["en-us"]
97  localized_presentation_annotations: ["test_mix_pres"]
98  num_sub_mixes: 1
99  sub_mixes {
100    num_audio_elements: 1
101    audio_elements {
102      audio_element_id: 300
103      localized_element_annotations: ["test_sub_mix_0_audio_element_0"]
104      rendering_config {
105        headphones_rendering_mode: HEADPHONES_RENDERING_MODE_STEREO
106      }
107      element_mix_gain {
108        param_definition {
109          parameter_id: 100
110          parameter_rate: 16000
111          param_definition_mode: 1
112          reserved: 0
113        }
114        default_mix_gain: 0
115      }
116    }
117    output_mix_gain {
118      param_definition {
119        parameter_id: 100
120        parameter_rate: 16000
121        param_definition_mode: 1
122        reserved: 0
123      }
124      default_mix_gain: 0
125    }
126    num_layouts: 1
127    layouts {
128      loudness_layout {
129        layout_type: LAYOUT_TYPE_LOUDSPEAKERS_SS_CONVENTION
130        ss_layout {
131          sound_system: SOUND_SYSTEM_A_0_2_0
132          reserved: 0
133        }
134      }
135      loudness {
136        info_type_bit_masks: []
137        integrated_loudness: -13733
138        digital_peak: -12879
139      }
140    }
141  }
142}
143
144audio_frame_metadata {
145  wav_filename: "sawtooth_100_stereo.wav"
146  samples_to_trim_at_end: 0
147  samples_to_trim_at_start: 0
148  audio_element_id: 300
149  channel_metadatas: [
150    { channel_id: 0 channel_label: CHANNEL_LABEL_L_2 },
151    { channel_id: 1 channel_label: CHANNEL_LABEL_R_2 }
152  ]
153}
154
155parameter_block_metadata {
156  parameter_id: 100
157  start_timestamp: 0
158  duration: 8000
159  num_subblocks: 1
160  constant_subblock_duration: 8000
161  subblocks: [
162    {
163      mix_gain_parameter_data {
164        animation_type: ANIMATE_STEP
165        param_data {
166          step {
167            start_point_value: 0
168          }
169        }
170      }
171    }
172  ]
173}
174
175temporal_delimiter_metadata {
176  enable_temporal_delimiters: false
177}
178