1 #ifndef __DVDCREATE_H__
2 #define __DVDCREATE_H__
5 #include "batchrender.h"
6 #include "bcwindowbase.h"
9 #include "bclistboxitem.inc"
10 #include "bcmenuitem.h"
11 #include "bctextbox.h"
12 #include "browsebutton.h"
15 #include "dvdcreate.inc"
17 class CreateDVD_MenuItem : public BC_MenuItem
20 CreateDVD_MenuItem(MWindow *mwindow);
26 class CreateDVD_Thread : public BC_DialogThread
28 static const int64_t DVD_SIZE;
29 static const int DVD_STREAMS, DVD_WIDTH, DVD_HEIGHT;
30 static const double DVD_ASPECT_WIDTH, DVD_ASPECT_HEIGHT;
31 static const double DVD_WIDE_ASPECT_WIDTH, DVD_WIDE_ASPECT_HEIGHT;
32 static const int DVD_MAX_BITRATE, DVD_CHANNELS, DVD_WIDE_CHANNELS;
33 static const double DVD_FRAMERATE, DVD_SAMPLERATE, DVD_KAUDIO_RATE;
35 CreateDVD_Thread(MWindow *mwindow);
37 void handle_close_event(int result);
40 int create_dvd_jobs(ArrayList<BatchRenderJob*> *jobs,
41 const char *tmp_path, const char *asset_title);
42 int insert_video_plugin(const char *title, KeyFrame *default_keyframe);
47 char asset_title[BCTEXTLEN];
48 char tmp_path[BCTEXTLEN];
49 int use_deinterlace, use_inverse_telecine;
50 int use_scale, use_resize_tracks;
51 int use_wide_audio, use_wide_aspect;
52 int use_histogram, use_label_chapters;
53 int use_ffmpeg, use_standard;
58 double dvd_aspect_width;
59 double dvd_aspect_height;
63 double dvd_kaudio_rate;
67 class CreateDVD_OK : public BC_OKButton
70 CreateDVD_OK(CreateDVD_GUI *gui, int x, int y);
72 int button_press_event();
78 class CreateDVD_Cancel : public BC_CancelButton
81 CreateDVD_Cancel(CreateDVD_GUI *gui, int x, int y);
83 int button_press_event();
89 class CreateDVD_DiskSpace : public BC_Title
92 CreateDVD_DiskSpace(CreateDVD_GUI *gui, int x, int y);
93 ~CreateDVD_DiskSpace();
94 int64_t tmp_path_space();
100 class CreateDVD_TmpPath : public BC_TextBox
103 CreateDVD_TmpPath(CreateDVD_GUI *gui, int x, int y, int w);
104 ~CreateDVD_TmpPath();
111 class CreateDVD_AssetTitle : public BC_TextBox
114 CreateDVD_AssetTitle(CreateDVD_GUI *gui, int x, int y, int w);
115 ~CreateDVD_AssetTitle();
120 class CreateDVD_Deinterlace : public BC_CheckBox
123 CreateDVD_Deinterlace(CreateDVD_GUI *gui, int x, int y);
124 ~CreateDVD_Deinterlace();
130 class CreateDVD_InverseTelecine : public BC_CheckBox
133 CreateDVD_InverseTelecine(CreateDVD_GUI *gui, int x, int y);
134 ~CreateDVD_InverseTelecine();
140 class CreateDVD_Scale : public BC_CheckBox
143 CreateDVD_Scale(CreateDVD_GUI *gui, int x, int y);
149 class CreateDVD_ResizeTracks : public BC_CheckBox
152 CreateDVD_ResizeTracks(CreateDVD_GUI *gui, int x, int y);
153 ~CreateDVD_ResizeTracks();
158 class CreateDVD_Histogram : public BC_CheckBox
161 CreateDVD_Histogram(CreateDVD_GUI *gui, int x, int y);
162 ~CreateDVD_Histogram();
167 class CreateDVD_LabelChapters : public BC_CheckBox
170 CreateDVD_LabelChapters(CreateDVD_GUI *gui, int x, int y);
171 ~CreateDVD_LabelChapters();
176 class CreateDVD_WideAudio : public BC_CheckBox
179 CreateDVD_WideAudio(CreateDVD_GUI *gui, int x, int y);
180 ~CreateDVD_WideAudio();
185 class CreateDVD_WideAspect : public BC_CheckBox
188 CreateDVD_WideAspect(CreateDVD_GUI *gui, int x, int y);
189 ~CreateDVD_WideAspect();
194 class CreateDVD_UseFFMpeg : public BC_CheckBox
197 CreateDVD_UseFFMpeg(CreateDVD_GUI *gui, int x, int y);
198 ~CreateDVD_UseFFMpeg();
203 class CreateDVD_GUI : public BC_Window
206 CreateDVD_GUI(CreateDVD_Thread *thread,
207 int x, int y, int w, int h);
210 void create_objects();
211 int resize_event(int w, int h);
212 int translation_event();
216 CreateDVD_Thread *thread;
218 CreateDVD_AssetTitle *asset_title;
220 CreateDVD_TmpPath *tmp_path;
221 BrowseButton *btmp_path;
222 CreateDVD_DiskSpace *disk_space;
223 CreateDVD_Format *standard;
224 ArrayList<BC_ListBoxItem *> media_sizes;
225 CreateDVD_MediaSize *media_size;
226 CreateDVD_Deinterlace *need_deinterlace;
227 CreateDVD_InverseTelecine *need_inverse_telecine;
228 CreateDVD_Scale *need_scale;
229 CreateDVD_UseFFMpeg *need_use_ffmpeg;
230 CreateDVD_ResizeTracks *need_resize_tracks;
231 CreateDVD_Histogram *need_histogram;
232 CreateDVD_WideAudio *need_wide_audio;
233 CreateDVD_WideAspect *need_wide_aspect;
234 CreateDVD_LabelChapters *need_label_chapters;
235 int ok_x, ok_y, ok_w, ok_h;
237 int cancel_x, cancel_y, cancel_w, cancel_h;
238 CreateDVD_Cancel *cancel;
241 class CreateDVD_FormatItem : public BC_MenuItem
245 CreateDVD_FormatItem(CreateDVD_Format *popup, int standard, const char *name);
246 ~CreateDVD_FormatItem();
248 CreateDVD_Format *popup;
252 class CreateDVD_Format : public BC_PopupMenu
255 void create_objects();
257 CreateDVD_Format(CreateDVD_GUI *gui, int x, int y);
263 class CreateDVD_MediaSize : public BC_PopupTextBox
266 CreateDVD_MediaSize(CreateDVD_GUI *gui, int x, int y);
267 ~CreateDVD_MediaSize();