summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/QueryParser.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-01-18 13:42:08 +0000
committersr55 <[email protected]>2010-01-18 13:42:08 +0000
commit8d85eac5e739572e79f846059991ad31e9cd6774 (patch)
treeaa797c2bd781101299f00c71268fba60d4d613e6 /win/C#/Functions/QueryParser.cs
parent4ce078d06a1c45c562cfd1732ffcbfd60a8e5e5a (diff)
WinGui:
- Just some re-factored code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3077 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/QueryParser.cs')
-rw-r--r--win/C#/Functions/QueryParser.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs
index 78a73b52b..60afe7bca 100644
--- a/win/C#/Functions/QueryParser.cs
+++ b/win/C#/Functions/QueryParser.cs
@@ -40,10 +40,10 @@ namespace Handbrake.Functions
public string CropLeft { get; set; }
public string CropRight { get; set; }
public int AnamorphicMode { get; set; }
- public Boolean keepDisplayAsect { get; set; }
- public double displayWidthValue { get; set; }
- public int pixelAspectWidth { get; set; }
- public int pixelAspectHeight { get; set; }
+ public Boolean KeepDisplayAsect { get; set; }
+ public double DisplayWidthValue { get; set; }
+ public int PixelAspectWidth { get; set; }
+ public int PixelAspectHeight { get; set; }
public int AnamorphicModulus { get; set; }
// Video Filters
@@ -234,16 +234,16 @@ namespace Handbrake.Functions
else
thisQuery.AnamorphicMode = 0;
- thisQuery.keepDisplayAsect = keepDisplayAsect.Success;
+ thisQuery.KeepDisplayAsect = keepDisplayAsect.Success;
if (displayWidth.Success)
- thisQuery.displayWidthValue = double.Parse(displayWidth.Groups[0].Value.Replace("--display-width ", ""));
+ thisQuery.DisplayWidthValue = double.Parse(displayWidth.Groups[0].Value.Replace("--display-width ", ""));
if (pixelAspect.Success)
- thisQuery.pixelAspectWidth = int.Parse(pixelAspect.Groups[1].Value.Replace("--pixel-aspect ", ""));
+ thisQuery.PixelAspectWidth = int.Parse(pixelAspect.Groups[1].Value.Replace("--pixel-aspect ", ""));
if (pixelAspect.Success && pixelAspect.Groups.Count >=3)
- thisQuery.pixelAspectHeight = int.Parse(pixelAspect.Groups[2].Value.Replace("--pixel-aspect ", ""));
+ thisQuery.PixelAspectHeight = int.Parse(pixelAspect.Groups[2].Value.Replace("--pixel-aspect ", ""));
if (modulus.Success)
thisQuery.AnamorphicModulus = int.Parse(modulus.Groups[0].Value.Replace("--modulus ", ""));
@@ -375,11 +375,11 @@ namespace Handbrake.Functions
if (trackMixes != null)
if (trackMixes.Length >= (x + 1)) // Audio Mix
- track.MixDown = getMixDown(trackMixes[x].Trim());
+ track.MixDown = GetMixDown(trackMixes[x].Trim());
if (trackEncoders != null)
if (trackEncoders.Length >= (x + 1)) // Audio Mix
- track.Encoder = getAudioEncoder(trackEncoders[x].Trim());
+ track.Encoder = GetAudioEncoder(trackEncoders[x].Trim());
if (trackBitrates != null)
if (trackBitrates.Length >= (x + 1)) // Audio Encoder
@@ -431,7 +431,7 @@ namespace Handbrake.Functions
return thisQuery;
}
- private static string getMixDown(string mixdown)
+ private static string GetMixDown(string mixdown)
{
switch (mixdown.Trim())
{
@@ -449,7 +449,7 @@ namespace Handbrake.Functions
return "Automatic";
}
}
- private static string getAudioEncoder(string audioEnc)
+ private static string GetAudioEncoder(string audioEnc)
{
switch (audioEnc)
{