diff options
author | John Stebbins <[email protected]> | 2016-03-10 14:46:50 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-03-11 14:13:33 -0700 |
commit | fc3a836f30ff50f556c0267efbb41ee84a4b74a8 (patch) | |
tree | 86abe81114fcaa9df2b106b0cd55a634fd6615ba /libhb/param.c | |
parent | c3c076a86e8c3a9b97b1ed352c88365728e3879a (diff) |
qsv: fix build
I missed some of the qsv filter settings bits that needed changing.
Diffstat (limited to 'libhb/param.c')
-rw-r--r-- | libhb/param.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/libhb/param.c b/libhb/param.c index 46bc80f06..e83d919e5 100644 --- a/libhb/param.c +++ b/libhb/param.c @@ -12,6 +12,9 @@ #include "param.h" #include "common.h" #include "colormap.h" +#ifdef USE_QSV +#include "qsv_common.h" +#endif #include <regex.h> static hb_filter_param_t nlmeans_presets[] = @@ -106,10 +109,14 @@ static hb_filter_param_t deinterlace_presets[] = { 3, "Default", "default", "mode=3" }, { 2, "Skip Spatial Check", "skip-spatial", "mode=1" }, { 5, "Bob", "bob", "mode=7" }, +#ifdef USE_QSV + { 6, "QSV", "qsv", "mode=11" }, +#endif { 0, NULL, NULL, NULL }, { 2, "Fast", "fast", "mode=1" }, { 3, "Slow", "slow", "mode=1" }, - { 4, "Slower", "slower", "mode=3" } + { 4, "Slower", "slower", "mode=3" }, + { 7, "QSV", "qsv", "mode=3" } }; typedef struct @@ -143,6 +150,16 @@ static filter_param_map_t param_map[] = { HB_FILTER_INVALID, NULL, NULL, 0 } }; +void hb_param_configure_qsv(void) +{ +#ifdef USE_QSV + if (!hb_qsv_available()) + { + memset(&deinterlace_presets[4], 0, sizeof(hb_filter_param_t)); + } +#endif +} + /* NL-means presets and tunes * * Presets adjust strength: |