change ffmpeg buffer strategy, reactivate 'new' dialog
[goodguy/history.git] / cinelerra-5.1 / cinelerra / batchrender.h
index 8e29b035d96b941b517ad3d347d4be66e564c05f..c24eb088c909690ced7df74cb8c1453c883e5898 100644 (file)
@@ -92,7 +92,7 @@ public:
        int test_edl_files();
        void calculate_dest_paths(ArrayList<char*> *paths,
                Preferences *preferences);
-
+       void reset(int warn=0);
 // Load batch rendering jobs
        void load_jobs(char *path, Preferences *preferences);
 // Not applicable to western civilizations
@@ -118,6 +118,7 @@ public:
        void update_active(int number);
        void update_done(int number, int create_list, double elapsed_time);
        void move_batch(int src, int dst);
+       static void trap_hook(FILE *fp, void *vp);
 
        MWindow *mwindow;
        double current_start;
@@ -134,25 +135,16 @@ public:
 // job being rendered
        int rendering_job;
        int is_rendering;
+       int warn;
        ArrayList<BC_ListBoxItem*> *file_entries;
 };
 
 
 
-
-
-
-
-
-
-
 class BatchRenderEDLPath : public BC_TextBox
 {
 public:
-       BatchRenderEDLPath(BatchRenderThread *thread,
-               int x,
-               int y,
-               int w,
+       BatchRenderEDLPath(BatchRenderThread *thread, int x, int y, int w,
                char *text);
        int handle_event();
        BatchRenderThread *thread;
@@ -162,9 +154,7 @@ public:
 class BatchRenderCurrentEDL : public BC_GenericButton
 {
 public:
-       BatchRenderCurrentEDL(BatchRenderThread *thread,
-               int x,
-               int y);
+       BatchRenderCurrentEDL(BatchRenderThread *thread, int x, int y);
        int handle_event();
        BatchRenderThread *thread;
 };
@@ -173,9 +163,7 @@ public:
 class BatchRenderUpdateEDL : public BC_GenericButton
 {
 public:
-       BatchRenderUpdateEDL(BatchRenderThread *thread,
-               int x,
-               int y);
+       BatchRenderUpdateEDL(BatchRenderThread *thread, int x, int y);
        int handle_event();
        BatchRenderThread *thread;
 };
@@ -184,9 +172,7 @@ public:
 class BatchRenderNew : public BC_GenericButton
 {
 public:
-       BatchRenderNew(BatchRenderThread *thread,
-               int x,
-               int y);
+       BatchRenderNew(BatchRenderThread *thread, int x, int y);
        int handle_event();
        BatchRenderThread *thread;
 };
@@ -194,9 +180,7 @@ public:
 class BatchRenderDelete : public BC_GenericButton
 {
 public:
-       BatchRenderDelete(BatchRenderThread *thread,
-               int x,
-               int y);
+       BatchRenderDelete(BatchRenderThread *thread, int x, int y);
        int handle_event();
        BatchRenderThread *thread;
 };
@@ -206,9 +190,7 @@ public:
 class BatchRenderSaveList : public BC_GenericButton, public Thread
 {
 public:
-       BatchRenderSaveList(BatchRenderThread *thread,
-                           int x,
-                           int y);
+       BatchRenderSaveList(BatchRenderThread *thread, int x, int y);
        ~BatchRenderSaveList();
        int handle_event();
        BatchRenderThread *thread;
@@ -221,9 +203,7 @@ public:
 class BatchRenderLoadList : public BC_GenericButton, public Thread
 {
 public:
-       BatchRenderLoadList(BatchRenderThread *thread,
-                           int x,
-                           int y);
+       BatchRenderLoadList(BatchRenderThread *thread, int x, int y);
        ~BatchRenderLoadList();
        int handle_event();
        BatchRenderThread *thread;
@@ -238,11 +218,7 @@ public:
 class BatchRenderList : public BC_ListBox
 {
 public:
-       BatchRenderList(BatchRenderThread *thread,
-               int x,
-               int y,
-               int w,
-               int h);
+       BatchRenderList(BatchRenderThread *thread, int x, int y, int w, int h);
        int handle_event();
        int selection_changed();
        int column_resize_event();
@@ -255,9 +231,7 @@ public:
 class BatchRenderStart : public BC_GenericButton
 {
 public:
-       BatchRenderStart(BatchRenderThread *thread,
-               int x,
-               int y);
+       BatchRenderStart(BatchRenderThread *thread, int x, int y);
        int handle_event();
        BatchRenderThread *thread;
 };
@@ -265,9 +239,15 @@ public:
 class BatchRenderStop : public BC_GenericButton
 {
 public:
-       BatchRenderStop(BatchRenderThread *thread,
-               int x,
-               int y);
+       BatchRenderStop(BatchRenderThread *thread, int x, int y);
+       int handle_event();
+       BatchRenderThread *thread;
+};
+
+class BatchRenderWarning : public BC_CheckBox
+{
+public:
+       BatchRenderWarning(BatchRenderThread *thread, int x, int y);
        int handle_event();
        BatchRenderThread *thread;
 };
@@ -275,9 +255,7 @@ public:
 class BatchRenderCancel : public BC_GenericButton
 {
 public:
-       BatchRenderCancel(BatchRenderThread *thread,
-               int x,
-               int y);
+       BatchRenderCancel(BatchRenderThread *thread, int x, int y);
        int handle_event();
        int keypress_event();
        BatchRenderThread *thread;
@@ -287,9 +265,7 @@ public:
 class BatchFormat : public FormatTools
 {
 public:
-       BatchFormat(MWindow *mwindow,
-                               BatchRenderGUI *gui,
-                               Asset *asset);
+       BatchFormat(MWindow *mwindow, BatchRenderGUI *gui, Asset *asset);
        ~BatchFormat();
 
        int handle_event();
@@ -336,6 +312,7 @@ public:
        BatchRenderDelete *delete_batch;
        BatchRenderSaveList *savelist_batch;
        BatchRenderLoadList *loadlist_batch;
+       BatchRenderWarning *warning;
        BatchRenderList *batch_list;
        BatchRenderStart *start_button;
        BatchRenderStop *stop_button;