~FFMPEGConfigAudio();
void create_objects();
- void update_options();
int close_event();
ArrayList<BC_ListBoxItem*> presets;
~FFMPEGConfigVideo();
void create_objects();
- void update_options();
int close_event();
ArrayList<BC_ListBoxItem*> presets;
ArrayList<BC_ListBoxItem*> items[2];
ArrayList<BC_ListBoxItem*> &opts;
ArrayList<BC_ListBoxItem*> &vals;
+ char tip_text[BCTEXTLEN];
int selection_changed();
int update();
+ void show_tip(const char *tip);
};
class FFOptionsKindItem : public BC_MenuItem
public:
FFOptionsDialog();
~FFOptionsDialog();
- virtual void update_options() = 0;
+ virtual void update_options(const char *options) = 0;
- void load_options();
- void store_options();
- void start(const char *codec_name, AVCodec *codec, char *ff_options, int ff_len);
+ void load_options(const char *bp, int len);
+ void store_options(char *cp, 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;
- char *ff_options;
- int ff_len;
AVDictionary *ff_opts;
+ int ff_len;
};
class FFOptionsAudioDialog : public FFOptionsDialog
{
public:
FFMPEGConfigAudio *aud_config;
- void update_options();
+ void update_options(const char *options);
FFOptionsAudioDialog(FFMPEGConfigAudio *aud_config);
~FFOptionsAudioDialog();
{
public:
FFMPEGConfigVideo *vid_config;
- void update_options();
+ void update_options(const char *options);
FFOptionsVideoDialog(FFMPEGConfigVideo *vid_config);
~FFOptionsVideoDialog();