1 /* 2 // CVResDll.h - Result codes for DLL wrapper 3 // Written by Michael Ellison 4 //------------------------------------------------------------------------- 5 // CodeVis's Free License 6 // www.codevis.com 7 // 8 // Copyright (c) 2003 by Michael Ellison (mike@codevis.com) 9 // All rights reserved. 10 // 11 // You may use this software in source and/or binary form, with or without 12 // modification, for commercial or non-commercial purposes, provided that 13 // you comply with the following conditions: 14 // 15 // * Redistributions of source code must retain the above copyright notice, 16 // this list of conditions and the following disclaimer. 17 // 18 // * Redistributions of modified source must be clearly marked as modified, 19 // and due notice must be placed in the modified source indicating the 20 // type of modification(s) and the name(s) of the person(s) performing 21 // said modification(s). 22 // 23 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 25 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 27 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 28 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 29 // TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 31 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 32 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 33 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 // 35 //--------------------------------------------------------------------------- 36 // Modifications: 37 // 38 //--------------------------------------------------------------------------- 39 // 40 /// \file CVResDll.h 41 /// \brief Result codes for DLL wrapper 42 /// 43 /// Prefer to include into .cpp files that need these codes, and include 44 /// CVRes.h into headers to speed compile times and reduce recompilation 45 /// when changing result codes. 46 /// \sa CVRes.h 47 /// 48 /// $RCSfile: CVResDll.h,v $ 49 /// $Date: 2004/02/08 23:47:37 $ 50 /// $Revision: 1.1.1.1 $ 51 /// $Author: mikeellison $ 52 */ 53 54 #ifndef _CVResDll_H_ 55 #define _CVResDll_H_ 56 57 #include "CVRes.h" 58 59 enum CVRES_DLL_ENUM 60 { 61 /*------------------------------------------------------------------------ 62 // DLL status codes 63 */ 64 65 CVRES_DLL_ATTACHED = CVRES_DLL_STATUS + 1, 66 67 /*------------------------------------------------------------------------ 68 // Dll errors 69 */ 70 71 /*! DLL unable to create a video capture object */ 72 CVRES_DLL_VIDCAP_CREATE_ERROR = CVRES_DLL_ERROR + 1, 73 /*! Invalid CVVIDCAPTURE handle */ 74 CVRES_DLL_VIDCAP_INVALID_HANDLE, 75 /*! Requested device was not found */ 76 CVRES_DLL_VIDCAP_DEV_NOT_FOUND, 77 /*! A passed-in CVIMAGESTRUCT has invalid members */ 78 CVRES_DLL_VIDCAP_INVALID_IMAGE_STRUCT, 79 /*! The requested property is not supported by the camera */ 80 CVRES_DLL_VIDCAP_UNSUPPORTED_PROPERTY 81 82 }; 83 84 #endif /* _CVResDll_H_ */ 85 86