summaryrefslogtreecommitdiffstats
path: root/libhb/param.h
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-02-20 18:00:46 -0700
committerJohn Stebbins <[email protected]>2016-03-09 13:10:10 -0700
commita44ccb49f182d4eeb122fbe675b28deb5c36b793 (patch)
tree6cc064cc24dacc2a80d41fb9543640c9004895af /libhb/param.h
parent96c02dd6f256f4a4e74f8962f56502d28e5e65a3 (diff)
filters: make job filter settings an hb_dict_t
This simplifies accessing and changing filter parameters programatically. It also changes the custom filter string format to a ':' separated list of key/value pairs.
Diffstat (limited to 'libhb/param.h')
-rw-r--r--libhb/param.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/libhb/param.h b/libhb/param.h
index 2256441e9..d61fd389c 100644
--- a/libhb/param.h
+++ b/libhb/param.h
@@ -9,8 +9,6 @@
#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
@@ -21,18 +19,24 @@ struct hb_filter_param_s
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);
+hb_dict_t * hb_generate_filter_settings(int filter_id, const char *preset,
+ const char *tune, const char *custom);
+char * hb_generate_filter_settings_json(int filter_id, const char *preset,
+ const char *tune, 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);
+int hb_validate_filter_preset(int filter_id, const char *preset,
+ const char *tune, const char *custom);
+int hb_validate_filter_settings(int filter_id, const hb_dict_t *settings);
+int hb_validate_filter_settings_json(int filter_id, const char * json);
+int hb_validate_filter_string(int filter_id, const char * filter_str);
hb_filter_param_t * hb_filter_param_get_presets(int filter_id);
hb_filter_param_t * hb_filter_param_get_tunes(int filter_id);
+char ** hb_filter_get_keys(int filter_id);
+char ** hb_filter_get_presets_short_name(int filter_id);
+char ** hb_filter_get_presets_name(int filter_id);
+char * hb_filter_get_presets_json(int filter_id);
+char * hb_filter_get_tunes_json(int filter_id);
+
#endif // HB_PARAM_H