diff options
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libhb/work.c b/libhb/work.c index 6b2452d19..7d43ce4c5 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -1125,6 +1125,7 @@ static int sanitize_audio(hb_job_t *job) static int sanitize_qsv( hb_job_t * job ) { #ifdef USE_QSV +#if 0 // TODO: re-implement QSV VPP filtering and QSV zerocopy path int i; /* @@ -1178,10 +1179,10 @@ static int sanitize_qsv( hb_job_t * job ) } /* - * When QSV is used for decoding, not all CPU-based filters are supported, - * so we need to do a little extra setup here. + * When QSV's VPP is used for filtering, not all CPU filters + * are supported, so we need to do a little extra setup here. */ - if (hb_qsv_decode_is_enabled(job)) + if (job->vcodec & HB_VCODEC_QSV_MASK) { int vpp_settings[7]; int num_cpu_filters = 0; @@ -1292,7 +1293,8 @@ static int sanitize_qsv( hb_job_t * job ) } } } -#endif +#endif // QSV VPP filtering and QSV zerocopy path +#endif // USE_QSV return 0; } @@ -1482,7 +1484,8 @@ static void do_job(hb_job_t *job) job->vrate.num, job->vrate.den); #ifdef USE_QSV - if (hb_qsv_decode_is_enabled(job)) +#if 0 // TODO: re-implement QSV zerocopy path + if (hb_qsv_decode_is_enabled(job) && (job->vcodec & HB_VCODEC_QSV_MASK)) { job->fifo_mpeg2 = hb_fifo_init( FIFO_MINI, FIFO_MINI_WAKE ); job->fifo_raw = hb_fifo_init( FIFO_MINI, FIFO_MINI_WAKE ); @@ -1495,6 +1498,7 @@ static void do_job(hb_job_t *job) } } else +#endif // QSV zerocopy path #endif { job->fifo_mpeg2 = hb_fifo_init( FIFO_SMALL, FIFO_SMALL_WAKE ); |