diff options
author | jstebbins <[email protected]> | 2015-04-04 14:43:39 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2015-04-04 14:43:39 +0000 |
commit | 5a24d1b2f7b9414e76ceaa4b23eb3661ac8ce828 (patch) | |
tree | 9377cd2397c2f2e3ec3c930f5e31a34011d67c24 /libhb/param.h | |
parent | 1c89b21c037157fbaeefc1b7ee0da1b9ae6cd5f8 (diff) |
libhb: Add filter preset/tune lookup and setting validation for more filter types
All filters except for crop_scale now have preset/tune support and basic
validation.
This code could also be used by the other frontends to simplify some things.
For example, it can be used to query libhb for a list of available presets
and tunes for each filter.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7050 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/param.h')
-rw-r--r-- | libhb/param.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libhb/param.h b/libhb/param.h new file mode 100644 index 000000000..733c2b30b --- /dev/null +++ b/libhb/param.h @@ -0,0 +1,38 @@ +/* param.h + + Copyright (c) 2003-2015 HandBrake Team + 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 v2. + For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html + */ +#ifndef HB_PARAM_H +#define HB_PARAM_H + +extern const char hb_filter_off[]; + +typedef struct hb_filter_param_s hb_filter_param_t; + +struct hb_filter_param_s +{ + int index; + const char *name; + const char *short_name; + const char *settings; +}; + +char * hb_generate_filter_settings(int filter_id, + const char *preset, const char *tune); +char * hb_generate_filter_settings_by_index(int filter_id, int preset, + const char *custom); + +int hb_validate_filter_preset(int filter_id, + const char *preset, const char *tune); +int hb_validate_filter_settings(int filter_id, const char *filter_param); +int hb_validate_param_string(const char *regex_pattern, + const char *param_string); + +hb_filter_param_t * hb_filter_param_get_presets(int filter_id); +hb_filter_param_t * hb_filter_param_get_tunes(int filter_id); + +#endif // HB_PARAM_H |