diff options
author | jstebbins <[email protected]> | 2014-02-18 16:02:14 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-02-18 16:02:14 +0000 |
commit | b3e905dde9dacd4129c05440cedbe5a1366d0243 (patch) | |
tree | 420015a42c464390a90c3f9c94c268a3d0ea5bd3 /gtk/src/audiohandler.h | |
parent | 52036382899171921343e10053fa3adaedcb19d2 (diff) |
LinGui: Audio and subtitle UI rework.
Adds new tabs for audio and subtitle defaults (presets).
"Audio" and "Subtitle" tabs renamed to "Audio List" and "Subtitle List"
New Preset Keys:
AudioLanguageList - array of strings
List of languages that will be used to generate the output
audio tracks for a job.
Values: preset - UI display
iso639_2 codes - native_name if not NULL, else eng_name
SubtitleLanguageList - array of strings
List of languages that will be used to generate the output
subtitle tracks for a job.
Values: preset - UI display
iso639_2 codes - native_name if not NULL, else eng_name
AudioTrackSelectionBehavior - string
Defines how source tracks will be selected when generating
the audio list for a job.
Values: preset - UI display
none - None
first - First Matching Selected Languages
all - All Matching Selected Languages
SubtitleTrackSelectionBehavior - string
Defines how source tracks will be selected when generating
the subtitle list for a job.
Values: preset - UI display
none - None
first - First Matching Selected Languages
all - All Matching Selected Languages
SubtitleAddCC - boolean
Add Closed Caption track to subtitle list if available
SubtitleAddForeignAudioSearch - boolean
Add Foreign audio search pass to job if a default subtitle
language is set (i.e. SubtitleLanguageList is not empty and
first entry is not "Any") and default audio track language
matches subtitle preferred language.
SubtitleAddForeignAudioSubtitle - boolean
Add preferred language subtitle track if the default subtitle
language is set (i.e. SubtitleLanguageList is not empty and
first entry is not "Any") and default audio track language
does not match the preferred subtitle language.
Removed Preset Keys:
AudioTrack
SubtitleList - I think only the LinGui had this key.
Note that the remaining keys in the pre-existing AudioList are reused
and map to the "Audio Encoder Settings" on the "Audio Defaults" tab.
They used to map to the entries in the list on the old "Audio" tab.
The old "Audio" tab is now the "Audio List" tab. Nothing in the "Audio
List"
tab map to preset values in the new design. The contents of this tab is
strictly for use in the encode job. Ditto for "Subtitle Defaults" and
"Subtitle List".
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6040 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/audiohandler.h')
-rw-r--r-- | gtk/src/audiohandler.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gtk/src/audiohandler.h b/gtk/src/audiohandler.h index aaaddc89d..f1c7e8072 100644 --- a/gtk/src/audiohandler.h +++ b/gtk/src/audiohandler.h @@ -31,13 +31,16 @@ void ghb_adjust_audio_rate_combos(signal_user_data_t *ud); void ghb_set_pref_audio_settings(gint titleindex, GValue *settings); void ghb_set_pref_audio_from_settings(signal_user_data_t *ud, GValue *settings); void ghb_set_audio(signal_user_data_t *ud, GValue *settings); -const gchar* ghb_get_user_audio_lang(GValue *settings, gint titleindex, gint track); +const gchar* ghb_get_user_audio_lang(GValue *settings, hb_title_t *title, gint track); void ghb_audio_list_refresh_selected(signal_user_data_t *ud); gint ghb_select_audio_codec(gint mux, hb_audio_config_t *aconfig, gint acodec, gint fallback_acodec, gint copy_mask); -int ghb_select_fallback( GValue *settings, int mux, int acodec ); +int ghb_select_fallback( GValue *settings, int acodec ); int ghb_get_copy_mask(GValue *settings); -void ghb_audio_list_refresh(signal_user_data_t *ud); +void ghb_audio_list_refresh_all(signal_user_data_t *ud); char * ghb_format_quality( const char *prefix, int codec, double quality ); -void ghb_show_hide_advanced_audio( signal_user_data_t *ud ); +void ghb_init_audio_defaults_ui(signal_user_data_t *ud); +void ghb_audio_def_settings_init(signal_user_data_t *ud); +GtkListBoxRow* ghb_find_lang_row(GtkListBox *list_box, int lang_idx); +void ghb_audio_title_change(signal_user_data_t *ud, gboolean title_valid); #endif // _AUDIOHANDLER_H_ |