From 69f6bca6694d93d05a69bad93a748cf31d52c28f Mon Sep 17 00:00:00 2001 From: jbrjake Date: Sun, 30 Nov 2008 04:00:11 +0000 Subject: Adds two new parameters to hb_scan, to control the number of preview frames generated during scan, and whether or not they're written to disk for later display. This will break any interfaces that use hb_scan until the new params are specified...sorry. Also adds a new job->seek_points setting (set this to the same as the number of previews) to be used with job->start_at_preview when doing live preview encodes, so the seek function has a frame of reference. Wires up the CLI with a --previews option (long option only) to control the new scan parameters, and defaults the CLI to not writing previews to disk. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1970 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libhb/internal.h') diff --git a/libhb/internal.h b/libhb/internal.h index cc888b121..d21a281e0 100644 --- a/libhb/internal.h +++ b/libhb/internal.h @@ -132,7 +132,8 @@ static inline void hb_buffer_swap_copy( hb_buffer_t *src, hb_buffer_t *dst ) **********************************************************************/ hb_thread_t * hb_update_init( int * build, char * version ); hb_thread_t * hb_scan_init( hb_handle_t *, const char * path, - int title_index, hb_list_t * list_title ); + int title_index, hb_list_t * list_title, + int preview_count, int store_previews ); hb_thread_t * hb_work_init( hb_list_t * jobs, int cpu_count, volatile int * die, int * error, hb_job_t ** job ); hb_thread_t * hb_reader_init( hb_job_t * ); -- cgit v1.2.3