Upgrade iamf_tools to e42e82092f6a46df4c1eebc0e67fa1fdd6788696

This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update external/iamf_tools
For more info, check https://cs.android.com/android/platform/superproject/main/+/main:tools/external_updater/README.md

Bug: 388336285
Test: TreeHugger
Change-Id: I26bb4762aa7508ea05e87aafb92d7a4e761a6ae0
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..ff3747f
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,100 @@
+package {
+    default_applicable_licenses: ["external_iamf_tools_license"],
+}
+
+license {
+    name: "external_iamf_tools_license",
+    visibility: [":__subpackages__"],
+    license_kinds: [
+        "SPDX-license-identifier-BSD",
+        "legacy_by_exception_only",
+    ],
+    license_text: [
+        "LICENSE",
+        "PATENTS",
+    ],
+}
+
+cc_library {
+    name: "iamf_tools",
+    export_include_dirs: [
+        "iamf/api",
+        "iamf/api/decoder",
+    ],
+    cflags: [
+        "-DIAMF_TOOLS_DISABLE_AAC_DECODER",
+        "-DIAMF_TOOLS_DISABLE_FLAC_DECODER",
+    ],
+    shared_libs: [
+        "liblog",
+        "libopus",
+    ],
+    static_libs: [
+        "libabsl",
+    ],
+    local_include_dirs: [
+        ".",
+    ],
+    include_dirs: [
+        "external/abseil-cpp",
+        "external/libopus",
+    ],
+    srcs: [
+        "iamf/api/conversion/mix_presentation_conversion.cc",
+        "iamf/api/decoder/iamf_decoder.cc",
+        "iamf/cli/audio_frame_decoder.cc",
+        "iamf/cli/channel_label.cc",
+        "iamf/cli/cli_util.cc",
+        "iamf/cli/codec/lpcm_decoder.cc",
+        "iamf/cli/codec/opus_decoder.cc",
+        "iamf/cli/codec/opus_utils.cc",
+        "iamf/cli/demixing_module.cc",
+        "iamf/cli/global_timing_module.cc",
+        "iamf/cli/loudness_calculator_base.cc",
+        "iamf/cli/loudness_calculator_factory_base.cc",
+        "iamf/cli/obu_processor.cc",
+        "iamf/cli/obu_with_data_generator.cc",
+        "iamf/cli/parameters_manager.cc",
+        "iamf/cli/profile_filter.cc",
+        "iamf/cli/renderer_factory.cc",
+        "iamf/cli/renderer/audio_element_renderer_ambisonics_to_channel.cc",
+        "iamf/cli/renderer/audio_element_renderer_base.cc",
+        "iamf/cli/renderer/audio_element_renderer_channel_to_channel.cc",
+        "iamf/cli/renderer/audio_element_renderer_passthrough.cc",
+        "iamf/cli/renderer/loudspeakers_renderer.cc",
+        "iamf/cli/renderer/precomputed_gains.cc",
+        "iamf/cli/renderer/renderer_utils.cc",
+        "iamf/cli/rendering_mix_presentation_finalizer.cc",
+        "iamf/cli/sample_processor_base.cc",
+        "iamf/common/leb_generator.cc",
+        "iamf/common/read_bit_buffer.cc",
+        "iamf/common/utils/bit_buffer_util.cc",
+        "iamf/common/utils/numeric_utils.cc",
+        "iamf/common/utils/sample_processing_utils.cc",
+        "iamf/common/write_bit_buffer.cc",
+        "iamf/obu/audio_element.cc",
+        "iamf/obu/audio_frame.cc",
+        "iamf/obu/codec_config.cc",
+        "iamf/obu/decoder_config/aac_decoder_config.cc",
+        "iamf/obu/decoder_config/flac_decoder_config.cc",
+        "iamf/obu/decoder_config/lpcm_decoder_config.cc",
+        "iamf/obu/decoder_config/opus_decoder_config.cc",
+        "iamf/obu/demixing_info_parameter_data.cc",
+        "iamf/obu/demixing_param_definition.cc",
+        "iamf/obu/extension_parameter_data.cc",
+        "iamf/obu/ia_sequence_header.cc",
+        "iamf/obu/mix_gain_parameter_data.cc",
+        "iamf/obu/mix_presentation.cc",
+        "iamf/obu/obu_base.cc",
+        "iamf/obu/obu_header.cc",
+        "iamf/obu/param_definitions.cc",
+        "iamf/obu/parameter_block.cc",
+        "iamf/obu/recon_gain_info_parameter_data.cc",
+    ],
+    apex_available: [
+        "com.android.media.swcodec",
+    ],
+    visibility: [
+        "//frameworks/av/media/codec2/components/iamf",
+    ],
+}
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..6d8d34d
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,26 @@
+# THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
+# CONSULT THE OWNERS AND [email protected] BEFORE
+# DEPENDING ON IT IN YOUR PROJECT.
+
+# This project was upgraded with external_updater.
+# Usage: tools/external_updater/updater.sh update external/iamf_tools
+# For more info, check https://cs.android.com/android/platform/superproject/main/+/main:tools/external_updater/README.md
+
+name: "iamf_tools"
+description: "The Immersive Audio Model and Formats (IAMF) tools repository. This directory contains software tools for the AOM Immersive Audio Model and Formats (IAMF)."
+third_party {
+  license_type: BY_EXCEPTION_ONLY
+  license_note: "Alliance for Open Media Patent License and BSD 3-Clause Clear License as described in iamf_tools/LICENSE and iamf_tools/PATENTS and in the headers for all code files in iamf_tools/iamf/, such as iamf_tools/iamf/common/read_bit_buffer.h."
+  last_upgrade_date {
+    year: 2025
+    month: 3
+    day: 24
+  }
+  homepage: "https://aomediacodec.github.io/iamf/"
+  identifier {
+    type: "Git"
+    value: "https://github.com/AOMediaCodec/iamf-tools"
+    version: "e42e82092f6a46df4c1eebc0e67fa1fdd6788696"
+    primary_source: true
+  }
+}
diff --git a/MODULE_LICENSE_AOM_PATENT b/MODULE_LICENSE_AOM_PATENT
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_AOM_PATENT
diff --git a/MODULE_LICENSE_BSD b/MODULE_LICENSE_BSD
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_BSD
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 0000000..dcc26d0
--- /dev/null
+++ b/OWNERS
@@ -0,0 +1,2 @@
+include platform/system/core:main:/janitors/OWNERS
+