feat: 切换后端至PaddleOCR-NCNN,切换工程为CMake
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
This commit is contained in:
42
3rdparty/opencv-4.5.4/platforms/semihosting/include/aarch64_semihosting_port.hpp
vendored
Normal file
42
3rdparty/opencv-4.5.4/platforms/semihosting/include/aarch64_semihosting_port.hpp
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
// This file is part of OpenCV project.
|
||||
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
||||
// of this distribution and at http://opencv.org/license.html.
|
||||
|
||||
#ifndef AARCH64_BAREMETAL_PORT_HPP
|
||||
#define AARCH64_BAREMETAL_PORT_HPP
|
||||
|
||||
#include <malloc.h> // Needed for `memalign`.
|
||||
#include <sys/errno.h> // Needed for `ENOMEM`.
|
||||
|
||||
// -std=c++11 is missing the following definitions when targeting
|
||||
// semihosting on aarch64.
|
||||
#if __cplusplus == 201103L
|
||||
#include <cmath>
|
||||
#define M_PI 3.14159265358979323846
|
||||
#define M_SQRT2 1.41421356237309504880
|
||||
|
||||
namespace std {
|
||||
inline double cbrt(double x) {
|
||||
return ::cbrt(x);
|
||||
}
|
||||
inline double copysign(double mag, double sgn) {
|
||||
return ::copysign(mag, sgn);
|
||||
}
|
||||
} //namespace std
|
||||
#endif // __cplusplus == 201103L
|
||||
|
||||
extern "C" {
|
||||
// Redirect the implementation of `posix_memalign` to `memalign`
|
||||
// as the former is
|
||||
// missing at link time. https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html
|
||||
__attribute__((weak)) int posix_memalign(void **memptr, size_t alignment, size_t size) {
|
||||
void * ptr = memalign(alignment, size);
|
||||
if (ptr != NULL) {
|
||||
*memptr = ptr;
|
||||
return 0;
|
||||
}
|
||||
return ENOMEM;
|
||||
}
|
||||
} // extern "C"
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user