|
#define | CLAMP(x, a, b) ( (x) > (b) ? (b) : ( (x) < (a) ? (a) : (x) ) ) |
|
#define | CLAMP_0_255(x) CLAMP(x,0,255) |
|
#define | CLAMP_BOTTOM(x, a) (((x) < (a)) ? (a) : (x)) |
|
#define | CLAMP_TOP(x, a) (((x) > (a)) ? (a) : (x)) |
|
#define | NCV_CT_ASSERT(X) |
|
#define | NCV_CT_PREP_PASTE(a, b) NCV_CT_PREP_PASTE_AUX(a, b) |
| 连接宏。
|
|
#define | NCV_CT_PREP_PASTE_AUX(a, b) a##b |
| 连接间接宏。
|
|
#define | NCV_RESET_SKIP_COND(x) __ncv_skip_cond = x |
|
#define | NCV_SET_SKIP_COND(x) bool __ncv_skip_cond = x |
|
#define | NCV_SKIP_COND_BEGIN if (!__ncv_skip_cond) { |
|
#define | NCV_SKIP_COND_END } |
|
#define | ncvAssertCUDALastErrorReturn(errCode) |
|
#define | ncvAssertCUDAReturn(cudacall, errCode) |
|
#define | ncvAssertPrintCheck(pred, msg) |
|
#define | ncvAssertPrintReturn(pred, msg, err) |
|
#define | ncvAssertReturn(pred, err) |
|
#define | ncvAssertReturnNcvStat(ncvOp) |
|
#define | ncvSafeMatAlloc(name, type, alloc, width, height, err) |
|
#define | SQR(x) ((x)*(x)) |
|
#define | SUB_BEGIN(type, name) struct { __inline type name |
|
#define | SUB_CALL(name) name.name |
|
#define | SUB_END(name) } name; |
|