summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/common.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 3f5f15540..51acaca5f 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -512,6 +512,8 @@ struct hb_job_s
#define HB_VCODEC_FFMPEG_H265_NVENC 0x00000080
#define HB_VCODEC_FFMPEG_H264_VAAPI 0x00000090
#define HB_VCODEC_FFMPEG_H265_VAAPI 0x000000A0
+#define HB_VCODEC_FFMPEG_VP8_VAAPI 0x000000B0
+#define HB_VCODEC_FFMPEG_VP9_VAAPI 0x000000C0
#define HB_VCODEC_FFMPEG_MASK 0x000000F0
#define HB_VCODEC_QSV_H264 0x00001000
#define HB_VCODEC_QSV_H265_8BIT 0x00002000
@@ -523,14 +525,16 @@ struct hb_job_s
#define HB_VCODEC_X264 HB_VCODEC_X264_8BIT
#define HB_VCODEC_X264_10BIT 0x00020000
#define HB_VCODEC_X264_MASK 0x00030000
-#define HB_VCODEC_H264_MASK (HB_VCODEC_X264_MASK|HB_VCODEC_QSV_H264|HV_VCODEC_FFMPEG_H264_NVENC|HB_VCODEC_FFMPEG_H264_VAAPI)
#define HB_VCODEC_X265_8BIT 0x00040000
#define HB_VCODEC_X265 HB_VCODEC_X265_8BIT
#define HB_VCODEC_X265_10BIT 0x00080000
#define HB_VCODEC_X265_12BIT 0x000C0000
#define HB_VCODEC_X265_16BIT 0x00100000
#define HB_VCODEC_X265_MASK 0x001C0000
-#define HB_VCODEC_H265_MASK (HB_VCODEC_X265_MASK|HB_VCODEC_QSV_H265_MASK|HB_VCODEC_FFMPEG_H265_NVENC|HB_VCODEC_FFMPEG_H265_VAAPI)
+
+#define HB_VCODEC_IS_H264(a) (0!=((a)&HB_VCODEC_X264_MASK)||(a)==HB_VCODEC_QSV_H264||(a)==HV_VCODEC_FFMPEG_H264_NVENC||(a)==HB_VCODEC_FFMPEG_H264_VAAPI)
+#define HB_VCODEC_IS_H265(a) (0!=((a)&HB_VCODEC_X265_MASK)||0!=((a)&HB_VCODEC_X265_MASK)||(a)==HV_VCODEC_FFMPEG_H265_NVENC||(a)==HB_VCODEC_FFMPEG_H265_VAAPI)
+#define HB_VCODEC_IS_VAAPI(a) ((a)==HB_VCODEC_FFMPEG_H264_VAAPI||(a)==HB_VCODEC_FFMPEG_H265_VAAPI||(a)==HB_VCODEC_FFMPEG_VP8_VAAPI||(a)==HB_VCODEC_FFMPEG_VP9_VAAPI)
/* define an invalid CQ value compatible with all CQ-capable codecs */
#define HB_INVALID_VIDEO_QUALITY (-1000.)