summaryrefslogtreecommitdiffstats
path: root/libhb/qsv_common.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2014-01-12 23:30:19 +0000
committerRodeo <[email protected]>2014-01-12 23:30:19 +0000
commit17917becc0cbf9ed402e9071935ae32b1d78fef7 (patch)
tree8a3ea65a7c681c4e62c6356f6e19a5b824b706d8 /libhb/qsv_common.c
parentd4fdf932d85c988bae5a9046730a98f71c2364a5 (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/qsv_common.c')
-rw-r--r--libhb/qsv_common.c5
1 files changed, 5 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;