#ifndef __FILEFFMPEG_H__
#define __FILEFFMPEG_H__
-#include "asset.inc"
+#include "asset.inc"
#include "bcdialog.h"
#include "bcwindowbase.inc"
-#include "bitspopup.inc"
+#include "bitspopup.inc"
#include "ffmpeg.h"
#include "filebase.h"
#include "fileffmpeg.inc"
static void ff_lock(const char *cp=0);
static void ff_unlock();
+ static void set_parameters(char *cp, int len, const char *bp);
static void get_parameters(BC_WindowBase *parent_window,Asset *asset,
BC_WindowBase *&format_window,int audio_options,int video_options);
static int check_sig(Asset *asset);
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,int len);
+ static int can_render(const char *fformat, const char *type);
+ static int renders_audio(const char *fformat) { return can_render(fformat, "audio"); }
+ static int renders_video(const char *fformat) { return can_render(fformat, "video"); }
+ static int get_ff_option(const char *nm, const char *options, char *value);
int open_file(int rd,int wr);
int get_index(IndexFile *index_file, MainProgressBar *progress_bar);
int close_file(void);
~FFMpegConfigNum();
void create_objects();
+ int update_param(const char *param, const char *opts);
int handle_event();
int *output;
BC_Window *window;
public:
FFAudioOptions(FFMPEGConfigAudio *audio_popup,
int x, int y, int w, int rows, int size, char *text);
- int handle_event();
FFMPEGConfigAudio *audio_popup;
};
public:
FFVideoOptions(FFMPEGConfigVideo *video_popup,
int x, int y, int w, int rows, int size, char *text);
- int handle_event();
FFMPEGConfigVideo *video_popup;
};
void load_options(const char *bp, int len);
void store_options(char *cp, int len);
- void start(const char *codec_name, AVCodec *codec, const char *options, int len);
+ void start(const char *format_name, const char *codec_name,
+ AVCodec *codec, const char *options, int len);
BC_Window* new_gui();
void handle_done_event(int result);
FFOptionsWindow *options_window;
- const char *codec_name;
+ const char *format_name, *codec_name;
AVCodec *codec;
AVDictionary *ff_opts;
int ff_len;