diff options
-rw-r--r-- | libhb/common.c | 8 | ||||
-rw-r--r-- | libhb/common.h | 3 | ||||
-rw-r--r-- | libhb/encx265.c | 5 | ||||
-rw-r--r-- | libhb/hb.c | 2 | ||||
-rw-r--r-- | libhb/hb_dict.c | 2 | ||||
-rw-r--r-- | libhb/module.defs | 4 | ||||
-rw-r--r-- | libhb/project.h.m4 | 26 | ||||
-rw-r--r-- | libhb/work.c | 2 |
8 files changed, 26 insertions, 26 deletions
diff --git a/libhb/common.c b/libhb/common.c index fa19a9435..5efb9fee2 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -23,7 +23,7 @@ #include "qsv_common.h" #endif -#ifdef USE_X265 +#if HB_PROJECT_FEATURE_X265 #include "x265.h" #endif @@ -318,7 +318,7 @@ static int hb_video_encoder_is_enabled(int encoder, int disable_hardware) 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: @@ -1480,7 +1480,7 @@ const char* const* hb_video_encoder_get_presets(int encoder) 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: @@ -1500,7 +1500,7 @@ const char* const* hb_video_encoder_get_tunes(int encoder) 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: diff --git a/libhb/common.h b/libhb/common.h index 14a16f620..cb307e079 100644 --- a/libhb/common.h +++ b/libhb/common.h @@ -10,6 +10,7 @@ #ifndef HB_COMMON_H #define HB_COMMON_H +#include "project.h" #include "hbtypes.h" #include "hb_dict.h" #include <math.h> @@ -1432,7 +1433,7 @@ char * hb_x264_param_unparse(int bit_depth, const char *x264_preset, // 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 diff --git a/libhb/encx265.c b/libhb/encx265.c index 5e6600819..30bde6565 100644 --- a/libhb/encx265.c +++ b/libhb/encx265.c @@ -6,7 +6,10 @@ 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" diff --git a/libhb/hb.c b/libhb/hb.c index 2032a42ee..ba40d9c37 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -1703,7 +1703,7 @@ int hb_global_init() 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 diff --git a/libhb/hb_dict.c b/libhb/hb_dict.c index 2f26f1426..2894c62ac 100644 --- a/libhb/hb_dict.c +++ b/libhb/hb_dict.c @@ -826,7 +826,7 @@ hb_dict_t * hb_encopts_to_dict(const char * encopts, int encoder) // 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); diff --git a/libhb/module.defs b/libhb/module.defs index a97b59d94..9e3f3dad4 100644 --- a/libhb/module.defs +++ b/libhb/module.defs @@ -91,10 +91,6 @@ ifeq (1,$(FEATURE.nvenc)) 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 diff --git a/libhb/project.h.m4 b/libhb/project.h.m4 index 8558890e1..ff727e006 100644 --- a/libhb/project.h.m4 +++ b/libhb/project.h.m4 @@ -39,18 +39,18 @@ dnl <<#>>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 */ diff --git a/libhb/work.c b/libhb/work.c index 76fef1bf3..4d7ceba42 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -256,7 +256,7 @@ hb_work_object_t* hb_video_encoder(hb_handle_t *h, int vcodec) 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: |