rework ffmpeg seek, bld_script updates
[goodguy/history.git] / cinelerra-5.0 / cinelerra / fileffmpeg.h
index bde3d5d5f5f34541e8d6a0db80a0b329ee82dabd..fe068d25e67a9473943d7c3921dee60a3064f024 100644 (file)
@@ -3,11 +3,12 @@
 
 #include "asset.inc" 
 #include "bcwindowbase.inc"
+#include "bcprogressbox.inc"
 #include "bitspopup.inc" 
 #include "filebase.h"
 #include "fileffmpeg.inc"
-#include "mwindow.inc"
 #include "mutex.h"
+#include "thread.h"
 #include "vframe.inc"
 
 #include <stdio.h>
@@ -49,9 +50,8 @@ public:
        int get_audio_for_video(int vstream, int astream, int64_t &channel_mask);
        static void get_info(char *path,char *text,int len);
        int open_file(int rd,int wr);
+       int get_index(char *index_filename);
        int close_file(void);
-       int set_video_position(int64_t pos);
-       int set_audio_position(int64_t pos);
        int write_samples(double **buffer,int64_t len);
        int write_frames(VFrame ***frames,int len);
        int read_samples(double *buffer,int64_t len);
@@ -214,4 +214,17 @@ public:
        FFMPEGConfigVideo *popup;
 };
 
+class FFMPEGScanProgress : public Thread
+{
+public:
+       char progress_title[BCTEXTLEN];
+       BC_ProgressBox *progress;
+       int64_t length, *position;
+       int done, *canceled;
+
+       FFMPEGScanProgress(const char *title, int64_t length, int64_t *position, int *canceled);
+       ~FFMPEGScanProgress();
+       void run();
+};
+
 #endif