summaryrefslogtreecommitdiffstats
path: root/libhb/encx264.h
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-03-24 19:26:12 +0000
committerRodeo <[email protected]>2012-03-24 19:26:12 +0000
commitbe4abed142e5d2b9fe2b8801d129de90450fbc2e (patch)
tree6b3522c679a3de4350d56e01466017e258c9219e /libhb/encx264.h
parentc6401fab7c5f1daf36cdb3f99c640477c19bdc01 (diff)
Add hb_apply_h264_level(). Sets and ensures compliance with the specified H.264 level. Does not modify framerate and resolution but prints warnings when they are incompatible with the requested level.
Exposed to CLI users only via the --h264-level option. GUI support may come later, once we decide how to handle x264 presets/tunes/profiles. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4534 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encx264.h')
-rw-r--r--libhb/encx264.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libhb/encx264.h b/libhb/encx264.h
new file mode 100644
index 000000000..f825028eb
--- /dev/null
+++ b/libhb/encx264.h
@@ -0,0 +1,10 @@
+/* This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr/>.
+ It may be used under the terms of the GNU General Public License. */
+
+#include "x264.h"
+
+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 };
+
+void hb_apply_h264_level( x264_param_t * param, const char * level );