diff options
author | jstebbins <[email protected]> | 2015-05-27 17:14:42 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-05-27 17:14:42 +0000 |
commit | f127b802bec8ca3394b155f15fde5519d04f4897 (patch) | |
tree | 77e9ea4dfafb8bac3a23ce01b0941fa74b04beeb /libhb/preset.h | |
parent | 0863f72ab94e5ad4bb7652a5cbc6d2e7dc194420 (diff) |
LinGui: use libhb to initialize job...
...and set some job settings as values change in the UI. This
eliminates a large chunk of job setup code.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7230 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/preset.h')
-rw-r--r-- | libhb/preset.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libhb/preset.h b/libhb/preset.h index a24b45cf2..d9ca23394 100644 --- a/libhb/preset.h +++ b/libhb/preset.h @@ -114,6 +114,23 @@ hb_value_t * hb_presets_get(void); // Get list of all presets registered with libhb as json string char * hb_presets_get_json(void); +// Apply preset Muxer settings to a job +int hb_preset_apply_mux(const hb_dict_t *preset, hb_dict_t *job_dict); + +// Apply preset Video settings to a job +int hb_preset_apply_video(const hb_dict_t *preset, hb_dict_t *job_dict); + +// Apply preset Filter settings to a job +// +// Note that this does not apply scale filter settings. A title is +// required to set the default scale filter settings, so this filter +// is applied in hb_preset_apply_title() +int hb_preset_apply_filters(const hb_dict_t *preset, hb_dict_t *job_dict); + +// Apply preset settings that require a title to a job +int hb_preset_apply_title(hb_handle_t *h, int title_index, + const hb_dict_t *preset, hb_dict_t *job_dict); + // Initialize a job from the given title and preset hb_dict_t * hb_preset_job_init(hb_handle_t *h, int title_index, const hb_dict_t *preset); |