#include "qsv_common.h"
#endif
-#ifdef USE_X265
+#if HB_PROJECT_FEATURE_X265
#include "x265.h"
#endif
case HB_VCODEC_FFMPEG_VP9:
return 1;
-#ifdef USE_X265
+#if HB_PROJECT_FEATURE_X265
case HB_VCODEC_X265_8BIT:
case HB_VCODEC_X265_10BIT:
case HB_VCODEC_X265_12BIT:
case HB_VCODEC_X264_10BIT:
return x264_preset_names;
-#ifdef USE_X265
+#if HB_PROJECT_FEATURE_X265
case HB_VCODEC_X265_8BIT:
case HB_VCODEC_X265_10BIT:
case HB_VCODEC_X265_12BIT:
case HB_VCODEC_X264_10BIT:
return x264_tune_names;
-#ifdef USE_X265
+#if HB_PROJECT_FEATURE_X265
case HB_VCODEC_X265_8BIT:
case HB_VCODEC_X265_10BIT:
case HB_VCODEC_X265_12BIT:
#ifndef HB_COMMON_H
#define HB_COMMON_H
+#include "project.h"
#include "hbtypes.h"
#include "hb_dict.h"
#include <math.h>
// x264 option name/synonym helper
const char * hb_x264_encopt_name( const char * name );
-#ifdef USE_X265
+#if HB_PROJECT_FEATURE_X265
// x265 option name/synonym helper
const char * hb_x265_encopt_name( const char * name );
#endif
It may be used under the terms of the GNU General Public License v2.
For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#ifdef USE_X265
+
+#include "project.h"
+
+#if HB_PROJECT_FEATURE_X265
#include "hb.h"
#include "hb_dict.h"
hb_register(&hb_enctheora);
hb_register(&hb_encvorbis);
hb_register(&hb_encx264);
-#ifdef USE_X265
+#if HB_PROJECT_FEATURE_X265
hb_register(&hb_encx265);
#endif
#ifdef USE_QSV
// x264 has multiple names for some options
if (encoder & HB_VCODEC_X264_MASK)
name = hb_x264_encopt_name(name);
-#ifdef USE_X265
+#if HB_PROJECT_FEATURE_X265
// x265 has multiple names for some options
if (encoder & HB_VCODEC_X265_MASK)
name = hb_x265_encopt_name(name);
LIBHB.GCC.D += USE_NVENC
endif
-ifeq (1,$(FEATURE.x265))
- LIBHB.GCC.D += USE_X265
-endif
-
ifeq (1,$(COMPAT.strtok_r))
LIBHB.GCC.D += HB_NEED_STRTOK_R
endif
<<#>>define HB_PROJECT_HOST_TITLE "__HOST_title"
<<#>>define HB_PROJECT_HOST_ARCH "__HOST_arch"
-<<#>>define HB_PROJECT_FEATURE_asm __FEATURE_asm
-<<#>>define HB_PROJECT_FEATURE_fdk_aac __FEATURE_fdk_aac
-<<#>>define HB_PROJECT_FEATURE_ffmpeg_aac __FEATURE_ffmpeg_aac
-<<#>>define HB_PROJECT_FEATURE_flatpak __FEATURE_flatpak
-<<#>>define HB_PROJECT_FEATURE_gtk __FEATURE_gtk
-<<#>>define HB_PROJECT_FEATURE_gtk_mingw __FEATURE_gtk_mingw
-<<#>>define HB_PROJECT_FEATURE_gtk_update_checks __FEATURE_gtk_update_checks
-<<#>>define HB_PROJECT_FEATURE_gst __FEATURE_gst
-<<#>>define HB_PROJECT_FEATURE_nvenc __FEATURE_nvenc
-<<#>>define HB_PROJECT_FEATURE_qsv __FEATURE_qsv
-<<#>>define HB_PROJECT_FEATURE_vce __FEATURE_vce
-<<#>>define HB_PROJECT_FEATURE_x265 __FEATURE_x265
-<<#>>define HB_PROJECT_FEATURE_numa __FEATURE_numa
+<<#>>define HB_PROJECT_FEATURE_ASM __FEATURE_asm
+<<#>>define HB_PROJECT_FEATURE_FDK_AAC __FEATURE_fdk_aac
+<<#>>define HB_PROJECT_FEATURE_FFMPEG_AAC __FEATURE_ffmpeg_aac
+<<#>>define HB_PROJECT_FEATURE_FLATPAK __FEATURE_flatpak
+<<#>>define HB_PROJECT_FEATURE_GTK __FEATURE_gtk
+<<#>>define HB_PROJECT_FEATURE_GTK_MINGW __FEATURE_gtk_mingw
+<<#>>define HB_PROJECT_FEATURE_GTK_UPDATE_CHECKS __FEATURE_gtk_update_checks
+<<#>>define HB_PROJECT_FEATURE_GST __FEATURE_gst
+<<#>>define HB_PROJECT_FEATURE_NVENC __FEATURE_nvenc
+<<#>>define HB_PROJECT_FEATURE_QSV __FEATURE_qsv
+<<#>>define HB_PROJECT_FEATURE_VCE __FEATURE_vce
+<<#>>define HB_PROJECT_FEATURE_X265 __FEATURE_x265
+<<#>>define HB_PROJECT_FEATURE_NUMA __FEATURE_numa
#endif /* HB_PROJECT_PROJECT_H */
case HB_VCODEC_THEORA:
w = hb_get_work(h, WORK_ENCTHEORA);
break;
-#ifdef USE_X265
+#if HB_PROJECT_FEATURE_X265
case HB_VCODEC_X265_8BIT:
case HB_VCODEC_X265_10BIT:
case HB_VCODEC_X265_12BIT: