Skip to content

Commit

Permalink
Removes redundant copies of precomputed gains
Browse files Browse the repository at this point in the history
- Lookup functions are also consolidated.
- Stores gains directly instead of in a map (of type `GainsMap`) and querying
  it every time with the same keys.

PiperOrigin-RevId: 672944017
  • Loading branch information
yero authored and jwcullen committed Sep 10, 2024
1 parent efa41cb commit 7200fae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions iamf/cli/renderer/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ cc_library(
name = "precomputed_gains",
srcs = ["precomputed_gains.cc"],
hdrs = ["precomputed_gains.h"],
deps = [
"@com_google_absl//absl/container:flat_hash_map",
],
deps = ["@com_google_absl//absl/container:flat_hash_map"],
)

cc_library(
Expand Down
1 change: 1 addition & 0 deletions iamf/cli/renderer/precomputed_gains.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#ifndef CLI_RENDERER_PRECOMPUTED_GAINS_H_
#define CLI_RENDERER_PRECOMPUTED_GAINS_H_

#include <string>
#include <vector>

Expand Down

0 comments on commit 7200fae

Please sign in to comment.