#if HB_PROJECT_FEATURE_NVENC
#include "nvenc_common.h"
#endif
-
-#ifdef USE_VCE
+#if HB_PROJECT_FEATURE_VCE
#include "vce_common.h"
#endif
#endif
switch (encoder){
-#ifdef USE_VCE
+#if HB_PROJECT_FEATURE_VCE
case HB_VCODEC_FFMPEG_VCE_H264:
return hb_vce_h264_available();
case HB_VCODEC_FFMPEG_VCE_H265:
case HB_VCODEC_X265_16BIT:
return hb_h265_profile_names_16bit;
-#ifdef USE_VCE
+#if HB_PROJECT_FEATURE_VCE
case HB_VCODEC_FFMPEG_VCE_H264:
return hb_vce_h264_profile_names;
case HB_VCODEC_FFMPEG_VCE_H265:
case HB_VCODEC_FFMPEG_VT_H264:
return hb_h264_level_names;
-#ifdef USE_VCE
+#if HB_PROJECT_FEATURE_VCE
case HB_VCODEC_FFMPEG_VCE_H264:
return hb_vce_h264_level_names; // Not quite the same as x264
#endif
LIBHB.GCC.D += HAVE_THREADS=1
endif
-ifeq (1,$(FEATURE.vce))
- LIBHB.GCC.D += USE_VCE
-endif
-
ifeq (1,$(COMPAT.strtok_r))
LIBHB.GCC.D += HB_NEED_STRTOK_R
endif
* For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
-#ifdef USE_VCE
+#include "project.h"
+
+#if HB_PROJECT_FEATURE_VCE
#include "AMF/core/Factory.h"
#include "AMF/components/VideoEncoderVCE.h"
#include "AMF/components/VideoEncoderHEVC.h"
return (check_component_available(AMFVideoEncoder_HEVC) == AMF_OK) ? 1 : 0;
}
-#else // !USE_VCE
+#else // !HB_PROJECT_FEATURE_VCE
int hb_vce_h264_available()
{
return 0;
}
-#endif // USE_VCE
+#endif // HB_PROJECT_FEATURE_VCE
w = hb_get_work(h, WORK_ENCX265);
break;
#endif
-#ifdef USE_VCE
+#if HB_PROJECT_FEATURE_VCE
case HB_VCODEC_FFMPEG_VCE_H264:
w = hb_get_work(h, WORK_ENCAVCODEC);
w->codec_param = AV_CODEC_ID_H264;