Skip to content

Commit

Permalink
Remove certain time-indexed arrangements.
Browse files Browse the repository at this point in the history
  - Audio processing is now iterative and we do not need to store the data in time-indexed arrangements anymore.
  - `encoder_main_lib.cc`: Remove unused variable.

PiperOrigin-RevId: 707982550
  • Loading branch information
jwcullen committed Dec 19, 2024
1 parent 9984eda commit 662762c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion iamf/cli/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ cc_library(
"//iamf/obu:audio_frame",
"//iamf/obu:parameter_data",
"//iamf/obu:types",
"@com_google_absl//absl/container:btree",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/container:node_hash_map",
Expand Down
8 changes: 0 additions & 8 deletions iamf/cli/demixing_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <list>
#include <vector>

#include "absl/container/btree_map.h"
#include "absl/container/flat_hash_map.h"
#include "absl/container/node_hash_map.h"
#include "absl/status/status.h"
Expand Down Expand Up @@ -71,13 +70,6 @@ struct LabeledFrame {
// Mapping from audio element ids to `LabeledFrame`s.
typedef absl::flat_hash_map<DecodedUleb128, LabeledFrame> IdLabeledFrameMap;

// Mapping from starting timestamps to `LabeledFrame`s.
typedef absl::btree_map<int32_t, LabeledFrame> TimeLabeledFrameMap;

// Mapping from audio element ids to `TimeLabeledFrameMap`s.
typedef absl::flat_hash_map<DecodedUleb128, TimeLabeledFrameMap>
IdTimeLabeledFrameMap;

typedef absl::Status (*Demixer)(const DownMixingParams&, LabelSamplesMap&);

/*!\brief Manages data and processing to down-mix and demix audio elements.
Expand Down
1 change: 0 additions & 1 deletion iamf/cli/encoder_main_lib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ absl::Status GenerateObus(
// TODO(b/329375123): Make two while loops that run on two threads: one for
// adding samples and parameter block metadata, and one for
// outputing OBUs.
IdTimeLabeledFrameMap id_to_time_to_labeled_frame;
int data_obus_iteration = 0; // Just for logging purposes.
while (iamf_encoder.GeneratingDataObus()) {
LOG_EVERY_N_SEC(INFO, 5)
Expand Down

0 comments on commit 662762c

Please sign in to comment.