// x264 option name/synonym helper
const char * hb_x264_encopt_name( const char * name );
-void hb_prevent_sleep( hb_handle_t * );
-void hb_allow_sleep( hb_handle_t * );
-
#endif
hb_lock( h->state_lock );
h->state.state = HB_STATE_PAUSED;
hb_unlock( h->state_lock );
-
- hb_allow_sleep( h );
}
}
{
if( h->paused )
{
- hb_prevent_sleep( h );
-
#define job hb_current_job( h )
if( job->st_pause_date != -1 )
{
void hb_resume( hb_handle_t * );
void hb_stop( hb_handle_t * );
+void hb_prevent_sleep( hb_handle_t * );
+void hb_allow_sleep( hb_handle_t * );
+
/* Persistent data between jobs. */
typedef struct hb_interjob_s
{
typedef struct
{
- hb_handle_t * handle;
- hb_list_t * jobs;
- hb_job_t ** current_job;
- int * error;
+ hb_list_t * jobs;
+ hb_job_t ** current_job;
+ int * error;
volatile int * die;
} hb_work_t;
{
hb_work_t * work = calloc( sizeof( hb_work_t ), 1 );
- work->jobs = jobs;
+ work->jobs = jobs;
work->current_job = job;
- work->die = die;
- work->error = error;
+ work->die = die;
+ work->error = error;
return hb_thread_init( "work", work_func, work, HB_LOW_PRIORITY );
}