| # Conversion of proto to internal representations. |
| # cli/proto_to_obu and cli/obu_to_proto are subdirectories for unidirectional conversion, but utils |
| # and bidirectional conversion can stay in this directory. |
| |
| # keep-sorted start block=yes prefix_order=cc_library newline_separated=yes |
| cc_library( |
| name = "channel_label_utils", |
| srcs = ["channel_label_utils.cc"], |
| hdrs = ["channel_label_utils.h"], |
| visibility = [ |
| # TODO(b/400697000): Break up visibility for the api directory. |
| "//iamf/api:__subpackages__", |
| "//iamf/cli:__pkg__", |
| "//iamf/cli/internal/transmuxer:__pkg__", |
| "//iamf/cli/proto_conversion/proto_to_obu:__pkg__", |
| "//iamf/cli/proto_conversion/tests:__pkg__", |
| "//iamf/cli/tests:__pkg__", |
| "//iamf/cli/user_metadata_builder/tests:__pkg__", |
| ], |
| deps = [ |
| "//iamf/cli:channel_label", |
| "//iamf/cli/proto:audio_frame_cc_proto", |
| "//iamf/common/utils:map_utils", |
| "@com_google_absl//absl/status", |
| "@com_google_absl//absl/status:statusor", |
| "@com_google_absl//absl/strings", |
| ], |
| ) |
| |
| cc_library( |
| name = "downmixing_reconstruction_util", |
| srcs = ["downmixing_reconstruction_util.cc"], |
| hdrs = ["downmixing_reconstruction_util.h"], |
| visibility = [ |
| "//iamf/cli:__pkg__", |
| "//iamf/cli/proto_conversion/tests:__pkg__", |
| "//iamf/cli/tests:__pkg__", |
| ], |
| deps = [ |
| ":channel_label_utils", |
| "//iamf/cli:audio_element_with_data", |
| "//iamf/cli:channel_label", |
| "//iamf/cli:demixing_module", |
| "//iamf/cli/proto:user_metadata_cc_proto", |
| "//iamf/common/utils:macros", |
| "//iamf/obu:types", |
| "@com_google_absl//absl/container:flat_hash_map", |
| "@com_google_absl//absl/container:flat_hash_set", |
| "@com_google_absl//absl/status", |
| "@com_google_absl//absl/status:statusor", |
| "@com_google_absl//absl/strings", |
| ], |
| ) |
| |
| cc_library( |
| name = "lookup_tables", |
| hdrs = ["lookup_tables.h"], |
| visibility = ["//iamf/cli/proto_conversion:__subpackages__"], |
| deps = [ |
| "//iamf/cli/proto:arbitrary_obu_cc_proto", |
| "//iamf/cli/proto:audio_element_cc_proto", |
| "//iamf/cli/proto:codec_config_cc_proto", |
| "//iamf/cli/proto:ia_sequence_header_cc_proto", |
| "//iamf/cli/proto:mix_presentation_cc_proto", |
| "//iamf/cli/proto:param_definitions_cc_proto", |
| "//iamf/cli/proto:parameter_block_cc_proto", |
| "//iamf/cli/proto:parameter_data_cc_proto", |
| "//iamf/obu:audio_element", |
| "//iamf/obu:codec_config", |
| "//iamf/obu:ia_sequence_header", |
| "//iamf/obu:mix_presentation", |
| "//iamf/obu:obu_header", |
| "//iamf/obu:parameter_data", |
| "//iamf/obu/decoder_config:aac_decoder_config", |
| "//iamf/obu/decoder_config:flac_decoder_config", |
| ], |
| ) |
| |
| cc_library( |
| name = "proto_utils", |
| srcs = ["proto_utils.cc"], |
| hdrs = ["proto_utils.h"], |
| visibility = [ |
| # TODO(b/400697000): Break up visibility for the api directory. |
| "//iamf/api:__subpackages__", |
| "//iamf/cli:__pkg__", |
| "//iamf/cli/proto_conversion:__subpackages__", |
| ], |
| deps = [ |
| ":lookup_tables", |
| "//iamf/cli/proto:obu_header_cc_proto", |
| "//iamf/cli/proto:param_definitions_cc_proto", |
| "//iamf/cli/proto:parameter_data_cc_proto", |
| "//iamf/cli/proto:test_vector_metadata_cc_proto", |
| "//iamf/common:leb_generator", |
| "//iamf/common/utils:macros", |
| "//iamf/common/utils:map_utils", |
| "//iamf/common/utils:numeric_utils", |
| "//iamf/obu:obu_header", |
| "//iamf/obu:param_definitions", |
| "//iamf/obu:parameter_data", |
| "//iamf/obu:types", |
| "@com_google_absl//absl/log", |
| "@com_google_absl//absl/status", |
| "@com_google_absl//absl/strings", |
| "@com_google_absl//absl/strings:string_view", |
| ], |
| ) |
| |
| # keep-sorted end |