class ConvertRender : public Thread
{
public:
- ConvertRender(MWindow *mwindow, const char *suffix);
+ ConvertRender(MWindow *mwindow);
~ConvertRender();
void reset();
void to_convert_path(char *new_path, Indexable *idxbl);
ArrayList<Indexable *> needed_idxbls; // originals which match the needed_assets
ArrayList<Asset *> needed_copies; // assets which must be created
+ double get_video_length(Indexable *idxbl);
+ double get_audio_length(Indexable *idxbl);
+ double get_length(Indexable *idxbl);
+ int match_format(Asset *asset);
EDL *convert_edl(EDL *edl, Indexable *idxbl); // create render edl for this indexable
int add_original(EDL *edl, Indexable *idxbl);
void add_needed(Indexable *idxbl, Asset *convert);
// if user canceled progress bar
int is_canceled();
- void set_format(Asset *asset);
+ 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);
int total_rendered, remove_originals;
int failed, canceled, result;
float beep;
+ int to_proxy;
};
class ConvertMenuItem : public BC_MenuItem
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:
ConvertSuffixText *suffix_text;
ConvertFormatTools *format_tools;
ConvertRemoveOriginals *remove_originals;
+ ConvertToProxyPath *to_proxy_path;
ConvertBeepOnDone *beep_on_done;
};
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