X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Ffileffmpeg.h;h=ed95ee9460740e2b12c98f6d6999ab9b38ca6bcc;hb=63c49c5fdda77aadc2d0addc26a6884aadec8542;hp=8e42862a57b917c29070d06773a7c60e6224c2cf;hpb=3564c71f425f390745eb7c75d5121689d53e14c2;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/fileffmpeg.h b/cinelerra-5.0/cinelerra/fileffmpeg.h index 8e42862a..ed95ee94 100644 --- a/cinelerra-5.0/cinelerra/fileffmpeg.h +++ b/cinelerra-5.0/cinelerra/fileffmpeg.h @@ -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 @@ -47,8 +48,9 @@ public: int get_video_info(int track, int &pid, double &framerate, int &width, int &height, char *title=0); int get_audio_for_video(int vstream, int astream, int64_t &channel_mask); - static void get_info(char *path,char *text); + 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); @@ -214,4 +216,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