1 /****************************************************************************** 2 QtAV: Multimedia framework based on Qt and FFmpeg 3 Copyright (C) 2012-2017 Wang Bin <wbsecg1@gmail.com> 4 5 * This file is part of QtAV 6 7 This library is free software; you can redistribute it and/or 8 modify it under the terms of the GNU Lesser General Public 9 License as published by the Free Software Foundation; either 10 version 2.1 of the License, or (at your option) any later version. 11 12 This library is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 Lesser General Public License for more details. 16 17 You should have received a copy of the GNU Lesser General Public 18 License along with this library; if not, write to the Free Software 19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 ******************************************************************************/ 21 22 #ifndef QTAV_VERSION_H 23 #define QTAV_VERSION_H 24 25 #define QTAV_MAJOR 1 //((QTAV_VERSION&0xff0000)>>16) 26 #define QTAV_MINOR 13 //((QTAV_VERSION&0xff00)>>8) 27 #define QTAV_PATCH 0 //(QTAV_VERSION&0xff) 28 29 30 #define QTAV_VERSION_MAJOR(V) ((V & 0xff0000) >> 16) 31 #define QTAV_VERSION_MINOR(V) ((V & 0xff00) >> 8) 32 #define QTAV_VERSION_PATCH(V) (V & 0xff) 33 34 #define QTAV_VERSION_CHK(major, minor, patch) \ 35 (((major&0xff)<<16) | ((minor&0xff)<<8) | (patch&0xff)) 36 37 #define QTAV_VERSION QTAV_VERSION_CHK(QTAV_MAJOR, QTAV_MINOR, QTAV_PATCH) 38 39 /*! Stringify \a x. */ 40 #define _TOSTR(x) #x 41 /*! Stringify \a x, perform macro expansion. */ 42 #define TOSTR(x) _TOSTR(x) 43 44 45 /* the following are compile time version */ 46 /* C++11 requires a space between literal and identifier */ 47 #define QTAV_VERSION_STR TOSTR(QTAV_MAJOR) "." TOSTR(QTAV_MINOR) "." TOSTR(QTAV_PATCH) 48 49 #endif // QTAV_VERSION_H 50