mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-12 14:00:53 +08:00
Expose the PP-OCRv6 engine through a stable C ABI and installable shared and static libraries, plus a ctypes Python package that follows the RapidOCR call shape. Keep AVX-512 out of the AVX2 object file and speed up GEMM accumulate and the AArch64 GEMM tile. Co-authored-by: Daniel <znsoft@163.com>
24 lines
606 B
C
24 lines
606 B
C
#ifndef PPOCR_EXPORT_H_
|
|
#define PPOCR_EXPORT_H_
|
|
|
|
/* Shared-library export macro. Static consumers leave PPOCR_API empty.
|
|
The shared build compiles with PPOCR_BUILDING_SHARED. Windows consumers
|
|
of the DLL define PPOCR_SHARED. */
|
|
#if defined(_WIN32)
|
|
# if defined(PPOCR_BUILDING_SHARED)
|
|
# define PPOCR_API __declspec(dllexport)
|
|
# elif defined(PPOCR_SHARED)
|
|
# define PPOCR_API __declspec(dllimport)
|
|
# else
|
|
# define PPOCR_API
|
|
# endif
|
|
#else
|
|
# if defined(PPOCR_BUILDING_SHARED)
|
|
# define PPOCR_API __attribute__((visibility("default")))
|
|
# else
|
|
# define PPOCR_API
|
|
# endif
|
|
#endif
|
|
|
|
#endif
|