fixed error reporting in GPU module (exceptions in destructors, etc)
This commit is contained in:
@@ -245,7 +245,7 @@ enum {
|
||||
CV_StsNotImplemented= -213, /* the requested function/feature is not implemented */
|
||||
CV_StsBadMemBlock= -214, /* an allocated block has been corrupted */
|
||||
CV_StsAssert= -215, /* assertion failed */
|
||||
CV_GpuNotFound= -216,
|
||||
CV_GpuNotSupported= -216,
|
||||
CV_GpuApiCallError= -217,
|
||||
CV_GpuNppCallError= -218
|
||||
};
|
||||
|
@@ -527,6 +527,9 @@ CV_IMPL const char* cvErrorStr( int status )
|
||||
case CV_StsNotImplemented : return "The function/feature is not implemented";
|
||||
case CV_StsBadMemBlock : return "Memory block has been corrupted";
|
||||
case CV_StsAssert : return "Assertion failed";
|
||||
case CV_GpuNotSupported : return "No GPU support";
|
||||
case CV_GpuApiCallError : return "GPU API error";
|
||||
case CV_GpuNppCallError : return "NPP API error";
|
||||
};
|
||||
|
||||
sprintf(buf, "Unknown %s code %d", status >= 0 ? "status":"error", status);
|
||||
|
Reference in New Issue
Block a user