1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
/*****************************************************************************
* Copyright (C) 2013-2020 MulticoreWare, Inc
*
* Authors: Steve Borho <steve@borho.org>
* Min Chen <chenm003@163.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
*
* This program is also available under a commercial proprietary license.
* For more information, contact us at license @ x265.com.
*****************************************************************************/
#include "x265.h"
#include "common.h"
#include "primitives.h"
#define XSTR(x) STR(x)
#define STR(x) #x
#if defined(__clang__)
#define COMPILEDBY "[clang " XSTR(__clang_major__) "." XSTR(__clang_minor__) "." XSTR(__clang_patchlevel__) "]"
#ifdef __IA64__
#define ONARCH "[on 64-bit] "
#else
#define ONARCH "[on 32-bit] "
#endif
#endif
#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__)
#define COMPILEDBY "[GCC " XSTR(__GNUC__) "." XSTR(__GNUC_MINOR__) "." XSTR(__GNUC_PATCHLEVEL__) "]"
#ifdef __IA64__
#define ONARCH "[on 64-bit] "
#else
#define ONARCH "[on 32-bit] "
#endif
#endif
#ifdef __INTEL_COMPILER
#define COMPILEDBY "[ICC " XSTR(__INTEL_COMPILER) "]"
#elif _MSC_VER
#define COMPILEDBY "[MSVC " XSTR(_MSC_VER) "]"
#endif
#ifndef COMPILEDBY
#define COMPILEDBY "[Unk-CXX]"
#endif
#ifdef _WIN32
#define ONOS "[Windows]"
#elif __linux
#define ONOS "[Linux]"
#elif __OpenBSD__
#define ONOS "[OpenBSD]"
#elif __CYGWIN__
#define ONOS "[Cygwin]"
#elif __APPLE__
#define ONOS "[Mac OS X]"
#else
#define ONOS "[Unk-OS]"
#endif
#if defined(_LP64) || defined(_WIN64)
#define BITS "[64 bit]"
#else
#define BITS "[32 bit]"
#endif
#if defined(ENABLE_ASSEMBLY) || HAVE_ALTIVEC
#define ASM ""
#else
#define ASM "[noasm]"
#endif
#if NO_ATOMICS
#define ATOMICS "[no-atomics]"
#else
#define ATOMICS ""
#endif
#if CHECKED_BUILD
#define CHECKED "[CHECKED] "
#else
#define CHECKED " "
#endif
#if X265_DEPTH == 12
#define BITDEPTH "12bit"
const int PFX(max_bit_depth) = 12;
#elif X265_DEPTH == 10
#define BITDEPTH "10bit"
const int PFX(max_bit_depth) = 10;
#elif X265_DEPTH == 8
#define BITDEPTH "8bit"
const int PFX(max_bit_depth) = 8;
#endif
#if LINKED_8BIT
#define ADD8 "+8bit"
#else
#define ADD8 ""
#endif
#if LINKED_10BIT
#define ADD10 "+10bit"
#else
#define ADD10 ""
#endif
#if LINKED_12BIT
#define ADD12 "+12bit"
#else
#define ADD12 ""
#endif
const char* PFX(version_str) = XSTR(X265_VERSION);
const char* PFX(build_info_str) = ONOS COMPILEDBY BITS ASM ATOMICS CHECKED BITDEPTH ADD8 ADD10 ADD12;
|