mirror of
https://github.com/opencv/opencv.git
synced 2024-12-12 23:49:36 +08:00
Merge pull request #24357 from Kumataro:fix24121
imgproc: move stb_truetype functions into cv namespace
This commit is contained in:
commit
0976765c62
@ -403,6 +403,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
|
|
||||||
#ifdef STB_TRUETYPE_IMPLEMENTATION
|
#ifdef STB_TRUETYPE_IMPLEMENTATION
|
||||||
|
|
||||||
|
namespace cv {
|
||||||
|
|
||||||
#ifndef STBTT_MAX_OVERSAMPLE
|
#ifndef STBTT_MAX_OVERSAMPLE
|
||||||
#define STBTT_MAX_OVERSAMPLE 8
|
#define STBTT_MAX_OVERSAMPLE 8
|
||||||
#endif
|
#endif
|
||||||
@ -4428,6 +4430,8 @@ STBTT_DEF int stbtt_SetInstance(stbtt_fontinfo* info, const int* params, int cou
|
|||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
} // namespace cv
|
||||||
|
|
||||||
#endif // STB_TRUETYPE_IMPLEMENTATION
|
#endif // STB_TRUETYPE_IMPLEMENTATION
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
namespace cv {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define STBTT_FOURCC(a, b, c, d) \
|
#define STBTT_FOURCC(a, b, c, d) \
|
||||||
|
Loading…
Reference in New Issue
Block a user