remove VLC, use DirectShow and LAV instead

This commit is contained in:
Paddy Xu
2018-07-28 20:33:57 +03:00
parent 8e482da448
commit 10460da435
488 changed files with 7419 additions and 4565 deletions

View File

@@ -22,14 +22,14 @@ using System.Windows.Data;
namespace QuickLook.Plugin.VideoViewer
{
public sealed class TimeSpanToShortStringConverter : DependencyObject, IValueConverter
public sealed class TimeTickToShortStringConverter : DependencyObject, IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null)
return "00:00";
var v = (TimeSpan) value;
var v = TimeSpan.FromTicks((long) value);
var s = string.Empty;
if (v.Hours > 0)
@@ -48,20 +48,20 @@ namespace QuickLook.Plugin.VideoViewer
public sealed class VolumeToIconConverter : DependencyObject, IValueConverter
{
private static readonly string[] Volumes = {"\xE992", "\xE993", "\xE994", "\xE995"};
private static readonly string[] Volumes = {"\xE74F", "\xE993", "\xE994", "\xE995"};
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null)
return Volumes[0];
var v = (int) value;
if (v == 0)
var v = (double) value;
if (Math.Abs(v) < 0.01)
return Volumes[0];
v = Math.Min(v, 100);
v = Math.Min(v, 1);
return Volumes[1 + v / 34];
return Volumes[1 + (int) (v / 0.34)];
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)