Download modules/python/src2/cv2.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.74 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/python/src2/cv2.hpp
- Command line
-
hf download hf://tgollogly/test/modules/python/src2/cv2.hpp
-
curl -L -o cv2.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/python/src2/cv2.hpp
1.74 kB
| //warning number '5033' not a valid compiler warning in vc12 | |
| // eliminating duplicated round() declaration | |
| // #define CVPY_DYNAMIC_INIT | |
| // #define Py_DEBUG | |
| class ArgInfo | |
| { | |
| private: | |
| static const uint32_t arg_outputarg_flag = 0x1; | |
| static const uint32_t arg_arithm_op_src_flag = 0x2; | |
| static const uint32_t arg_pathlike_flag = 0x4; | |
| static const uint32_t arg_nd_mat_flag = 0x8; | |
| public: | |
| const char* name; | |
| bool outputarg; | |
| bool arithm_op_src; | |
| bool pathlike; | |
| bool nd_mat; | |
| // more fields may be added if necessary | |
| ArgInfo(const char* name_, uint32_t arg_) : | |
| name(name_), | |
| outputarg((arg_ & arg_outputarg_flag) != 0), | |
| arithm_op_src((arg_ & arg_arithm_op_src_flag) != 0), | |
| pathlike((arg_ & arg_pathlike_flag) != 0), | |
| nd_mat((arg_ & arg_nd_mat_flag) != 0) {} | |
| private: | |
| ArgInfo(const ArgInfo&) = delete; | |
| ArgInfo& operator=(const ArgInfo&) = delete; | |
| }; | |