4 * Copyright (C) 1997-2011 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include "awindowgui.h"
27 #include "batchrender.h"
28 #include "bcprogressbox.h"
29 #include "bcsignals.h"
32 #include "compresspopup.h"
33 #include "condition.h"
34 #include "confirmsave.h"
35 #include "cwindowgui.h"
40 #include "edlsession.h"
43 #include "filesystem.h"
45 #include "formatcheck.h"
46 #include "formatpopup.h"
47 #include "formattools.h"
48 #include "indexable.h"
52 #include "localsession.h"
53 #include "mainprogress.h"
54 #include "mainsession.h"
58 #include "mwindowgui.h"
60 #include "packagedispatcher.h"
61 #include "packagerenderer.h"
63 #include "playabletracks.h"
64 #include "preferences.h"
65 #include "preferencesthread.h"
66 #include "renderfarm.h"
68 #include "renderprofiles.h"
69 #include "statusbar.h"
73 #include "transportque.h"
76 #include "videoconfig.h"
84 RenderItem::RenderItem(MWindow *mwindow)
85 : BC_MenuItem(_("Render..."), _("Shift-R"), 'R')
87 this->mwindow = mwindow;
91 int RenderItem::handle_event()
93 mwindow->gui->unlock_window();
94 mwindow->render->start_interactive();
95 mwindow->gui->lock_window("RenderItem::handle_event");
108 RenderProgress::RenderProgress(MWindow *mwindow, Render *render)
111 this->mwindow = mwindow;
112 this->render = render;
114 Thread::set_synchronous(1);
117 RenderProgress::~RenderProgress()
124 void RenderProgress::run()
126 Thread::disable_cancel();
129 if(render->total_rendered != last_value)
131 render->progress->update(render->total_rendered);
132 last_value = render->total_rendered;
134 if(mwindow) mwindow->preferences_thread->update_rates();
137 Thread::enable_cancel();
139 Thread::disable_cancel();
145 MainPackageRenderer::MainPackageRenderer(Render *render)
148 this->render = render;
153 MainPackageRenderer::~MainPackageRenderer()
158 int MainPackageRenderer::get_master()
163 int MainPackageRenderer::get_result()
165 return render->result;
168 void MainPackageRenderer::set_result(int value)
171 render->result = value;
177 void MainPackageRenderer::set_progress(int64_t value)
179 render->counter_lock->lock("MainPackageRenderer::set_progress");
180 // Increase total rendered for all nodes
181 render->total_rendered += value;
183 // Update frames per second for master node
184 render->preferences->set_rate(frames_per_second, -1);
186 //printf("MainPackageRenderer::set_progress %d %ld %f\n", __LINE__, (long)value, frames_per_second);
188 // If non interactive, print progress out
189 if(!render->progress)
191 int64_t current_eta = render->progress_timer->get_scaled_difference(1000);
192 if(current_eta - render->last_eta > 1000)
197 if(render->total_rendered)
201 render->progress_max /
202 render->total_rendered -
207 char string[BCTEXTLEN];
208 Units::totext(string,
212 printf("\r%d%% %s: %s ",
213 (int)(100 * (float)render->total_rendered / render->progress_max),
216 render->last_eta = current_eta;
220 render->counter_lock->unlock();
222 // This locks the preferences
223 if(mwindow) mwindow->preferences->copy_rates_from(preferences);
226 int MainPackageRenderer::progress_cancelled()
228 return (render->progress && render->progress->is_cancelled()) ||
229 render->batch_cancelled;
233 Render::Render(MWindow *mwindow)
236 this->mwindow = mwindow;
241 package_lock = new Mutex("Render::package_lock");
242 counter_lock = new Mutex("Render::counter_lock");
243 completion = new Condition(0, "Render::completion");
244 progress_timer = new Timer;
245 range_type = RANGE_BACKCOMPAT;
246 thread = new RenderThread(mwindow, this);
258 // May be owned by someone else. This is owned by mwindow, so we don't care
260 // delete preferences;
261 delete progress_timer;
262 if( asset ) asset->Garbage::remove_user();
266 void Render::start_interactive()
268 if( !thread->running() ) {
269 mode = Render::INTERACTIVE;
270 BC_DialogThread::start();
272 else if( in_progress ) {
273 ErrorBox error_box(_(PROGRAM_NAME ": Error"),
274 mwindow->gui->get_abs_cursor_x(1),
275 mwindow->gui->get_abs_cursor_y(1));
276 error_box.create_objects(_("Already rendering"));
277 error_box.raise_window();
278 error_box.run_window();
280 else if( render_window ) {
281 render_window->raise_window();
286 void Render::start_batches(ArrayList<BatchRenderJob*> *jobs)
288 if(!thread->running())
290 mode = Render::BATCH;
296 else if( in_progress ) {
297 ErrorBox error_box(_(PROGRAM_NAME ": Error"),
298 mwindow->gui->get_abs_cursor_x(1),
299 mwindow->gui->get_abs_cursor_y(1));
300 error_box.create_objects("Already rendering");
301 error_box.raise_window();
302 error_box.run_window();
304 // raise the window if rendering hasn't started yet
305 else if( render_window ) {
306 render_window->raise_window();
310 void Render::start_batches(ArrayList<BatchRenderJob*> *jobs,
311 BC_Hash *boot_defaults,
312 Preferences *preferences)
314 mode = Render::BATCH;
317 this->preferences = preferences;
323 this->preferences = 0;
327 BC_Window* Render::new_gui()
335 if(mode == Render::INTERACTIVE) {
336 // Fix the asset for rendering
337 if(!asset) asset = new Asset;
338 load_defaults(asset);
339 check_asset(mwindow->edl, *asset);
341 // Get format from user
342 render_window = new RenderWindow(mwindow,
345 mwindow->gui->get_abs_cursor_x(1),
346 mwindow->gui->get_abs_cursor_y(1));
347 render_window->create_objects();
350 return render_window;
353 void Render::handle_done_event(int result)
356 // add to recentlist only on OK
357 render_window->format_tools->path_recent->
358 add_item(File::formattostr(asset->format), asset->path);
363 void Render::handle_close_event(int result)
365 int format_error = 0;
369 // Check the asset format for errors.
370 FormatCheck format_check(asset);
371 format_error = format_check.check_format();
376 save_defaults(asset);
378 mwindow->save_defaults();
381 if(!format_error && !result)
383 if(debug) printf("Render::handle_close_event %d\n", __LINE__);
384 if(!result) start_render();
385 if(debug) printf("Render::handle_close_event %d\n", __LINE__);
392 void Render::stop_operation()
394 if(thread->Thread::running())
397 // Wait for completion
398 completion->lock("Render::stop_operation");
405 int Render::check_asset(EDL *edl, Asset &asset)
407 if(asset.video_data &&
408 edl->tracks->playable_video_tracks() &&
409 File::supports_video(asset.format))
411 asset.video_data = 1;
413 asset.width = edl->session->output_w;
414 asset.height = edl->session->output_h;
415 asset.interlace_mode = edl->session->interlace_mode;
416 asset.tcstart = (int64_t) (edl->session->get_frame_offset() +
417 edl->local_session->get_selectionstart() *
418 edl->session->frame_rate);
419 asset.tcend = (int64_t) (edl->session->get_frame_offset() +
420 edl->local_session->get_selectionend() *
421 edl->session->frame_rate);
425 asset.video_data = 0;
431 if(asset.audio_data &&
432 edl->tracks->playable_audio_tracks() &&
433 File::supports_audio(asset.format))
435 asset.audio_data = 1;
436 asset.channels = edl->session->audio_channels;
437 asset.tcstart = (int64_t) (edl->session->get_frame_offset() +
438 edl->local_session->get_selectionstart() *
439 edl->session->sample_rate);
440 asset.tcend = (int64_t) (edl->session->get_frame_offset() +
441 edl->local_session->get_selectionend() *
442 edl->session->sample_rate);
446 asset.audio_data = 0;
452 if(!asset.audio_data &&
460 int Render::fix_strategy(int strategy, int use_renderfarm)
464 if(strategy == FILE_PER_LABEL)
465 strategy = FILE_PER_LABEL_FARM;
467 if(strategy == SINGLE_PASS)
468 strategy = SINGLE_PASS_FARM;
472 if(strategy == FILE_PER_LABEL_FARM)
473 strategy = FILE_PER_LABEL;
475 if(strategy == SINGLE_PASS_FARM)
476 strategy = SINGLE_PASS;
481 void Render::start_progress()
483 char filename[BCTEXTLEN];
484 char string[BCTEXTLEN];
487 progress_max = packages->get_progress_max();
489 progress_timer->update();
493 // Generate the progress box
494 fs.extract_name(filename, default_asset->path);
495 sprintf(string, _("Rendering %s..."), filename);
497 // Don't bother with the filename since renderfarm defeats the meaning
498 progress = mwindow->mainprogress->start_progress(_("Rendering..."),
500 render_progress = new RenderProgress(mwindow, this);
501 render_progress->start();
505 void Render::stop_progress()
509 char string[BCTEXTLEN], string2[BCTEXTLEN];
510 delete render_progress;
511 progress->get_time(string);
512 elapsed_time = progress->get_time();
513 progress->stop_progress();
516 sprintf(string2, _("Rendering took %s"), string);
517 mwindow->gui->lock_window("");
518 mwindow->gui->show_message(string2);
519 mwindow->gui->stop_hourglass();
520 mwindow->gui->unlock_window();
527 void Render::start_render()
536 void Render::create_filename(char *path,
543 int len = strlen(default_path);
544 char printf_string[BCTEXTLEN];
546 for(i = 0, j = 0; i < number_start; i++, j++)
548 printf_string[j] = default_path[i];
552 sprintf(&printf_string[j], "%%0%dd", total_digits);
553 j = strlen(printf_string);
556 // Copy remainder of string
557 for( ; i < len; i++, j++)
559 printf_string[j] = default_path[i];
561 printf_string[j] = 0;
562 // Print the printf argument to the path
563 sprintf(path, printf_string, current_number);
566 void Render::get_starting_number(char *path,
572 int len = strlen(path);
573 char number_text[BCTEXTLEN];
581 ptr2 = strrchr(path, '/');
583 // Search for first 0 after last /.
585 ptr = strchr(ptr2, '0');
587 if(ptr && isdigit(*ptr))
589 number_start = ptr - path;
591 // Store the first number
592 char *ptr2 = number_text;
596 current_number = atol(number_text);
597 total_digits = strlen(number_text);
601 // No number found or number not long enough
602 if(total_digits < min_digits)
606 total_digits = min_digits;
611 int Render::load_defaults(Asset *asset)
613 strategy = mwindow->defaults->get("RENDER_STRATEGY", SINGLE_PASS);
614 load_mode = mwindow->defaults->get("RENDER_LOADMODE", LOADMODE_NEW_TRACKS);
615 range_type = mwindow->defaults->get("RENDER_RANGE_TYPE", RANGE_PROJECT);
617 // some defaults which work
618 asset->video_data = 1;
619 asset->audio_data = 1;
620 asset->format = FILE_FFMPEG;
621 strcpy(asset->acodec, "mp4.qt");
622 strcpy(asset->vcodec, "mp4.qt");
624 asset->load_defaults(mwindow->defaults,
625 "RENDER_", 1, 1, 1, 1, 1);
629 int Render::load_profile(int profile_slot, Asset *asset)
631 char string_name[100];
632 sprintf(string_name, "RENDER_%i_STRATEGY", profile_slot);
633 strategy = mwindow->defaults->get(string_name, SINGLE_PASS);
634 // Load mode is not part of the profile
635 // printf(string_name, "RENDER_%i_LOADMODE", profile_slot);
636 // load_mode = mwindow->defaults->get(string_name, LOADMODE_NEW_TRACKS);
637 sprintf(string_name, "RENDER_%i_RANGE_TYPE", profile_slot);
638 range_type = mwindow->defaults->get(string_name, RANGE_PROJECT);
640 sprintf(string_name, "RENDER_%i_", profile_slot);
641 asset->load_defaults(mwindow->defaults,
642 string_name, 1, 1, 1, 1, 1);
647 int Render::save_defaults(Asset *asset)
649 mwindow->defaults->update("RENDER_STRATEGY", strategy);
650 mwindow->defaults->update("RENDER_LOADMODE", load_mode);
651 mwindow->defaults->update("RENDER_RANGE_TYPE", range_type);
653 asset->save_defaults(mwindow->defaults,
654 "RENDER_", 1, 1, 1, 1, 1);
659 static void run_script(const char *script, const char *arg)
661 char *const argv[] = { (char*)script, (char*)arg, 0 };
662 execvp(script ,&argv[0]);
663 perror("execvp script failed");
667 RenderThread::RenderThread(MWindow *mwindow, Render *render)
670 this->mwindow = mwindow;
671 this->render = render;
674 RenderThread::~RenderThread()
679 void RenderThread::render_single(int test_overwrite,
685 // Total length in seconds
687 RenderFarmServer *farm_server = 0;
692 render->in_progress = 1;
695 render->default_asset = asset;
696 render->progress = 0;
701 if(!render->preferences)
702 render->preferences = new Preferences;
704 render->preferences->copy_from(mwindow->preferences);
708 // Create rendering command
709 TransportCommand *command = new TransportCommand;
710 command->command = NORMAL_FWD;
711 command->get_edl()->copy_all(edl);
712 command->change_type = CHANGE_ALL;
714 if (range_type == RANGE_BACKCOMPAT) {
715 // Get highlighted playback range
716 command->set_playback_range();
717 // Adjust playback range with in/out points
718 command->playback_range_adjust_inout();
720 else if (range_type == RANGE_PROJECT) {
721 command->playback_range_project();
723 else if (range_type == RANGE_SELECTION) {
724 command->set_playback_range();
726 else if (range_type == RANGE_INOUT) {
727 command->playback_range_inout();
730 render->packages = new PackageDispatcher;
733 CICache *audio_cache = new CICache(render->preferences);
734 CICache *video_cache = new CICache(render->preferences);
736 render->default_asset->frame_rate = command->get_edl()->session->frame_rate;
737 render->default_asset->sample_rate = command->get_edl()->session->sample_rate;
739 // Conform asset to EDL. Find out if any tracks are playable.
740 render->result = render->check_asset(command->get_edl(),
741 *render->default_asset);
745 // Get total range to render
746 render->total_start = command->start_position;
747 render->total_end = command->end_position;
748 total_length = render->total_end - render->total_start;
751 if(EQUIV(total_length, 0))
760 // Stop background rendering
761 if(mwindow) mwindow->stop_brender();
763 fs.complete_path(render->default_asset->path);
764 strategy = Render::fix_strategy(strategy, render->preferences->use_renderfarm);
766 render->result = render->packages->create_packages(mwindow,
770 render->default_asset,
777 render->total_rendered = 0;
781 // Start dispatching external jobs
784 mwindow->gui->lock_window("Render::render 1");
785 mwindow->gui->show_message(_("Starting render farm"));
786 mwindow->gui->start_hourglass();
787 mwindow->gui->unlock_window();
791 printf("Render::render: starting render farm\n");
794 if(strategy == SINGLE_PASS_FARM || strategy == FILE_PER_LABEL_FARM)
796 farm_server = new RenderFarmServer(mwindow,
801 &render->total_rendered,
802 render->counter_lock,
803 render->default_asset,
806 render->result = farm_server->start_clients();
812 mwindow->gui->lock_window("Render::render 2");
813 mwindow->gui->show_message(_("Failed to start render farm"),
814 mwindow->theme->message_error);
815 mwindow->gui->stop_hourglass();
816 mwindow->gui->unlock_window();
820 printf("Render::render: Failed to start render farm\n");
826 // Perform local rendering
831 render->start_progress();
836 MainPackageRenderer package_renderer(render);
837 render->result = package_renderer.initialize(mwindow,
838 command->get_edl(), // Copy of master EDL
840 render->default_asset);
848 while(!render->result)
850 // Get unfinished job
851 RenderPackage *package;
853 if(strategy == SINGLE_PASS_FARM)
855 package = render->packages->get_package(
856 package_renderer.frames_per_second,
862 package = render->packages->get_package(0, -1, 1);
877 if(package_renderer.render_package(package))
885 printf("Render::render_single: Session finished.\n");
891 if(strategy == SINGLE_PASS_FARM || strategy == FILE_PER_LABEL_FARM)
893 farm_server->wait_clients();
894 render->result |= render->packages->packages_are_done();
897 if(debug) printf("Render::render %d\n", __LINE__);
901 (!render->progress || !render->progress->is_cancelled()) &&
902 !render->batch_cancelled)
904 if(debug) printf("Render::render %d\n", __LINE__);
907 if(debug) printf("Render::render %d\n", __LINE__);
908 ErrorBox error_box(_(PROGRAM_NAME ": Error"),
909 mwindow->gui->get_abs_cursor_x(1),
910 mwindow->gui->get_abs_cursor_y(1));
911 error_box.create_objects(_("Error rendering data."));
912 error_box.raise_window();
913 error_box.run_window();
914 if(debug) printf("Render::render %d\n", __LINE__);
918 printf("Render::render: Error rendering data\n");
921 if(debug) printf("Render::render %d\n", __LINE__);
923 // Delete the progress box
924 render->stop_progress();
926 if(debug) printf("Render::render %d\n", __LINE__);
930 // Paste all packages into timeline if desired
932 if(!render->result &&
933 render->load_mode != LOADMODE_NOTHING &&
935 render->mode != Render::BATCH)
937 if(debug) printf("Render::render %d\n", __LINE__);
938 mwindow->gui->lock_window("Render::render 3");
939 if(debug) printf("Render::render %d\n", __LINE__);
941 mwindow->undo->update_undo_before();
943 if(debug) printf("Render::render %d\n", __LINE__);
946 ArrayList<Indexable*> *assets = render->packages->get_asset_list();
947 if(debug) printf("Render::render %d\n", __LINE__);
948 if(render->load_mode == LOADMODE_PASTE)
950 if(debug) printf("Render::render %d\n", __LINE__);
951 mwindow->load_assets(assets,
956 mwindow->edl->session->labels_follow_edits,
957 mwindow->edl->session->plugins_follow_edits,
958 mwindow->edl->session->autos_follow_edits,
960 if(debug) printf("Render::render %d\n", __LINE__);
961 for(int i = 0; i < assets->size(); i++)
962 assets->get(i)->Garbage::remove_user();
964 if(debug) printf("Render::render %d\n", __LINE__);
967 mwindow->save_backup();
968 if(debug) printf("Render::render %d\n", __LINE__);
969 mwindow->undo->update_undo_after(_("render"), LOAD_ALL);
970 if(debug) printf("Render::render %d\n", __LINE__);
971 mwindow->update_plugin_guis();
972 if(debug) printf("Render::render %d\n", __LINE__);
973 mwindow->gui->update(1,
980 if(debug) printf("Render::render %d\n", __LINE__);
981 mwindow->sync_parameters(CHANGE_ALL);
982 if(debug) printf("Render::render %d\n", __LINE__);
983 mwindow->gui->unlock_window();
986 mwindow->awindow->gui->async_update_assets();
988 if(debug) printf("Render::render %d\n", __LINE__);
991 if(debug) printf("Render::render %d\n", __LINE__);
996 mwindow->gui->lock_window("Render::render 3");
997 mwindow->gui->stop_hourglass();
998 mwindow->gui->unlock_window();
1001 //printf("Render::render 110\n");
1002 // Need to restart because brender always stops before render.
1004 mwindow->restart_brender();
1005 if(farm_server) delete farm_server;
1009 // Must delete packages after server
1010 delete render->packages;
1012 render->packages = 0;
1013 render->in_progress = 0;
1014 render->completion->unlock();
1015 if(debug) printf("Render::render %d\n", __LINE__);
1018 void RenderThread::run()
1020 if(render->mode == Render::INTERACTIVE)
1022 render_single(1, render->asset, mwindow->edl, render->strategy, render->range_type);
1025 if(render->mode == Render::BATCH)
1028 // printf("RenderThread::run %d %d %d\n",
1030 // render->jobs->total,
1032 for(int i = 0; i < render->jobs->total && !render->result; i++)
1035 BatchRenderJob *job = render->jobs->values[i];
1039 if( *job->edl_path == '@' )
1041 run_script(job->edl_path+1, job->asset->path);
1046 mwindow->batch_render->update_active(i);
1050 printf("Render::run: %s\n", job->edl_path);
1055 FileXML *file = new FileXML;
1057 edl->create_objects();
1058 file->read_from_file(job->edl_path);
1059 edl->load_xml(file, LOAD_ALL);
1062 render_single(0, job->asset, edl, job->strategy, RANGE_BACKCOMPAT);
1065 edl->Garbage::remove_user();
1070 mwindow->batch_render->update_done(i, 1, render->elapsed_time);
1073 char string[BCTEXTLEN];
1074 render->elapsed_time =
1075 (double)render->progress_timer->get_scaled_difference(1);
1076 Units::totext(string,
1077 render->elapsed_time,
1079 printf("Render::run: done in %s\n", string);
1085 mwindow->batch_render->update_active(-1);
1087 printf("Render::run: failed\n");
1095 mwindow->batch_render->update_active(-1);
1096 mwindow->batch_render->update_done(-1, 0, 0);
1106 RenderWindow::RenderWindow(MWindow *mwindow,
1111 : BC_Window(_(PROGRAM_NAME ": Render"),
1112 x - WIDTH / 2, y - HEIGHT / 2,
1113 WIDTH, HEIGHT, WIDTH, HEIGHT,
1116 this->mwindow = mwindow;
1117 this->render = render;
1118 this->asset = asset;
1121 RenderWindow::~RenderWindow()
1124 lock_window("RenderWindow::~RenderWindow");
1126 delete format_tools;
1135 void RenderWindow::load_profile(int profile_slot)
1137 render->load_profile(profile_slot, asset);
1138 update_range_type(render->range_type);
1139 format_tools->update(asset, &render->strategy);
1143 void RenderWindow::create_objects()
1146 lock_window("RenderWindow::create_objects");
1147 add_subwindow(new BC_Title(x,
1149 (char*)((render->strategy == FILE_PER_LABEL ||
1150 render->strategy == FILE_PER_LABEL_FARM) ?
1151 _("Select the first file to render to:") :
1152 _("Select a file to render to:"))));
1155 format_tools = new FormatTools(mwindow, this, asset);
1156 format_tools->create_objects(x, y,
1157 1, 1, 1, 1, 0, 1, 0, 0, &render->strategy, 0);
1159 add_subwindow(new BC_Title(x, y, _("Render range:")));
1162 add_subwindow(rangeproject = new RenderRangeProject(this,
1163 render->range_type == RANGE_PROJECT, x, y));
1165 add_subwindow(rangeselection = new RenderRangeSelection(this,
1166 render->range_type == RANGE_SELECTION, x, y));
1168 add_subwindow(rangeinout = new RenderRangeInOut(this,
1169 render->range_type == RANGE_INOUT, x, y));
1173 renderprofile = new RenderProfile(mwindow, this, x, y, 1);
1174 renderprofile->create_objects();
1177 loadmode = new LoadMode(mwindow, this, x, y, &render->load_mode, 1);
1178 loadmode->create_objects();
1180 add_subwindow(new BC_OKButton(this));
1181 add_subwindow(new BC_CancelButton(this));
1186 void RenderWindow::update_range_type(int range_type)
1188 render->range_type = range_type;
1189 rangeproject->update(range_type == RANGE_PROJECT);
1190 rangeselection->update(range_type == RANGE_SELECTION);
1191 rangeinout->update(range_type == RANGE_INOUT);
1195 RenderRangeProject::RenderRangeProject(RenderWindow *rwindow, int value, int x, int y)
1196 : BC_Radial(x, y, value, _("Project"))
1198 this->rwindow = rwindow;
1200 int RenderRangeProject::handle_event()
1202 rwindow->update_range_type(RANGE_PROJECT);
1206 RenderRangeSelection::RenderRangeSelection(RenderWindow *rwindow, int value, int x, int y)
1207 : BC_Radial(x, y, value, _("Selection"))
1209 this->rwindow = rwindow;
1211 int RenderRangeSelection::handle_event()
1213 rwindow->update_range_type(RANGE_SELECTION);
1218 RenderRangeInOut::RenderRangeInOut(RenderWindow *rwindow, int value, int x, int y)
1219 : BC_Radial(x, y, value, _("In/Out Points"))
1221 this->rwindow = rwindow;
1223 int RenderRangeInOut::handle_event()
1225 rwindow->update_range_type(RANGE_INOUT);