IntPtr titleSetPtr = HBFunctions.hb_get_title_set(this.hbHandle);\r
hb_title_set_s titleSet = InteropUtilities.ToStructureFromPtr<hb_title_set_s>(titleSetPtr);\r
this.originalTitles = titleSet.list_title.ToListFromHandBrakeList<hb_title_s>();\r
-
- foreach (hb_title_s title in this.originalTitles)
- {
- this.titles.Add(this.ConvertTitle(title));
- }
-
- if (this.originalTitles.Count > 0)
+\r
+ foreach (hb_title_s title in this.originalTitles)\r
+ {\r
+ this.titles.Add(this.ConvertTitle(title));\r
+ }\r
+\r
+ if (this.originalTitles.Count > 0)\r
{\r
this.featureTitle = titleSet.feature;\r
}\r
AspectRatio = title.aspect,\r
AngleCount = title.angle_count,\r
VideoCodecName = title.video_codec_name,\r
- Framerate = ((double)title.rate) / title.rate_base,
- FramerateNumerator = title.rate,
- FramerateDenominator = title.rate_base,
- Path = Encoding.UTF8.GetString(title.path).TrimEnd('\0')
- };
-
- switch (title.type)
+ Framerate = ((double)title.rate) / title.rate_base,\r
+ FramerateNumerator = title.rate,\r
+ FramerateDenominator = title.rate_base,\r
+ Path = Encoding.UTF8.GetString(title.path).TrimEnd('\0')\r
+ };\r
+\r
+ switch (title.type)\r
{\r
case hb_title_type_anon.HB_STREAM_TYPE:\r
newTitle.InputType = InputType.Stream;\r
</PropertyGroup>\r
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug32|x86' ">\r
<DebugSymbols>true</DebugSymbols>\r
- <OutputPath>bin\x86\Debug31\</OutputPath>\r
+ <OutputPath>bin\x86\Debug\</OutputPath>\r
<DefineConstants>DEBUG;TRACE</DefineConstants>\r
<DebugType>full</DebugType>\r
<PlatformTarget>x86</PlatformTarget>\r
/// </summary>\r
public const string ClearCompletedFromQueue = "ClearCompletedFromQueue";\r
\r
- /// <summary>\r
- /// The enable static preview.\r
- /// </summary>\r
- public const string EnableStaticPreview = "EnableStaticPreview";\r
-\r
#endregion\r
}\r
}
\ No newline at end of file
/// </summary>\r
private bool showAdvancedTab;\r
\r
- /// <summary>\r
- /// The enable static preview.\r
- /// </summary>\r
- private bool enableStaticPreview;\r
-\r
/// <summary>\r
/// The remove punctuation.\r
/// </summary>\r
}\r
}\r
\r
- /// <summary>\r
- /// Gets or sets a value indicating whether enable static preview.\r
- /// </summary>\r
- public bool EnableStaticPreview\r
- {\r
- get\r
- {\r
- return this.enableStaticPreview;\r
- }\r
- set\r
- {\r
- this.enableStaticPreview = value;\r
- this.NotifyOfPropertyChange(() => this.EnableStaticPreview);\r
- }\r
- }\r
-\r
#endregion\r
\r
#region Video\r
this.MinLength = this.userSettingService.GetUserSetting<int>(UserSettingConstants.MinScanDuration);\r
\r
// Use dvdnav\r
- this.DisableLibdvdNav = userSettingService.GetUserSetting<bool>(UserSettingConstants.DisableLibDvdNav);\r
-\r
- this.EnableStaticPreview = userSettingService.GetUserSetting<bool>(UserSettingConstants.EnableStaticPreview); \r
+ this.DisableLibdvdNav = userSettingService.GetUserSetting<bool>(UserSettingConstants.DisableLibDvdNav); \r
\r
int port;\r
int.TryParse(userSettingService.GetUserSetting<string>(UserSettingConstants.ServerPort), out port);\r
userSettingService.SetUserSetting(UserSettingConstants.PreviewScanCount, this.SelectedPreviewCount);\r
userSettingService.SetUserSetting(UserSettingConstants.X264Step, double.Parse(this.SelectedGranulairty, CultureInfo.InvariantCulture));\r
userSettingService.SetUserSetting(UserSettingConstants.ShowAdvancedTab, this.ShowAdvancedTab);\r
- userSettingService.SetUserSetting(UserSettingConstants.EnableStaticPreview, this.EnableStaticPreview);\r
\r
int value;\r
if (int.TryParse(this.MinLength.ToString(CultureInfo.InvariantCulture), out value))\r
}\r
}\r
\r
- /// <summary>\r
- /// Gets a value indicating whether is picture preview enabled.\r
- /// </summary>\r
- public bool IsPicturePreviewEnabled\r
- {\r
- get\r
- {\r
- return this.UserSettingService.GetUserSetting<bool>(UserSettingConstants.EnableStaticPreview);\r
- }\r
- }\r
-\r
#endregion\r
\r
#region Task Properties\r
<TextBlock Text="Alpha Features" FontSize="14" Margin="0,0,0,10"/>\r
\r
<StackPanel Orientation="Vertical" Margin="20,0,0,0">\r
- <CheckBox Content="Enable Static Preview" Margin="0,5,0,0" IsChecked="{Binding EnableStaticPreview}" />\r
- \r
+ \r
<CheckBox Content="Use LibHB for Encoding (uses hb.dll instead of HandBrakeCLI.exe)" Margin="0,5,0,0" IsChecked="{Binding EnableLibHb}" Visibility="Collapsed" />\r
<CheckBox Content="Enable Process Isolation (Run Encodes via an intermediate service)" Margin="20,10,0,0" IsChecked="{Binding EnableProcessIsolation}" Visibility="Collapsed" />\r
<StackPanel Orientation="Horizontal" Margin="0,10,0,0" Visibility="Collapsed">\r
</StackPanel>\r
\r
<!-- Preview Panel -->\r
- <StackPanel Name="PreviewPanel" Margin="0,5,0,0" VerticalAlignment="Top" HorizontalAlignment="Stretch" Grid.Row="1" Grid.Column="0"\r
- Visibility="{Binding IsPicturePreviewEnabled, Converter={StaticResource boolToVisConverter}}">\r
+ <StackPanel Name="PreviewPanel" Margin="0,5,0,0" VerticalAlignment="Top" HorizontalAlignment="Stretch" Grid.Row="1" Grid.Column="0">\r
<Label Content="Output" FontWeight="Bold" />\r
\r
<Grid Margin="5,0,0,0">\r