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"
14 #include "dvdcreate.inc"
16 class CreateDVD_MenuItem : public BC_MenuItem
19 CreateDVD_MenuItem(MWindow *mwindow);
25 class CreateDVD_Thread : public BC_DialogThread
27 static const int64_t DVD_SIZE;
28 static const int DVD_STREAMS, DVD_WIDTH, DVD_HEIGHT;
29 static const double DVD_ASPECT_WIDTH, DVD_ASPECT_HEIGHT;
30 static const double DVD_WIDE_ASPECT_WIDTH, DVD_WIDE_ASPECT_HEIGHT;
31 static const int DVD_MAX_BITRATE, DVD_CHANNELS, DVD_WIDE_CHANNELS;
32 static const double DVD_FRAMERATE, DVD_SAMPLERATE, DVD_KAUDIO_RATE;
34 CreateDVD_Thread(MWindow *mwindow);
36 void handle_close_event(int result);
39 int create_dvd_jobs(ArrayList<BatchRenderJob*> *jobs,
40 const char *tmp_path, const char *asset_title);
41 int insert_video_plugin(const char *title, KeyFrame *default_keyframe);
46 char asset_title[BCTEXTLEN];
47 char tmp_path[BCTEXTLEN];
48 int use_deinterlace, use_inverse_telecine;
49 int use_scale, use_resize_tracks;
50 int use_wide_audio, use_wide_aspect;
51 int use_histogram, use_label_chapters;
52 int use_ffmpeg, use_standard;
57 double dvd_aspect_width;
58 double dvd_aspect_height;
62 double dvd_kaudio_rate;
65 class CreateDVD_OK : public BC_OKButton
68 CreateDVD_OK(CreateDVD_GUI *gui, int x, int y);
70 int button_press_event();
76 class CreateDVD_Cancel : public BC_CancelButton
79 CreateDVD_Cancel(CreateDVD_GUI *gui, int x, int y);
81 int button_press_event();
87 class CreateDVD_DiskSpace : public BC_Title
90 CreateDVD_DiskSpace(CreateDVD_GUI *gui, int x, int y);
91 ~CreateDVD_DiskSpace();
92 int64_t tmp_path_space();
98 class CreateDVD_TmpPath : public BC_TextBox
101 CreateDVD_TmpPath(CreateDVD_GUI *gui, int x, int y, int w);
102 ~CreateDVD_TmpPath();
109 class CreateDVD_AssetTitle : public BC_TextBox
112 CreateDVD_AssetTitle(CreateDVD_GUI *gui, int x, int y, int w);
113 ~CreateDVD_AssetTitle();
118 class CreateDVD_Deinterlace : public BC_CheckBox
121 CreateDVD_Deinterlace(CreateDVD_GUI *gui, int x, int y);
122 ~CreateDVD_Deinterlace();
128 class CreateDVD_InverseTelecine : public BC_CheckBox
131 CreateDVD_InverseTelecine(CreateDVD_GUI *gui, int x, int y);
132 ~CreateDVD_InverseTelecine();
138 class CreateDVD_Scale : public BC_CheckBox
141 CreateDVD_Scale(CreateDVD_GUI *gui, int x, int y);
147 class CreateDVD_ResizeTracks : public BC_CheckBox
150 CreateDVD_ResizeTracks(CreateDVD_GUI *gui, int x, int y);
151 ~CreateDVD_ResizeTracks();
156 class CreateDVD_Histogram : public BC_CheckBox
159 CreateDVD_Histogram(CreateDVD_GUI *gui, int x, int y);
160 ~CreateDVD_Histogram();
165 class CreateDVD_LabelChapters : public BC_CheckBox
168 CreateDVD_LabelChapters(CreateDVD_GUI *gui, int x, int y);
169 ~CreateDVD_LabelChapters();
174 class CreateDVD_WideAudio : public BC_CheckBox
177 CreateDVD_WideAudio(CreateDVD_GUI *gui, int x, int y);
178 ~CreateDVD_WideAudio();
183 class CreateDVD_WideAspect : public BC_CheckBox
186 CreateDVD_WideAspect(CreateDVD_GUI *gui, int x, int y);
187 ~CreateDVD_WideAspect();
192 class CreateDVD_UseFFMpeg : public BC_CheckBox
195 CreateDVD_UseFFMpeg(CreateDVD_GUI *gui, int x, int y);
196 ~CreateDVD_UseFFMpeg();
201 class CreateDVD_GUI : public BC_Window
204 CreateDVD_GUI(CreateDVD_Thread *thread,
205 int x, int y, int w, int h);
208 void create_objects();
209 int resize_event(int w, int h);
210 int translation_event();
214 CreateDVD_Thread *thread;
216 CreateDVD_AssetTitle *asset_title;
218 CreateDVD_TmpPath *tmp_path;
219 CreateDVD_DiskSpace *disk_space;
220 CreateDVD_Format *standard;
221 ArrayList<BC_ListBoxItem *> media_sizes;
222 CreateDVD_MediaSize *media_size;
223 CreateDVD_Deinterlace *need_deinterlace;
224 CreateDVD_InverseTelecine *need_inverse_telecine;
225 CreateDVD_Scale *need_scale;
226 CreateDVD_UseFFMpeg *need_use_ffmpeg;
227 CreateDVD_ResizeTracks *need_resize_tracks;
228 CreateDVD_Histogram *need_histogram;
229 CreateDVD_WideAudio *need_wide_audio;
230 CreateDVD_WideAspect *need_wide_aspect;
231 CreateDVD_LabelChapters *need_label_chapters;
232 int ok_x, ok_y, ok_w, ok_h;
234 int cancel_x, cancel_y, cancel_w, cancel_h;
235 CreateDVD_Cancel *cancel;
238 class CreateDVD_FormatItem : public BC_MenuItem
242 CreateDVD_FormatItem(CreateDVD_Format *popup, int standard, const char *name);
243 ~CreateDVD_FormatItem();
245 CreateDVD_Format *popup;
249 class CreateDVD_Format : public BC_PopupMenu
252 void create_objects();
254 CreateDVD_Format(CreateDVD_GUI *gui, int x, int y);
260 class CreateDVD_MediaSize : public BC_PopupTextBox
263 CreateDVD_MediaSize(CreateDVD_GUI *gui, int x, int y);
264 ~CreateDVD_MediaSize();