summaryrefslogtreecommitdiffstats
path: root/libhb/encx264.h
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-09-09 00:55:59 +0000
committerRodeo <[email protected]>2012-09-09 00:55:59 +0000
commit595c8164011910b67fe5bc4719dec7dc100d2623 (patch)
treeba903d58463d215bde4051c24c6bec76f8d64414 /libhb/encx264.h
parentcfe9bebf28ddcadcfa095400b74a531a9f1faa65 (diff)
hb_apply_h264_level() update & cleanup.
The caller may specify any width & height now, rather than having to initialize the x264_param_t's fields directly. Since it's reasonable to expect GUIs to only provide valid levels (if it doesn't, there's a bug that needs fixing), it's OK to abort when the requested level is not valid. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4944 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encx264.h')
-rw-r--r--libhb/encx264.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/encx264.h b/libhb/encx264.h
index 0c1800d13..369cc5377 100644
--- a/libhb/encx264.h
+++ b/libhb/encx264.h
@@ -40,4 +40,7 @@ static const char * const x264_encopt_synonyms[] =
0
};
-void hb_apply_h264_level( x264_param_t * param, const char * level, const char * x264_profile );
+int hb_apply_h264_level(x264_param_t *param,
+ int width, int height,
+ const char *h264_level,
+ const char *x264_profile);