MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / CatchOpenCvErrs

Function CatchOpenCvErrs

jni/stasm/err.cpp:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void CatchOpenCvErrs(void) // makes CV_Assert work with LastErr and stasm_lasterr
88{
89 err_g[0] = 0;
90 cv::ErrorCallback prev = cv::redirectError(CvErrorCallbackForStasm);
91 if (istack_g < NSIZE(stack_g))
92 stack_g[istack_g++] = prev;
93 else // should never get here (CatchErr regions nested too deeply)
94 printf("\nCallback stack overpush\n");
95}
96
97void UncatchOpenCvErrs(void) // restore handler that was active before CatchOpenCvErrs
98{

Callers 4

stasm_init_extFunction · 0.85
stasm_open_image_extFunction · 0.85
stasm_search_auto_extFunction · 0.85
stasm_search_pinnedFunction · 0.85

Calls 1

NSIZEFunction · 0.85

Tested by

no test coverage detected