diff options
author | jstebbins <[email protected]> | 2014-12-16 16:50:50 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-12-16 16:50:50 +0000 |
commit | f56efd7b52c89da8cac55b4d4a187f2c87fdfee6 (patch) | |
tree | 24eacb856704fa8e4b8b8f0edc76568916f70255 /libhb/hb.h | |
parent | d0a975e42dcab93e1d2eead350fb1ba3951d977c (diff) |
json: add json APIs
There are several changes to job and title structs that break
current windows interop code. The interop code should be changed
such that it only uses json APIs. So if there is any missing
features (or bugs) in these APIs, please let me know.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6602 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.h')
-rw-r--r-- | libhb/hb.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libhb/hb.h b/libhb/hb.h index 2d32e1aef..dfbcc25a0 100644 --- a/libhb/hb.h +++ b/libhb/hb.h @@ -17,6 +17,7 @@ extern "C" { #include "project.h" #include "common.h" #include "hb_dict.h" +#include "hb_json.h" /* hb_init() Initializes a libhb session (launches his own thread, detects CPUs, @@ -70,17 +71,11 @@ int hb_save_preview( hb_handle_t * h, int title, int preview, hb_buffer_t *buf ); hb_buffer_t * hb_read_preview( hb_handle_t * h, hb_title_t *title, int preview ); -void hb_get_preview( hb_handle_t *, hb_job_t *, int, - uint8_t * ); hb_image_t * hb_get_preview2(hb_handle_t * h, int title_idx, int picture, - hb_ui_geometry_t *ui_geo, int deinterlace); + hb_geometry_settings_t *geo, int deinterlace); void hb_set_anamorphic_size2(hb_geometry_t *src_geo, - hb_ui_geometry_t *ui_geo, + hb_geometry_settings_t *geo, hb_geometry_t *result); -void hb_set_anamorphic_size( hb_job_t *, - int *output_width, int *output_height, - int *output_par_width, int *output_par_height ); -void hb_validate_size( hb_job_t * job ); void hb_add_filter( hb_job_t * job, hb_filter_object_t * filter, const char * settings ); @@ -111,8 +106,7 @@ typedef struct hb_interjob_s int frame_count; /* number of frames counted by sync */ int out_frame_count; /* number of frames counted by render */ uint64_t total_time; /* real length in 90kHz ticks (i.e. seconds / 90000) */ - int vrate; /* actual measured output vrate from 1st pass */ - int vrate_base; /* actual measured output vrate_base from 1st pass */ + hb_rational_t vrate; /* actual measured output vrate from 1st pass */ hb_subtitle_t *select_subtitle; /* foreign language scan subtitle */ } hb_interjob_t; |