diff options
author | Rodeo <[email protected]> | 2013-09-24 13:22:19 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2013-09-24 13:22:19 +0000 |
commit | 7be1890d2c89b31e4ef93bd92a8bb07040f082bd (patch) | |
tree | 5565c397317725df8f4c38f5c20128eaed87a8eb /libhb/qsv_common.h | |
parent | a79d60b425e588a5e2e4aff35815b8396c909895 (diff) |
QSV: libhb-based preset system.
Modeled after x264's preset system.
MMBRC and LookAhead RC are now enabled by default, whereas Trellis is disabled by default.
Please note that Windows GUI support will come later, and that preset names are not definitive.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5806 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/qsv_common.h')
-rw-r--r-- | libhb/qsv_common.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libhb/qsv_common.h b/libhb/qsv_common.h index 796d791b5..083065be6 100644 --- a/libhb/qsv_common.h +++ b/libhb/qsv_common.h @@ -106,6 +106,9 @@ typedef struct mfxVideoParam *videoParam; } hb_qsv_param_t; +static const char* const hb_qsv_preset_names1[] = { "speed", "balanced", NULL, }; +static const char* const hb_qsv_preset_names2[] = { "speed", "balanced", "quality", NULL, }; + #define HB_QSV_CLIP3(min, max, val) ((val < min) ? min : (val > max) ? max : val) int hb_qsv_codingoption_xlat (int val); const char* hb_qsv_codingoption_get_name(int val); @@ -116,8 +119,9 @@ int hb_qsv_atobool (const char *str, int *err); int hb_qsv_atoi (const char *str, int *err); float hb_qsv_atof (const char *str, int *err); -int hb_qsv_param_default(hb_qsv_param_t *param, mfxVideoParam *videoParam); -int hb_qsv_param_parse (hb_qsv_param_t *param, const char *key, const char *value, int vcodec); +int hb_qsv_param_default_preset(hb_qsv_param_t *param, mfxVideoParam *videoParam, const char *preset); +int hb_qsv_param_default (hb_qsv_param_t *param, mfxVideoParam *videoParam); +int hb_qsv_param_parse (hb_qsv_param_t *param, const char *key, const char *value, int vcodec); mfxIMPL hb_qsv_impl_get_preferred(); const char* hb_qsv_impl_get_name(int impl); |