diff options
author | sr55 <[email protected]> | 2008-09-11 21:34:05 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-09-11 21:34:05 +0000 |
commit | e8eecb6a769f4ab46b6820ff642c9b817c1c5e11 (patch) | |
tree | 06c306e577560d6548cee9e8bc66b55d04656c6d /win/C#/Functions/QueryParser.cs | |
parent | 3542367d63f7fb4d443645e5a61ff60ae709382b (diff) |
WinGui:
- Slider control for deblock.
- Fix: Load normal preset if userdefault setting string is empty.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1690 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/QueryParser.cs')
-rw-r--r-- | win/C#/Functions/QueryParser.cs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs index 80fe989f8..347e3f988 100644 --- a/win/C#/Functions/QueryParser.cs +++ b/win/C#/Functions/QueryParser.cs @@ -231,11 +231,11 @@ namespace Handbrake.Functions }
}
- private Boolean q_deBlock;
+ private int q_deBlock;
/// <summary>
/// Returns a boolean to indicate wither DeBlock is on or off.
/// </summary>
- public Boolean DeBlock
+ public int DeBlock
{
get
{
@@ -814,7 +814,7 @@ namespace Handbrake.Functions Match height = Regex.Match(input, @"-l ([0-9]*)");
Match deinterlace = Regex.Match(input, @"--deinterlace=\""([a-zA-Z]*)\""");
Match denoise = Regex.Match(input, @"--denoise=\""([a-zA-Z]*)\""");
- Match deblock = Regex.Match(input, @"--deblock");
+ Match deblock = Regex.Match(input, @"--deblock=([0-9]*)");
Match detelecine = Regex.Match(input, @"--detelecine");
Match anamorphic = Regex.Match(input, @" -p ");
Match chapterMarkers = Regex.Match(input, @" -m");
@@ -953,8 +953,16 @@ namespace Handbrake.Functions thisQuery.q_cropRight = actCropValues[3];
}
+ // Deblock Slider
+ string deblockValue = "";
+ thisQuery.q_deBlock = 0;
+ if (deblock.Success != false)
+ deblockValue = deblock.ToString().Replace("--deblock=", "");
+
+ if (deblockValue != "")
+ int.TryParse(deblockValue, out thisQuery.q_deBlock);
+
thisQuery.q_detelecine = detelecine.Success;
- thisQuery.q_deBlock = deblock.Success;
thisQuery.q_decomb = decomb.Success;
thisQuery.q_deinterlace = "None";
|