// --------------------------------------------------------------------------------------------------------------------
//
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
//
//
// Scaling Converter
//
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrakeWPF.Converters.Video
{
using System;
using System.Globalization;
using System.Windows.Data;
using HandBrake.ApplicationServices.Model;
using HandBrake.ApplicationServices.Utilities;
using HandBrakeWPF.Model;
using HandBrakeWPF.Utilities;
///
/// Video Scaling Converter
///
public class ScalingConverter : IValueConverter
{
///
/// The convert.
///
///
/// The value.
///
///
/// The target type.
///
///
/// The parameter.
///
///
/// The culture.
///
///
/// The .
///
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value != null)
{
return EnumHelper.GetDisplay((VideoScaler)value);
}
return VideoScaler.Lanczos;
}
///
/// The convert back.
///
///
/// The value.
///
///
/// The target type.
///
///
/// The parameter.
///
///
/// The culture.
///
///
/// The .
///
///
/// Not Required.
///
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}