chore: import upstream snapshot with attribution
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:14:16 +08:00
commit 8a852e4b4e
36502 changed files with 9277225 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
# Headers for 2D Fast Fourier Transform package
# from http://momonga.t.u-tokyo.ac.jp/~ooura/fft2d.html
# This is a separate package because the original downloaded archive doesn't
# contain any header files.
package(
default_visibility = ["//visibility:public"],
)
# Unrestricted use; can only distribute original package.
# See fft/readme.txt
licenses(["notice"])
exports_files(["LICENSE"])
cc_library(
name = "fft2d_headers",
srcs = [
"fft.h",
"fft2d.h",
],
)
objc_library(
name = "fft2d_headersd_ios",
srcs = [
"fft.h",
"fft2d.h",
],
)
# Export the source code so that it could be compiled for Andoid native apps.
filegroup(
name = "fft2d_headers_srcs",
srcs = [
"fft.h",
"fft2d.h",
],
)
+3
View File
@@ -0,0 +1,3 @@
Copyright(C) 1997,2001 Takuya OOURA (email: ooura@kurims.kyoto-u.ac.jp).
You may use, copy, modify this code for any purpose and
without fee. You may distribute this ORIGINAL package.
+36
View File
@@ -0,0 +1,36 @@
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
// Declarations for 1D FFT routines in third_party/fft2d/fft2d.
#ifndef FFT2D_FFT_H__
#define FFT2D_FFT_H__
#ifdef __cplusplus
extern "C" {
#endif
extern void cdft(int, int, double *, int *, double *);
extern void rdft(int, int, double *, int *, double *);
extern void ddct(int, int, double *, int *, double *);
extern void ddst(int, int, double *, int *, double *);
extern void dfct(int, double *, double *, int *, double *);
extern void dfst(int, double *, double *, int *, double *);
#ifdef __cplusplus
}
#endif
#endif // FFT2D_FFT_H__
+45
View File
@@ -0,0 +1,45 @@
# 2D Fast Fourier Transform package
# from http://momonga.t.u-tokyo.ac.jp/~ooura/fft2d.html
package(
default_visibility = ["//visibility:public"],
)
# Unrestricted use; can only distribute original package.
licenses(["notice"])
exports_files(["readme2d.txt"])
FFT2D_SRCS = [
"fftsg.c",
"fftsg2d.c",
]
config_setting(
name = "windows",
values = {"cpu": "x64_windows"},
)
# This is the main 2D FFT library. The 2D FFTs in this library call
# 1D FFTs. In addition, fast DCTs are provided for the special case
# of 8x8 and 16x16. This code in this library is referred to as
# "Version II" on http://momonga.t.u-tokyo.ac.jp/~ooura/fft2d.html.
cc_library(
name = "fft2d",
srcs = FFT2D_SRCS,
linkopts = select({
":windows": [],
"//conditions:default": ["-lm"],
}),
)
objc_library(
name = "fft2d_ios",
srcs = FFT2D_SRCS,
)
# Export the source code so that it could be compiled for Andoid native apps.
filegroup(
name = "fft2d_srcs",
srcs = FFT2D_SRCS,
)
+38
View File
@@ -0,0 +1,38 @@
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
// Declarations for 2D FFT routines in third_party/fft2d/fft2d.
#ifndef FFT2D_FFT_H__
#define FFT2D_FFT_H__
#ifdef __cplusplus
extern "C" {
#endif
extern void cdft2d(int, int, int, double **, double *, int *, double *);
extern void rdft2d(int, int, int, double **, double *, int *, double *);
extern void ddct2d(int, int, int, double **, double *, int *, double *);
extern void ddst2d(int, int, int, double **, double *, int *, double *);
extern void rdft2dsort(int, int, int, double **);
extern void ddct8x8s(int isgn, double **a);
extern void ddct16x16s(int isgn, double **a);
#ifdef __cplusplus
}
#endif
#endif // FFT2D_FFT_H__
+14
View File
@@ -0,0 +1,14 @@
"""FFT2D"""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
# LINT.IfChange
tf_http_archive(
name = "fft2d",
build_file = "//third_party/fft2d:fft2d.BUILD",
sha256 = "5f4dabc2ae21e1f537425d58a49cdca1c49ea11db0d6271e2a4b27e9697548eb",
strip_prefix = "OouraFFT-1.0",
urls = tf_mirror_urls("https://github.com/petewarden/OouraFFT/archive/v1.0.tar.gz"),
)
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/fft2d.cmake)