X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fdvdcreate.h;h=3c39ea153f9b6db3698a95e08f108719b9ced8a9;hp=cfb9b00b63638ed251f186373838a5bace8c3fac;hb=HEAD;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1 diff --git a/cinelerra-5.1/cinelerra/dvdcreate.h b/cinelerra-5.1/cinelerra/dvdcreate.h index cfb9b00b..b856bc75 100644 --- a/cinelerra-5.1/cinelerra/dvdcreate.h +++ b/cinelerra-5.1/cinelerra/dvdcreate.h @@ -1,3 +1,23 @@ +/* + * CINELERRA + * Copyright (C) 2016-2020 William Morrow + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published + * by the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + */ + #ifndef __DVDCREATE_H__ #define __DVDCREATE_H__ @@ -23,6 +43,24 @@ public: MWindow *mwindow; }; +class DVD_BatchRenderJob : public BatchRenderJob +{ + int chapter; + FILE *fp; + EDL *edl; +public: + DVD_BatchRenderJob(Preferences *preferences, + int labeled, int farmed, int standard, int muxed); + void copy_from(DVD_BatchRenderJob *src); + DVD_BatchRenderJob *copy(); + void load(FileXML *file); + void save(FileXML *file); + char *create_script(EDL *edl, ArrayList *idxbls); + void create_chapter(double pos); + + int standard; + int muxed; +}; class CreateDVD_Thread : public BC_DialogThread { @@ -38,6 +76,8 @@ public: void handle_close_event(int result); BC_Window* new_gui(); int option_presets(); + void create_chapter(FILE *fp, double pos); + static int create_dvd_script(BatchRenderJob *job); int create_dvd_jobs(ArrayList *jobs, const char *asset_path); int insert_video_plugin(const char *title, KeyFrame *default_keyframe); int resize_tracks(); @@ -48,8 +88,8 @@ public: char tmp_path[BCTEXTLEN]; int use_deinterlace, use_inverse_telecine; int use_scale, use_resize_tracks; - int use_wide_audio; - int use_histogram, use_label_chapters; + int use_wide_audio, use_farmed; + int use_histogram, use_labeled; int use_ffmpeg, use_standard; int64_t dvd_size; @@ -165,6 +205,15 @@ public: CreateDVD_GUI *gui; }; +class CreateDVD_UseRenderFarm : public BC_CheckBox +{ +public: + CreateDVD_UseRenderFarm(CreateDVD_GUI *gui, int x, int y); + ~CreateDVD_UseRenderFarm(); + + CreateDVD_GUI *gui; +}; + class CreateDVD_WideAudio : public BC_CheckBox { public: @@ -213,7 +262,8 @@ public: CreateDVD_ResizeTracks *need_resize_tracks; CreateDVD_Histogram *need_histogram; CreateDVD_WideAudio *need_wide_audio; - CreateDVD_LabelChapters *need_label_chapters; + CreateDVD_LabelChapters *need_labeled; + CreateDVD_UseRenderFarm *need_farmed; int ok_x, ok_y, ok_w, ok_h; CreateDVD_OK *ok; int cancel_x, cancel_y, cancel_w, cancel_h;