+FFMpegConfigNum::FFMpegConfigNum(BC_Window *window,
+ int x, int y, char *title_text, int *output)
+ : BC_TumbleTextBox(window, (int64_t)*output,
+ (int64_t)-1, (int64_t)25000000, 100, y, 100)
+{
+ this->window = window;
+ this->x = x; this->y = y;
+ this->title_text = title_text;
+ this->output = output;
+}
+
+FFMpegConfigNum::~FFMpegConfigNum()
+{
+}
+
+void FFMpegConfigNum::create_objects()
+{
+ window->add_subwindow(title = new BC_Title(x, y, title_text));
+ BC_TumbleTextBox::create_objects();
+}
+
+int FFMpegConfigNum::handle_event()
+{
+ *output = atol(get_text());
+ return 1;
+}
+
+FFMpegAudioNum::FFMpegAudioNum(BC_Window *window,
+ int x, int y, char *title_text, int *output)
+ : FFMpegConfigNum(window, x, y, title_text, output)
+{
+}
+
+int FFMpegAudioBitrate::handle_event()
+{
+ int ret = FFMpegAudioNum::handle_event();
+ return ret;
+}
+
+FFMpegVideoNum::FFMpegVideoNum(BC_Window *window,
+ int x, int y, char *title_text, int *output)
+ : FFMpegConfigNum(window, x, y, title_text, output)
+{
+}
+
+int FFMpegVideoBitrate::handle_event()
+{
+ int ret = FFMpegVideoNum::handle_event();
+ Asset *asset = window()->asset;
+ if( asset->ff_video_bitrate )
+ window()->quality->disable();
+ else
+ window()->quality->enable();
+ return ret;
+}
+
+int FFMpegVideoQuality::handle_event()
+{
+ int ret = FFMpegVideoNum::handle_event();
+ Asset *asset = window()->asset;
+ if( asset->ff_video_quality )
+ window()->bitrate->disable();
+ else
+ window()->bitrate->enable();
+ return ret;
+}
+