• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024, Alliance for Open Media. All rights reserved
3  *
4  * This source code is subject to the terms of the BSD 3-Clause Clear License
5  * and the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear
6  * License was not distributed with this source code in the LICENSE file, you
7  * can obtain it at www.aomedia.org/license/software-license/bsd-3-c-c. If the
8  * Alliance for Open Media Patent License 1.0 was not distributed with this
9  * source code in the PATENTS file, you can obtain it at
10  * www.aomedia.org/license/patent.
11  */
12 
13 #ifndef CLI_RENDERER_PRECOMPUTED_GAINS_H_
14 #define CLI_RENDERER_PRECOMPUTED_GAINS_H_
15 
16 #include <string>
17 #include <vector>
18 
19 #include "absl/container/flat_hash_map.h"
20 
21 namespace iamf_tools {
22 
23 typedef absl::flat_hash_map<
24     std::string,
25     absl::flat_hash_map<std::string, std::vector<std::vector<double>>>>
26     PrecomputedGains;
27 
28 /*!\brief Fills precomputed gains matrices.
29  *
30  * \return Map from input layout name to output layout name to precomputed
31  *         gains.
32  */
33 PrecomputedGains InitPrecomputedGains();
34 
35 }  // namespace iamf_tools
36 
37 #endif  // CLI_RENDERER_PRECOMPUTED_GAINS_H_
38