X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=gtk%2Fsrc%2Fhb-backend.h;h=057bea693689de0f25b4ab7fd02ec6b7b662b659;hb=2cea0d49ba2d6aa6ba96d575b47d2d313515be11;hp=baeded20e9643fed5ef05f5f594a052f946925ab;hpb=7d4f3c93ea6ce9de22cf4187b03bb9432e51726c;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/gtk/src/hb-backend.h b/gtk/src/hb-backend.h index baeded20..057bea69 100644 --- a/gtk/src/hb-backend.h +++ b/gtk/src/hb-backend.h @@ -26,10 +26,9 @@ enum GHB_ERROR_FAIL, }; -typedef struct ghb_status_s +typedef struct { gint state; - gint queue_state; // SCANNING gint title_count; @@ -46,6 +45,12 @@ typedef struct ghb_status_s gint minutes; gint seconds; gint error; +} ghb_instance_status_t; + +typedef struct +{ + ghb_instance_status_t scan; + ghb_instance_status_t queue; } ghb_status_t; #define GHB_SCALE_KEEP_NONE 0 @@ -88,7 +93,8 @@ void ghb_vquality_range( gdouble *page, gint *digits); //const gchar* ghb_get_rate_string(gint rate, gint type); -void ghb_backend_init(GtkBuilder *builder, gint debug, gint update); +void ghb_combo_init(GtkBuilder *builder); +void ghb_backend_init(gint debug); void ghb_backend_close(void); void ghb_add_job(GValue *js, gint unique_id); void ghb_remove_job(gint unique_id); @@ -96,15 +102,19 @@ void ghb_start_queue(void); void ghb_stop_queue(void); void ghb_pause_queue(void); -gint ghb_get_state(void); -void ghb_clear_state(gint state); +void ghb_add_live_job(GValue *js, gint unique_id); +void ghb_start_live_encode(); +void ghb_stop_live_encode(); + +void ghb_clear_scan_state(gint state); void ghb_clear_queue_state(gint state); void ghb_set_state(gint state); +gint ghb_get_scan_state(); gint ghb_get_queue_state(); void ghb_get_status(ghb_status_t *status); void ghb_track_status(void); -void ghb_backend_scan(const gchar *path, gint titleindex); +void ghb_backend_scan(const gchar *path, gint titleindex, gint preview_count); void ghb_backend_queue_scan(const gchar *path, gint titleindex); gboolean ghb_get_title_info(ghb_title_info_t *tinfo, gint titleindex); void ghb_set_scale(signal_user_data_t *ud, gint mode); @@ -124,12 +134,12 @@ gint ghb_find_audio_track(gint titleindex, const gchar *lang, gint index); gint ghb_longest_title(void); gchar* ghb_build_x264opts_string(GValue *settings); GdkPixbuf* ghb_get_preview_image( - gint titleindex, gint index, GValue *settings, gboolean borders); + gint titleindex, gint index, signal_user_data_t *ud, + gboolean borders, gint *width, gint *height); gint ghb_calculate_target_bitrate(GValue *settings, gint titleindex); gchar* ghb_dvd_volname(const gchar *device); gint ghb_get_title_number(gint titleindex); -gboolean ghb_validate_container(signal_user_data_t *ud); gboolean ghb_validate_vquality(GValue *settings); gboolean ghb_validate_audio(signal_user_data_t *ud); gboolean ghb_validate_video(signal_user_data_t *ud); @@ -138,5 +148,6 @@ gboolean ghb_validate_filter_string(const gchar *str, gint max_fields); void ghb_hb_cleanup(gboolean partial); gint ghb_lookup_combo_int(const gchar *name, const GValue *acodec); const gchar* ghb_lookup_combo_option(const gchar *name, const GValue *acodec); +gchar* ghb_get_tmp_dir(); #endif // _HBBACKEND_H_