diff options
author | Rodeo <[email protected]> | 2014-01-12 23:30:19 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2014-01-12 23:30:19 +0000 |
commit | 17917becc0cbf9ed402e9071935ae32b1d78fef7 (patch) | |
tree | 8a3ea65a7c681c4e62c6356f6e19a5b824b706d8 /libhb | |
parent | d4fdf932d85c988bae5a9046730a98f71c2364a5 (diff) |
QSV: add an option to select the preferred implementation at runtime.
This is intended for developers only; having to rebuild just to compare software to hardware is annoying as hell.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5964 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/qsv_common.c | 5 | ||||
-rw-r--r-- | libhb/qsv_common.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index 195845200..322fabde3 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -1015,6 +1015,11 @@ uint8_t hb_qsv_frametype_xlat(uint16_t qsv_frametype, uint16_t *out_flags) return frametype; } +void hb_qsv_impl_set_preferred(int impl) +{ + preferred_implementation = impl; +} + mfxIMPL hb_qsv_impl_get_preferred() { return preferred_implementation; diff --git a/libhb/qsv_common.h b/libhb/qsv_common.h index c79cd2aa1..8803c06ba 100644 --- a/libhb/qsv_common.h +++ b/libhb/qsv_common.h @@ -131,6 +131,7 @@ int hb_qsv_param_parse (hb_qsv_param_t *param, const char *key, const ch const char* hb_qsv_frametype_name(uint16_t qsv_frametype); uint8_t hb_qsv_frametype_xlat(uint16_t qsv_frametype, uint16_t *out_flags); +void hb_qsv_impl_set_preferred(int impl); mfxIMPL hb_qsv_impl_get_preferred(); const char* hb_qsv_impl_get_name(int impl); |