diff options
author | sr55 <[email protected]> | 2009-02-11 23:33:19 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-02-11 23:33:19 +0000 |
commit | 7556f1aa51659a9d5aa96e6f7b8e0e9dcf165248 (patch) | |
tree | d69d1f18b55931b8e8f2a20dbdc62a496018d753 /win/C#/Functions | |
parent | bfd2a847978e4594236ff012ec69f5867c0e74d0 (diff) |
WinGui:
- Constant Quality Slider now QP/RF based.
- Nearest percentage is also shown for reference.
- Preset system also updated to handle new CP/RF values
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2146 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions')
-rw-r--r-- | win/C#/Functions/QueryParser.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs index 68bcac00f..b297ed68e 100644 --- a/win/C#/Functions/QueryParser.cs +++ b/win/C#/Functions/QueryParser.cs @@ -256,7 +256,7 @@ namespace Handbrake.Functions private Boolean q_twoPass;
private string q_videoFramerate;
- private int q_videoQuality;
+ private float q_videoQuality;
private string q_videoTargetSize;
/// <summary>
@@ -334,7 +334,7 @@ namespace Handbrake.Functions /// <summary>
/// Returns a int with the video quality value
/// </summary>
- public int VideoQuality
+ public float VideoQuality
{
get { return q_videoQuality; }
}
@@ -848,12 +848,11 @@ namespace Handbrake.Functions if (videoFilesize.Success)
thisQuery.q_videoTargetSize = videoFilesize.ToString().Replace("-S ", "");
- double qConvert;
if (videoQuality.Success)
{
- qConvert = double.Parse(videoQuality.ToString().Replace("-q ", ""), Culture)*100;
- qConvert = Math.Ceiling(qConvert);
- thisQuery.q_videoQuality = int.Parse(qConvert.ToString());
+ float qConvert = float.Parse(videoQuality.ToString().Replace("-q ", ""), Culture);
+ //qConvert = Math.Ceiling(qConvert);
+ thisQuery.q_videoQuality = qConvert;
}
#endregion
|