diff options
author | Rodeo <tdskywalker@gmail.com> | 2012-03-29 13:31:33 +0000 |
---|---|---|
committer | Rodeo <tdskywalker@gmail.com> | 2012-03-29 13:31:33 +0000 |
commit | a0fd4604194e63f5219b1da61afcd19d4bdcfc9f (patch) | |
tree | d7de3205ae96abb67f906525abcb8676bec750ba /libhb/encx264.h | |
parent | 5cfc8521de5547646afd47b46c8565dac351c50d (diff) |
encx264: add functionality to retrieve the "preferred" option name for options that have multiple names.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4554 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encx264.h')
-rw-r--r-- | libhb/encx264.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libhb/encx264.h b/libhb/encx264.h index 263e18890..aacce0788 100644 --- a/libhb/encx264.h +++ b/libhb/encx264.h @@ -7,4 +7,31 @@ static const char * const h264_level_names[] = { "1.0", "1b", "1.1", "1.2", "1.3", "2.0", "2.1", "2.2", "3.0", "3.1", "3.2", "4.0", "4.1", "4.2", "5.0", "5.1", 0 }; static const int const h264_level_values[] = { 10, 9, 11, 12, 13, 20, 21, 22, 30, 31, 32, 40, 41, 42, 50, 51, 0 }; +/* x264 preferred option names (left) and synonyms (right). + * The "preferred" names match names used in x264's param2string function more + * closely than their corresponding synonyms, or are just shorter. */ +static const char * const x264_encopt_synonyms[] = +{ + "deterministic", "n-deterministic", + "level", "level-idc", + "ref", "frameref", + "keyint-min", "min-keyint", + "deblock", "filter", + "analyse", "partitions", + "weightb", "weight-b", + "direct", "direct-pred", + "merange", "me-range", + "mvrange", "mv-range", + "mvrange-thread", "mv-range-thread", + "subme", "subq", + "qp", "qp_constant", + "qpmin", "qp-min", + "qpmax", "qp-max", + "qpstep", "qp-step", + "ipratio", "ip-factor", + "pbratio", "pb-factor", + "cplxblur", "cplx-blur", + 0 +}; + void hb_apply_h264_level( x264_param_t * param, const char * level, const char * x264_profile ); |