summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-12-27 22:49:32 +0000
committerjstebbins <[email protected]>2012-12-27 22:49:32 +0000
commitd21a843f23df368e191925e2665caf4ecf7390b5 (patch)
tree87910495c5fa44e70549415b226b3498b6bf156f /libhb/common.c
parent40373fc63256c3e135e9ca0352d70efe1291e929 (diff)
LinGui: add x264 preset/tune/profile/level support
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5110 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.c')
-rw-r--r--libhb/common.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/libhb/common.c b/libhb/common.c
index a76ce9017..5cf4fc1f5 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -1776,6 +1776,14 @@ static void job_clean( hb_job_t * job )
job->file = NULL;
free(job->advanced_opts);
job->advanced_opts = NULL;
+ free(job->x264_preset);
+ job->x264_preset = NULL;
+ free(job->x264_tune);
+ job->x264_tune = NULL;
+ free(job->x264_profile);
+ job->x264_profile = NULL;
+ free(job->h264_level);
+ job->h264_level = NULL;
// clean up chapter list
while( ( chapter = hb_list_item( job->list_chapter, 0 ) ) )
@@ -1897,6 +1905,38 @@ void hb_job_set_advanced_opts( hb_job_t *job, const char *advanced_opts )
}
}
+void hb_job_set_x264_preset( hb_job_t *job, const char *preset )
+{
+ if ( job )
+ {
+ hb_update_str( &job->x264_preset, preset );
+ }
+}
+
+void hb_job_set_x264_tune( hb_job_t *job, const char *tune )
+{
+ if ( job )
+ {
+ hb_update_str( &job->x264_tune, tune );
+ }
+}
+
+void hb_job_set_x264_profile( hb_job_t *job, const char *profile )
+{
+ if ( job )
+ {
+ hb_update_str( &job->x264_profile, profile );
+ }
+}
+
+void hb_job_set_x264_level( hb_job_t *job, const char *level )
+{
+ if ( job )
+ {
+ hb_update_str( &job->h264_level, level );
+ }
+}
+
hb_filter_object_t * hb_filter_copy( hb_filter_object_t * filter )
{
if( filter == NULL )