FFMPEGConfigWindow(const char *title, BC_WindowBase *parent_window,
int x, int y, int w, int h, Asset *asset, EDL *edl);
~FFMPEGConfigWindow();
- virtual char *get_options() = 0;
- virtual int get_options_len() = 0;
- void start(const void *obj);
+ virtual void read_options() = 0;
+ virtual void save_options() = 0;
+ void start(AVCodecContext *avctx);
+ void start(AVFormatContext *fmt_ctx);
BC_WindowBase *parent_window;
FFOptionsDialog *ff_options_dialog;
Asset *asset;
EDL *edl;
- const void *obj;
+ AVCodecContext *avctx;
+ AVFormatContext *fmt_ctx;
char *format_name;
char *codec_name;
};
void create_objects();
int close_event();
void load_options();
- char *get_options();
- int get_options_len();
+ void read_options();
+ void save_options();
FFMpegSampleFormat *sample_format;
ArrayList<BC_ListBoxItem*> presets;
FFMPEGConfigVideo(BC_WindowBase *parent_window,
int x, int y, Asset *asset, EDL *edl);
~FFMPEGConfigVideo();
- char *get_options();
- int get_options_len();
+ void read_options();
+ void save_options();
void create_objects();
int close_event();
FFMPEGConfigFormat(FFOptionsFormatViewDialog *view_dialog,
int x, int y, Asset *asset, EDL *edl);
~FFMPEGConfigFormat();
- char *get_options();
- int get_options_len();
+ void read_options();
+ void save_options();
+ void save_changes();
void create_objects();
int close_event();
AVCodecContext *avctx;
const void *obj;
- void initialize(FFOptionsWindow *win, int k);
+ void initialize(FFOptionsWindow *win, int kind);
static int cmpr(const void *a, const void *b);
int update();
void dump(FILE *fp);
class FFOptionsViewFormat : public BC_GenericButton
{
public:
- FFOptionsViewFormat(BC_WindowBase *parent_window,
+ FFOptionsViewFormat(FFMPEGConfigWindow *cfg_window,
EDL *edl, Asset *asset, int x, int y, const char *text);
~FFOptionsViewFormat();
int handle_event();
- BC_WindowBase *parent_window;
+ FFMPEGConfigWindow *cfg_window;
EDL *edl;
Asset *asset;
FFOptionsFormatViewDialog *format_dialog;