Advanced Video preferences subpage
| 428 | |
| 429 | /// Advanced Video preferences subpage |
| 430 | void Advanced_Video(wxTreebook *book, Preferences *parent) { |
| 431 | auto p = new OptionPage(book, parent, _("Video"), OptionPage::PAGE_SUB); |
| 432 | |
| 433 | auto expert = p->PageSizer(_("Expert")); |
| 434 | |
| 435 | wxArrayString vp_choice = to_wx(VideoProviderFactory::GetClasses()); |
| 436 | p->OptionChoice(expert, _("Video provider"), vp_choice, "Video/Provider"); |
| 437 | |
| 438 | wxArrayString sp_choice = to_wx(SubtitlesProviderFactory::GetClasses()); |
| 439 | p->OptionChoice(expert, _("Subtitles provider"), sp_choice, "Subtitle/Provider"); |
| 440 | |
| 441 | #ifdef WITH_AVISYNTH |
| 442 | auto avisynth = p->PageSizer("Avisynth"); |
| 443 | p->OptionAdd(avisynth, _("Allow pre-2.56a Avisynth"), "Provider/Avisynth/Allow Ancient"); |
| 444 | p->CellSkip(avisynth); |
| 445 | p->OptionAdd(avisynth, _("Avisynth memory limit"), "Provider/Avisynth/Memory Max"); |
| 446 | #endif |
| 447 | |
| 448 | #ifdef WITH_FFMS2 |
| 449 | auto ffms = p->PageSizer("FFmpegSource"); |
| 450 | |
| 451 | const wxString log_levels[] = { "Quiet", "Panic", "Fatal", "Error", "Warning", "Info", "Verbose", "Debug" }; |
| 452 | wxArrayString log_levels_choice(8, log_levels); |
| 453 | p->OptionChoice(ffms, _("Debug log verbosity"), log_levels_choice, "Provider/FFmpegSource/Log Level"); |
| 454 | |
| 455 | p->OptionAdd(ffms, _("Decoding threads"), "Provider/Video/FFmpegSource/Decoding Threads", -1); |
| 456 | p->OptionAdd(ffms, _("Enable unsafe seeking"), "Provider/Video/FFmpegSource/Unsafe Seeking"); |
| 457 | #endif |
| 458 | |
| 459 | p->SetSizerAndFit(p->sizer); |
| 460 | } |
| 461 | |
| 462 | /// wxDataViewIconTextRenderer with command name autocompletion |
| 463 | class CommandRenderer final : public wxDataViewCustomRenderer { |
no test coverage detected