diff options
author | Rodeo <[email protected]> | 2013-09-01 09:44:45 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-09-01 09:44:45 +0000 |
commit | 8ddee7c254428171233bead5b9741ebe1ba18940 (patch) | |
tree | 98151f5adac2ec71c9f2c4bf9895dec57f984df9 /libhb/qsv_common.c | |
parent | 8270fcfeb84a2c6c051a24fcceea534b939eee58 (diff) |
QSV: minor cleanup.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5760 b64f7644-9d1e-0410-96f1-a4d463321fa5
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; |