X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Ftranscode_video_dialog.h;h=40b077b971a300a4b63f7bc870113268889f2a9b;hb=2dc3c8b3650266eba09cf7fe53c39c6728d4d5b6;hp=981079b3a84b615afbeced04a534bbc68755749a;hpb=3b20beb8d80e6b0ac12ef17e4f10e1d5dcc9fe55;p=ardour.git diff --git a/gtk2_ardour/transcode_video_dialog.h b/gtk2_ardour/transcode_video_dialog.h index 981079b3a8..40b077b971 100644 --- a/gtk2_ardour/transcode_video_dialog.h +++ b/gtk2_ardour/transcode_video_dialog.h @@ -17,14 +17,20 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#ifdef WITH_VIDEOTIMELINE - #ifndef __gtk_ardour_transcode_video_dialog_h__ #define __gtk_ardour_transcode_video_dialog_h__ #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "ardour/types.h" #include "ardour/template_utils.h" @@ -33,9 +39,9 @@ #include "transcode_ffmpeg.h" enum VtlTranscodeOption { - VTL_IMPORT_NO_VIDEO = 0, - VTL_IMPORT_REFERENCE = 1, - VTL_IMPORT_TRANSCODED = 2 + VTL_IMPORT_REFERENCE = 0, + VTL_IMPORT_TRANSCODED = 1, + VTL_IMPORT_NO_VIDEO = 2 }; /** @class TranscodeVideoDialog @@ -43,15 +49,20 @@ enum VtlTranscodeOption { */ class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionList { - public: +public: TranscodeVideoDialog (ARDOUR::Session*, std::string); ~TranscodeVideoDialog (); std::string get_filename () { return path_entry.get_text(); } std::string get_audiofile () { return audiofile; } VtlTranscodeOption import_option (); + bool detect_ltc () { return ltc_detect.get_active (); } + + void on_response (int response_id) { + Gtk::Dialog::on_response (response_id); + } - private: +private: void on_show (); void open_browse_dialog (); void abort_clicked (); @@ -63,7 +74,7 @@ class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionL void update_bitrate (); void launch_audioonly (); void launch_transcode (); - void launch_extract (); + void launch_extract (); void dialog_progress_mode (); bool aborted; bool pending_audio_extract; @@ -73,7 +84,7 @@ class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionL PBD::Signal0 StartNextStage; void finished (); - void update_progress (ARDOUR::framecnt_t, ARDOUR::framecnt_t); + void update_progress (ARDOUR::samplecnt_t, ARDOUR::samplecnt_t); TranscodeFfmpeg *transcoder; @@ -96,6 +107,7 @@ class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionL Gtk::Adjustment height_adjustment; Gtk::SpinButton height_spinner; Gtk::ComboBoxText audio_combo; + Gtk::CheckButton ltc_detect; Gtk::CheckButton bitrate_checkbox; Gtk::Adjustment bitrate_adjustment; Gtk::SpinButton bitrate_spinner; @@ -106,5 +118,3 @@ class TranscodeVideoDialog : public ArdourDialog , public PBD::ScopedConnectionL }; #endif /* __gtk_ardour_transcode_video_dialog_h__ */ - -#endif /* WITH_VIDEOTIMELINE */