summaryrefslogtreecommitdiffstats
path: root/libhb/hb.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-07-29 18:40:38 +0000
committerjstebbins <[email protected]>2014-07-29 18:40:38 +0000
commit6942656aeac26e63e87d8c1772ccec3e64b437e1 (patch)
treee82d337589c6bcfafe17963337f99ad6d41ec890 /libhb/hb.h
parent56680a9b967772ca6eb9112ac6f2a9e9bbe7244b (diff)
libhb: add new function for retrieving previews
This new function has a couple advantages over the old one (which we should phase out). It does not require hb_job_t as a parameter, instead it uses hb_ui_geometry_t which is a smaller and simpler struct. The entire job struct is overkill as input to this function. It returns an hb_image_t that fully describes the returned image instead of just a uint8_t array. The caller does not have to make assumptions about image size, line stide, or pixel format since hb_image_t specifies these things. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6242 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.h')
-rw-r--r--libhb/hb.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/libhb/hb.h b/libhb/hb.h
index cad630650..2d32e1aef 100644
--- a/libhb/hb.h
+++ b/libhb/hb.h
@@ -68,9 +68,12 @@ int hb_detect_comb( hb_buffer_t * buf, int color_equal, int color_diff, int thre
// JJJ: title->job?
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, int title_idx, int preview );
+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);
void hb_set_anamorphic_size2(hb_geometry_t *src_geo,
hb_ui_geometry_t *ui_geo,
hb_geometry_t *result);
@@ -83,12 +86,13 @@ void hb_add_filter( hb_job_t * job, hb_filter_object_t * filter,
/* Handling jobs */
int hb_count( hb_handle_t * );
-hb_job_t * hb_job( hb_handle_t *, int );
+hb_job_t * hb_job( hb_handle_t *, int );
void hb_add( hb_handle_t *, hb_job_t * );
void hb_rem( hb_handle_t *, hb_job_t * );
-hb_job_t * hb_job_init_by_index( hb_handle_t *h, int title_index );
-hb_job_t * hb_job_init( hb_title_t * title );
+hb_title_t * hb_find_title_by_index( hb_handle_t *h, int title_index );
+hb_job_t * hb_job_init_by_index( hb_handle_t *h, int title_index );
+hb_job_t * hb_job_init( hb_title_t * title );
void hb_job_reset( hb_job_t * job );
void hb_job_close( hb_job_t ** job );