summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorMichael Wootton <[email protected]>2018-01-23 17:01:03 -0600
committerBradley Sepos <[email protected]>2018-06-06 14:39:28 -0400
commit4456e3390ce40d9cff98efc8afd888e4d52a60d5 (patch)
tree42914010d2b36322bd84bafb5d5feeff8356c4dd /libhb/work.c
parentacdc27993093f6acd5f47c0f79cc9e4209a9d8e9 (diff)
Add support for VCE hardware encoding.
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c
index c2eeb34e6..19d78b2e4 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -243,6 +243,14 @@ hb_work_object_t* hb_video_encoder(hb_handle_t *h, int vcodec)
w = hb_get_work(h, WORK_ENCX265);
break;
#endif
+ case HB_VCODEC_FFMPEG_VCE_H264:
+ w = hb_get_work(h, WORK_ENCAVCODEC);
+ w->codec_param = AV_CODEC_ID_H264;
+ break;
+ case HB_VCODEC_FFMPEG_VCE_H265:
+ w = hb_get_work(h, WORK_ENCAVCODEC);
+ w->codec_param = AV_CODEC_ID_HEVC;
+ break;
default:
hb_error("Unknown video codec (0x%x)", vcodec );
}
@@ -474,6 +482,8 @@ void hb_display_job_info(hb_job_t *job)
case HB_VCODEC_QSV_H264:
case HB_VCODEC_QSV_H265:
case HB_VCODEC_QSV_H265_10BIT:
+ case HB_VCODEC_FFMPEG_VCE_H264:
+ case HB_VCODEC_FFMPEG_VCE_H265:
hb_log(" + profile: %s", job->encoder_profile);
default:
break;
@@ -488,6 +498,8 @@ void hb_display_job_info(hb_job_t *job)
case HB_VCODEC_QSV_H264:
case HB_VCODEC_QSV_H265:
case HB_VCODEC_QSV_H265_10BIT:
+ case HB_VCODEC_FFMPEG_VCE_H264:
+ case HB_VCODEC_FFMPEG_VCE_H265:
hb_log(" + level: %s", job->encoder_level);
default:
break;