diff options
Diffstat (limited to 'libhb/qsv_common.c')
-rw-r--r-- | libhb/qsv_common.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index 9d06ce3ec..210a91388 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -227,6 +227,23 @@ int hb_qsv_trellisvalue_xlat(int val) } } +const char* hb_qsv_codingoption_get_name(int val) +{ + switch (val) + { + case MFX_CODINGOPTION_ON: + return "on"; + case MFX_CODINGOPTION_OFF: + return "off"; + case MFX_CODINGOPTION_ADAPTIVE: + return "adaptive"; + case MFX_CODINGOPTION_UNKNOWN: + return "unknown (auto)"; + default: + return NULL; + } +} + int hb_qsv_atoindex(const char* const *arr, const char *str, int *err) { int i; |