diff options
author | jstebbins <[email protected]> | 2008-09-02 22:56:19 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-02 22:56:19 +0000 |
commit | 45cabbfe4ab8b95b5f25a236f8c93b64d3ccf8df (patch) | |
tree | 40326771d4a7f4721363e3b76ebfca5329595deb /gtk/src/hb-backend.h | |
parent | fd744170cb1da2675e1168402866f5c20f08a726 (diff) |
LinGui: Presets and preferences are now stored as plists
This will also make saving/restoring the queue much easier.
It's a scary big change. 1400 new lines of code. Due to efficiencies
of a better desing, 2400 lines of old code also gets refactored
down to 1600. Giving a final net +600 lines.
Along the way, I stumbled across a couple bugs and fixed them.
Chapter list entry would get wedged under certain circumstances.
Pausing encoding didn't display pause message in status bar.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1662 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.h')
-rw-r--r-- | gtk/src/hb-backend.h | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/gtk/src/hb-backend.h b/gtk/src/hb-backend.h index eaf4e4c56..3e171f1cf 100644 --- a/gtk/src/hb-backend.h +++ b/gtk/src/hb-backend.h @@ -78,53 +78,58 @@ typedef struct #define GHB_AUDIO_BITRATE 2 #define GHB_FRAMERATE 3 -const gchar* ghb_version(); +const gchar* ghb_version(void); void ghb_vquality_range(signal_user_data_t *ud, gint *min, gint *max); //const gchar* ghb_get_rate_string(gint rate, gint type); void ghb_backend_init(GtkBuilder *builder, gint debug, gint update); -void ghb_add_job(job_settings_t *js, gint unique_id); +void ghb_add_job(GValue *js, gint unique_id); void ghb_remove_job(gint unique_id); -void ghb_start_queue(); -void ghb_stop_queue(); -void ghb_pause_queue(); +void ghb_start_queue(void); +void ghb_stop_queue(void); +void ghb_pause_queue(void); -gint ghb_get_state(); +gint ghb_get_state(void); void ghb_clear_state(gint state); void ghb_set_state(gint state); void ghb_get_status(ghb_status_t *status); -void ghb_track_status(); +void ghb_track_status(void); void ghb_backend_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); -gchar ** ghb_get_chapters(gint titleindex); +GValue* ghb_get_chapters(gint titleindex); gint ghb_get_best_mix(gint titleindex, gint track, gint acodec, gint mix); -gboolean ghb_ac3_in_audio_list(GSList *audio_list); +gboolean ghb_ac3_in_audio_list(const GValue *audio_list); gboolean ghb_audio_is_passthru(gint acodec); -gint ghb_get_default_acodec(); -gboolean ghb_get_audio_info(ghb_audio_info_t *ainfo, gint titleindex, gint audioindex); +gint ghb_get_default_acodec(void); +gboolean ghb_get_audio_info( + ghb_audio_info_t *ainfo, gint titleindex, gint audioindex); gboolean ghb_set_passthru_rate_opts(GtkBuilder *builder, gint bitrate); gboolean ghb_set_default_rate_opts(GtkBuilder *builder); void ghb_grey_combo_options(GtkBuilder *builder); -void ghb_update_ui_combo_box(GtkBuilder *builder, const gchar *name, gint user_data, gboolean all); +void ghb_update_ui_combo_box( + GtkBuilder *builder, const gchar *name, gint user_data, gboolean all); gint ghb_find_audio_track(gint titleindex, const gchar *lang, gint index); -gint ghb_longest_title(); -gchar* ghb_build_x264opts_string(GHashTable *settings); -GdkPixbuf* ghb_get_preview_image(gint titleindex, gint index, GHashTable *settings, gboolean borders); -gint ghb_calculate_target_bitrate(GHashTable *settings, gint titleindex); +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 ghb_calculate_target_bitrate(GValue *settings, gint titleindex); gchar* ghb_dvd_volname(const gchar *device); -gint ghb_guess_bitrate(GHashTable *settings); +gint ghb_guess_bitrate(GValue *settings); gboolean ghb_validate_container(signal_user_data_t *ud); -gboolean ghb_validate_vquality(GHashTable *settings); +gboolean ghb_validate_vquality(GValue *settings); gboolean ghb_validate_audio(signal_user_data_t *ud); gboolean ghb_validate_video(signal_user_data_t *ud); gboolean ghb_validate_filters(signal_user_data_t *ud); gboolean ghb_validate_filter_string(const gchar *str, gint max_fields); void ghb_hb_cleanup(gboolean partial); -gint ghb_lookup_acodec(const gchar *acodec); +gint ghb_lookup_acodec(const GValue *acodec); +gint ghb_lookup_mix(const GValue *mix); +#if 0 gint ghb_lookup_bitrate(const gchar *bitrate); gint ghb_lookup_rate(const gchar *rate); -gint ghb_lookup_mix(const gchar *mix); gdouble ghb_lookup_drc(const gchar *drc); +#endif #endif // _HBBACKEND_H_ |