Files
tensorflow--tensorflow/tensorflow/lite/experimental/microfrontend/lib/BUILD
T
wehub-resource-sync 8a852e4b4e
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s
chore: import upstream snapshot with attribution
2026-07-13 12:14:16 +08:00

122 lines
2.0 KiB
Python

load("@rules_cc//cc:cc_library.bzl", "cc_library")
# Library for generating feature vectors from audio data
package(
# copybara:uncomment default_applicable_licenses = ["//tensorflow:LICENSE"],
default_visibility = ["//visibility:public"],
licenses = ["notice"],
)
cc_library(
name = "bits",
hdrs = ["bits.h"],
)
cc_library(
name = "fft",
srcs = [
"fft.cc",
"fft_util.cc",
],
hdrs = [
"fft.h",
"fft_util.h",
],
deps = [
"@kissfft//:kiss_fftr_16",
],
)
cc_library(
name = "filterbank",
srcs = [
"filterbank.c",
"filterbank_util.c",
],
hdrs = [
"filterbank.h",
"filterbank_util.h",
],
deps = [
":bits",
":fft",
],
)
cc_library(
name = "frontend",
srcs = [
"frontend.c",
"frontend_util.c",
],
hdrs = [
"frontend.h",
"frontend_util.h",
],
deps = [
":bits",
":fft",
":filterbank",
":log_scale",
":noise_reduction",
":pcan_gain_control",
":window",
],
)
cc_library(
name = "log_scale",
srcs = [
"log_lut.c",
"log_scale.c",
"log_scale_util.c",
],
hdrs = [
"log_lut.h",
"log_scale.h",
"log_scale_util.h",
],
deps = [
":bits",
],
)
cc_library(
name = "noise_reduction",
srcs = [
"noise_reduction.c",
"noise_reduction_util.c",
],
hdrs = [
"noise_reduction.h",
"noise_reduction_util.h",
],
)
cc_library(
name = "pcan_gain_control",
srcs = [
"pcan_gain_control.c",
"pcan_gain_control_util.c",
],
hdrs = [
"pcan_gain_control.h",
"pcan_gain_control_util.h",
],
deps = [
":bits",
],
)
cc_library(
name = "window",
srcs = [
"window.c",
"window_util.c",
],
hdrs = [
"window.h",
"window_util.h",
],
)