1 /*****************************************************************************
2 * Copyright (C) 2013 x265 project
4 * Authors: Steve Borho <steve@borho.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
20 * This program is also available under a commercial proprietary license.
21 * For more information, contact us at license @ x265.com.
22 *****************************************************************************/
27 #define XSTR(x) STR(x)
30 #if defined(__clang__)
31 #define NVM_COMPILEDBY "[clang " XSTR(__clang_major__) "." XSTR(__clang_minor__) "." XSTR(__clang_patchlevel__) "]"
33 #define NVM_ONARCH "[on 64-bit] "
35 #define NVM_ONARCH "[on 32-bit] "
39 #if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__)
40 #define NVM_COMPILEDBY "[GCC " XSTR(__GNUC__) "." XSTR(__GNUC_MINOR__) "." XSTR(__GNUC_PATCHLEVEL__) "]"
42 #define NVM_ONARCH "[on 64-bit] "
44 #define NVM_ONARCH "[on 32-bit] "
48 #ifdef __INTEL_COMPILER
49 #define NVM_COMPILEDBY "[ICC " XSTR(__INTEL_COMPILER) "]"
51 #define NVM_COMPILEDBY "[MSVC " XSTR(_MSC_VER) "]"
54 #ifndef NVM_COMPILEDBY
55 #define NVM_COMPILEDBY "[Unk-CXX]"
59 #define NVM_ONOS "[Windows]"
61 #define NVM_ONOS "[Linux]"
63 #define NVM_ONOS "[OpenBSD]"
65 #define NVM_ONOS "[Cygwin]"
67 #define NVM_ONOS "[Mac OS X]"
69 #define NVM_ONOS "[Unk-OS]"
73 #define NVM_BITS "[64 bit]"
75 #define NVM_BITS "[32 bit]"
79 #define CHECKED "[CHECKED] "
85 #define BITDEPTH "16bpp"
86 const int x265_max_bit_depth
= 10;
88 #define BITDEPTH "8bpp"
89 const int x265_max_bit_depth
= 8;
92 const char *x265_version_str
= XSTR(X265_VERSION
);
93 const char *x265_build_info_str
= NVM_ONOS NVM_COMPILEDBY NVM_BITS CHECKED BITDEPTH
;