• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_applicable_licenses: ["external_iamf_tools_license"],
3}
4
5license {
6    name: "external_iamf_tools_license",
7    visibility: [":__subpackages__"],
8    license_kinds: [
9        "SPDX-license-identifier-BSD",
10        "legacy_by_exception_only",
11    ],
12    license_text: [
13        "LICENSE",
14        "PATENTS",
15    ],
16}
17
18cc_library {
19    name: "iamf_tools",
20    export_include_dirs: [
21        "iamf/api",
22        "iamf/api/decoder",
23    ],
24    cflags: [
25        "-DIAMF_TOOLS_DISABLE_AAC_DECODER",
26        "-DIAMF_TOOLS_DISABLE_FLAC_DECODER",
27    ],
28    shared_libs: [
29        "liblog",
30        "libopus",
31    ],
32    static_libs: [
33        "libabsl",
34    ],
35    local_include_dirs: [
36        ".",
37    ],
38    include_dirs: [
39        "external/abseil-cpp",
40        "external/libopus",
41    ],
42    srcs: [
43        "iamf/api/conversion/mix_presentation_conversion.cc",
44        "iamf/api/decoder/iamf_decoder.cc",
45        "iamf/cli/audio_frame_decoder.cc",
46        "iamf/cli/channel_label.cc",
47        "iamf/cli/cli_util.cc",
48        "iamf/cli/codec/lpcm_decoder.cc",
49        "iamf/cli/codec/opus_decoder.cc",
50        "iamf/cli/codec/opus_utils.cc",
51        "iamf/cli/demixing_module.cc",
52        "iamf/cli/global_timing_module.cc",
53        "iamf/cli/loudness_calculator_base.cc",
54        "iamf/cli/loudness_calculator_factory_base.cc",
55        "iamf/cli/obu_processor.cc",
56        "iamf/cli/obu_with_data_generator.cc",
57        "iamf/cli/parameters_manager.cc",
58        "iamf/cli/profile_filter.cc",
59        "iamf/cli/renderer_factory.cc",
60        "iamf/cli/renderer/audio_element_renderer_ambisonics_to_channel.cc",
61        "iamf/cli/renderer/audio_element_renderer_base.cc",
62        "iamf/cli/renderer/audio_element_renderer_channel_to_channel.cc",
63        "iamf/cli/renderer/audio_element_renderer_passthrough.cc",
64        "iamf/cli/renderer/loudspeakers_renderer.cc",
65        "iamf/cli/renderer/precomputed_gains.cc",
66        "iamf/cli/renderer/renderer_utils.cc",
67        "iamf/cli/rendering_mix_presentation_finalizer.cc",
68        "iamf/cli/sample_processor_base.cc",
69        "iamf/common/leb_generator.cc",
70        "iamf/common/read_bit_buffer.cc",
71        "iamf/common/utils/bit_buffer_util.cc",
72        "iamf/common/utils/numeric_utils.cc",
73        "iamf/common/utils/sample_processing_utils.cc",
74        "iamf/common/write_bit_buffer.cc",
75        "iamf/obu/audio_element.cc",
76        "iamf/obu/audio_frame.cc",
77        "iamf/obu/codec_config.cc",
78        "iamf/obu/decoder_config/aac_decoder_config.cc",
79        "iamf/obu/decoder_config/flac_decoder_config.cc",
80        "iamf/obu/decoder_config/lpcm_decoder_config.cc",
81        "iamf/obu/decoder_config/opus_decoder_config.cc",
82        "iamf/obu/demixing_info_parameter_data.cc",
83        "iamf/obu/demixing_param_definition.cc",
84        "iamf/obu/extension_parameter_data.cc",
85        "iamf/obu/ia_sequence_header.cc",
86        "iamf/obu/mix_gain_parameter_data.cc",
87        "iamf/obu/mix_presentation.cc",
88        "iamf/obu/obu_base.cc",
89        "iamf/obu/obu_header.cc",
90        "iamf/obu/param_definitions.cc",
91        "iamf/obu/parameter_block.cc",
92        "iamf/obu/recon_gain_info_parameter_data.cc",
93    ],
94    apex_available: [
95        "com.android.media.swcodec",
96    ],
97    visibility: [
98        "//frameworks/av/media/codec2/components/iamf",
99    ],
100}
101