RafaMar + programmer friend Help button in Batch Render addition
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / convert.h
index 74717e504d58ea0b2524c7b9831d08090a921f26..41c125c9b6977626b24f9cc1867ebe0cdb17743b 100644 (file)
@@ -61,7 +61,7 @@ public:
 
 // if user canceled progress bar
        int is_canceled();
-       void set_format(Asset *asset, const char *suffix);
+       void set_format(Asset *asset, const char *suffix, int to_proxy);
        void start_convert(float beep, int remove_originals);
        void run();
        void create_copy(int i);
@@ -74,11 +74,13 @@ public:
        MainProgressBar *progress;
        ConvertProgress *convert_progress;
        Timer *progress_timer;
+       ConvertPackageRenderer *renderer;
 
        Mutex *counter_lock;
        int total_rendered, remove_originals;
        int failed, canceled, result;
        float beep;
+       int to_proxy;
 };
 
 class ConvertMenuItem : public BC_MenuItem
@@ -125,6 +127,17 @@ public:
        ConvertWindow *gui;
 };
 
+class ConvertToProxyPath : public BC_CheckBox
+{
+public:
+       ConvertToProxyPath(ConvertWindow *gui, int x, int y);
+       ~ConvertToProxyPath();
+
+       int handle_event();
+
+       ConvertWindow *gui;
+};
+
 class ConvertBeepOnDone : public BC_FPot
 {
 public:
@@ -139,7 +152,7 @@ class ConvertPackageRenderer : public PackageRenderer
 {
 public:
        ConvertPackageRenderer(ConvertRender *render);
-       ~ConvertPackageRenderer();
+       virtual ~ConvertPackageRenderer();
 
        int get_master();
        int get_result();
@@ -178,6 +191,7 @@ public:
        ConvertSuffixText *suffix_text;
        ConvertFormatTools *format_tools;
        ConvertRemoveOriginals *remove_originals;
+       ConvertToProxyPath *to_proxy_path;
        ConvertBeepOnDone *beep_on_done;
 };
 
@@ -202,26 +216,7 @@ public:
        int orig_w, orig_h;
        int remove_originals;
        float beep;
-};
-
-class ConvertBeep : public Thread
-{
-public:
-       enum { BEEP_SAMPLE_RATE=48000 };
-       typedef int16_t audio_data_t;
-       ConvertBeep(MWindow *mwindow);
-       ~ConvertBeep();
-
-       void run();
-       void start();
-       void stop(int wait);
-       void tone(double freq, double secs, double gain);
-
-       MWindow *mwindow;
-       double freq, secs, gain;
-       AudioDevice *audio;
-       int playing_audio, interrupted;
-       int audio_pos;
+       int to_proxy;
 };
 
 #endif