8.4.2.26. libutils
(packages/opencv/libutils.lsh)


dummy function that adds OpenCV C header files in C file

8.4.2.26.0. (cvLoadPrimitives proctype)
(packages/opencv/libutils.lsh)


 /*F//////////////////////////////////////////////////////////////////////////////////////
 //    Name: cvLoadPrimitives
 //    Purpose: The function loads primitives
 //    Context:
 //    Parameters:  dllName        - name of dll to be loaded(without prefix) or NULL
 //                                  for default dll
 //                 processor_type - needep processor type or NULL for automatic processor
 //                                  detection
 //    Return value: number of loaded functions
 //    Notes:   full dll name is consists from dllName + processor_type.dll(or
 //             dllName + processor_type + "d".dll for debug configuration)
 //F*/
 OPENCVAPI  int  cvLoadPrimitives( const char* proc_type CV_DEFAULT(0) );


8.4.2.26.1. (cvAlloc size)
(packages/opencv/libutils.lsh)


 /*F//////////////////////////////////////////////////////////////////////////////////////
 //    Name: cvAlloc and cvFree
 //    Purpose: The functions allocate/deallocate plain memory buffers
 //F*/
 OPENCVAPI  void*  cvAlloc( int size );


8.4.2.26.2. (cvGetLibraryInfo version loaded loadedmodules)
(packages/opencv/libutils.lsh)


 /*F//////////////////////////////////////////////////////////////////////////////////////
 //    Name: cvGetLibraryInfo
 //    Purpose: The function returns information about current version of library and
 //             loaded/non loaded primitives dll
 //    Context:
 //    Parameters:  version  - pointer to pointer to version of OpenCV - build date
 //                           (or NULL if not needed)
 //                 loaded   - pointer to flag of loaded primitives, nonzero value
 //                            after returning from function indicates that primitives
 //                            are loaded(NULL if not needed)
 //                 loaded_modules - comma-separated list of loaded optimized dlls
 //                           (NULL if not needed)
 //
 //    Notes:   
 //F*/
 OPENCVAPI  void  cvGetLibraryInfo( const char** version, int* loaded,
                                    const char** loaded_modules );


8.4.2.26.3. (cvGetErrStatus )
(packages/opencv/libutils.lsh)


/*F/////////////////////////////////////////////////////////////////////////
 // Name:       cvGetErrStatus
 // Purpose:    Gets last error status
 // Returns:
 // Parameters:
 //
 // Notes:
 */
 OPENCVAPI CVStatus cvGetErrStatus( void );


8.4.2.26.4. (cvSetErrStatus status)
(packages/opencv/libutils.lsh)


 /*F/////////////////////////////////////////////////////////////////////////
 // Name:       cvSetErrStatus
 // Purpose:    Sets error status
 // Returns:
 // Parameters:
 //
 // Notes:
 */
 OPENCVAPI void cvSetErrStatus( CVStatus status );


8.4.2.26.5. (cvGetErrMode )
(packages/opencv/libutils.lsh)


 /*F/////////////////////////////////////////////////////////////////////////
 // Name:       cvGetErrMode, cvSetErrMode
 // Purpose:    gets/sets error mode
 // Returns:
 // Parameters:
 //
 // Notes:
 */
 OPENCVAPI int  cvGetErrMode( void );


8.4.2.26.6. (cvError code func context file line)
(packages/opencv/libutils.lsh)


 /*F/////////////////////////////////////////////////////////////////////////
 // Name:       cvError
 // Purpose:    performs basic error handling
 // Returns:    last status
 // Parameters:
 //
 // Notes:
 */
 OPENCVAPI CVStatus cvError( CVStatus code, const char *func,
                          const char *context, const char *file, int line);


8.4.2.26.7. (cvErrorStr status)
(packages/opencv/libutils.lsh)


 /*F/////////////////////////////////////////////////////////////////////////
 // Name:       cvErrorStr
 // Purpose:    translates an error status code into a textual description
 // Returns:
 // Parameters:
 //
 // Notes:
 */
 OPENCVAPI const char* cvErrorStr( CVStatus status );


8.4.2.26.8. (cvRedirectError cverrorfunc)
(packages/opencv/libutils.lsh)


 /*F/////////////////////////////////////////////////////////////////////////
 // Name:       cvRedirectError
 // Purpose:    assigns a new error-handling function
 // Returns:    old error-handling function
 // Parameters: new error-handling function
 //
 // Notes:
 */
 OPENCVAPI CVErrorCallBack cvRedirectError(CVErrorCallBack cvErrorFunc);


8.4.2.26.9. (cvnulldevreport status funcname context file line)
(packages/opencv/libutils.lsh)


 /*-----------------  Predefined error-handling functions  -----------------*/
 /*
     Output to:
         cvNulDevReport - nothing
         cvStdErrReport - console(printf)
         cvGuiBoxReport - MessageBox(WIN32)
 */
 OPENCVAPI CVStatus cvNulDevReport( CVStatus status, const char *funcName,
                                 const char *context, const char *file, int line );


8.4.2.26.10. (cvstderrreport status funcname context file line)
(packages/opencv/libutils.lsh)


 OPENCVAPI CVStatus cvStdErrReport( CVStatus status, const char *funcName,
                                 const char *context, const char *file, int line );


8.4.2.26.11. (cvguiboxreport status funcname context file line)
(packages/opencv/libutils.lsh)


 OPENCVAPI CVStatus cvGuiBoxReport( CVStatus status, const char *funcName,
                                 const char *context, const char *file, int line);


8.4.2.26.12. (cvstartprofile call file line)
(packages/opencv/libutils.lsh)


 OPENCVAPI void cvStartProfile( const char* call, const char* file, int line );


8.4.2.26.13. (cvendprofile file line)
(packages/opencv/libutils.lsh)


 OPENCVAPI void cvEndProfile( const char* file, int line );


8.4.2.26.14. (cvsetprofile_aux)
(packages/opencv/libutils.lsh)








8.4.2.26.15. (cvremoveprofile)
(packages/opencv/libutils.lsh)


 OPENCVAPI void cvRemoveProfile();                  


8.4.2.26.16. (cvsetmemorymanager_aux)
(packages/opencv/libutils.lsh)




8.4.2.26.17. (cvsetmemorymanager allocfunc freefunc)
(packages/opencv/libutils.lsh)


 OPENCVAPI void cvSetMemoryManager( void* (CV_STDCALL *allocFunc)(int, const char*, int) CV_DEFAULT(0),
                            int (CV_STDCALL *freeFunc)(void**, const char*, int) CV_DEFAULT(0));


8.4.2.26.18. (cvgetcallstack stack size)
(packages/opencv/libutils.lsh)


 OPENCVAPI void cvGetCallStack(CvStackRecord** stack, int* size);


8.4.2.26.18.0. (cvSetIPLAllocators createheader allocatedata deallocate createroi cloneimage)
(packages/opencv/libutils.lsh)


 /*F//////////////////////////////////////////////////////////////////////////////////
 // Name:    cvSetIPLAllocators
 // Purpose:  Makes OpenCV to use IPL functions for image allocation/deallocation
 // Returns:
 // Parameters:
 //
 // Notes:
 */
 OPENCVAPI void
 cvSetIPLAllocators( Cv_iplCreateImageHeader createHeader,
                     Cv_iplAllocateImageData allocateData,
                     Cv_iplDeallocate deallocate,
                     Cv_iplCreateROI createROI,
                     Cv_iplCloneImage cloneImage );