summaryrefslogtreecommitdiffstats
path: root/libhb/handbrake/hb_json.h
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/handbrake/hb_json.h')
-rw-r--r--libhb/handbrake/hb_json.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/libhb/handbrake/hb_json.h b/libhb/handbrake/hb_json.h
new file mode 100644
index 000000000..aac3223f7
--- /dev/null
+++ b/libhb/handbrake/hb_json.h
@@ -0,0 +1,46 @@
+/* hb_json.h
+
+ Copyright (c) 2003-2019 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_JSON_H
+#define HB_JSON_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "handbrake/common.h"
+
+hb_dict_t * hb_state_to_dict( hb_state_t * state);
+hb_dict_t * hb_job_to_dict( const hb_job_t * job );
+hb_dict_t * hb_title_to_dict( hb_handle_t *h, int title_index );
+hb_dict_t * hb_title_set_to_dict( const hb_title_set_t * title_set );
+
+char * hb_get_title_set_json(hb_handle_t * h);
+char * hb_title_to_json( hb_handle_t *h, int title_index );
+char * hb_job_init_json(hb_handle_t *h, int title_index);
+char * hb_preset_job_init_json(hb_handle_t *h, int title_index,
+ const char *json_preset);
+hb_job_t * hb_dict_to_job( hb_handle_t * h, hb_dict_t *dict );
+char * hb_job_to_json(const hb_job_t * job);
+hb_job_t * hb_json_to_job(hb_handle_t * h, const char * json_job);
+int hb_add_json(hb_handle_t *h, const char * json_job);
+char * hb_set_anamorphic_size_json(const char * json_param);
+char * hb_get_state_json(hb_handle_t * h);
+hb_image_t * hb_json_to_image(char *json_image);
+char * hb_get_preview_params_json(int title_idx, int preview_idx,
+ int deinterlace, hb_geometry_settings_t *settings);
+char * hb_get_preview_json(hb_handle_t * h, const char *json_param);
+void hb_json_job_scan( hb_handle_t * h, const char * json_job );
+hb_dict_t * hb_version_dict(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HB_JSON_H