summaryrefslogtreecommitdiffstats
path: root/win/C#/frmTestWindow.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-04-14 21:48:34 +0000
committersr55 <[email protected]>2009-04-14 21:48:34 +0000
commit7d4c044ebd62fdeac7a5665ec8fcd2548611ff51 (patch)
tree3bf8384a1b453735cd9437df6c958a5ee0a3a02b /win/C#/frmTestWindow.cs
parent16b2cd579e17d46bdf7bcec3059a92d2c80d21e8 (diff)
WinGui:
- Move some files around. Removes frmMain folder. Removes old x264panel file which is no longer used. Fixes namespace errors. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2327 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmTestWindow.cs')
-rw-r--r--win/C#/frmTestWindow.cs101
1 files changed, 101 insertions, 0 deletions
diff --git a/win/C#/frmTestWindow.cs b/win/C#/frmTestWindow.cs
new file mode 100644
index 000000000..1606a7724
--- /dev/null
+++ b/win/C#/frmTestWindow.cs
@@ -0,0 +1,101 @@
+using System;
+using System.Windows.Forms;
+
+namespace Handbrake.Functions
+{
+ public partial class QueryParserTester : Form
+ {
+ public QueryParserTester()
+ {
+ InitializeComponent();
+
+ }
+
+ private void btn_test_Click(object sender, EventArgs e)
+ {
+ QueryParser parsed = QueryParser.Parse(rtf_query.Text);
+
+ rtf_testContent.Clear();
+
+ //Source
+ rtf_testContent.Text += "## Source " + Environment.NewLine;
+ if (parsed.DVDTitle != 0)
+ rtf_testContent.Text += "Title: " + parsed.DVDTitle + Environment.NewLine;
+ if (parsed.DVDChapterStart != 0)
+ rtf_testContent.Text += "Start Chapter: " + parsed.DVDChapterStart + Environment.NewLine;
+ if (parsed.DVDChapterFinish != 0)
+ rtf_testContent.Text += "End Chapter: " + parsed.DVDChapterFinish + Environment.NewLine;
+
+ //Output Settings
+ rtf_testContent.Text += Environment.NewLine + "## Output Settings " + Environment.NewLine;
+ if (parsed.Format != null)
+ rtf_testContent.Text += "Format: " + parsed.Format + Environment.NewLine;
+ if (parsed.LargeMP4)
+ rtf_testContent.Text += "Large File Size: " + parsed.LargeMP4 + Environment.NewLine;
+ if (parsed.OptimizeMP4)
+ rtf_testContent.Text += "Web Optimized: " + parsed.OptimizeMP4 + Environment.NewLine;
+ if (parsed.IpodAtom)
+ rtf_testContent.Text += "iPod 5G Support " + parsed.IpodAtom + Environment.NewLine;
+
+ //Picture Settings
+ rtf_testContent.Text += Environment.NewLine + "## Picture Settings " + Environment.NewLine;
+ if (parsed.CropValues != null)
+ rtf_testContent.Text += "Cropping: " + parsed.CropValues + Environment.NewLine;
+ if (parsed.Width != 0)
+ rtf_testContent.Text += "Width: " + parsed.Width + Environment.NewLine;
+ if (parsed.Height != 0)
+ rtf_testContent.Text += "Height: " + parsed.Height + Environment.NewLine;
+ if (parsed.MaxWidth != 0)
+ rtf_testContent.Text += "Max Width: " + parsed.MaxWidth + Environment.NewLine;
+ if (parsed.MaxHeight != 0)
+ rtf_testContent.Text += "Max Height: " + parsed.MaxHeight + Environment.NewLine;
+ if (parsed.Anamorphic)
+ rtf_testContent.Text += "Anamorphic: " + parsed.Anamorphic + Environment.NewLine;
+ if (parsed.LooseAnamorphic)
+ rtf_testContent.Text += "Loose Anamorphic: " + parsed.LooseAnamorphic + Environment.NewLine;
+
+ //Picture Settings - Filters
+ rtf_testContent.Text += Environment.NewLine + "## Filters " + Environment.NewLine;
+ rtf_testContent.Text += "Detelecine: " + parsed.DeTelecine + Environment.NewLine;
+ rtf_testContent.Text += "Decomb: " + parsed.Decomb + Environment.NewLine;
+ rtf_testContent.Text += "Deinterlace: " + parsed.DeInterlace + Environment.NewLine;
+ rtf_testContent.Text += "Denoise: " + parsed.DeNoise + Environment.NewLine;
+ rtf_testContent.Text += "Deblock: " + parsed.DeBlock + Environment.NewLine;
+
+ //Video
+ rtf_testContent.Text += Environment.NewLine + "## Video " + Environment.NewLine;
+ rtf_testContent.Text += "Video Codec: " + parsed.VideoEncoder + Environment.NewLine;
+ rtf_testContent.Text += "Video Framerate: " + parsed.VideoFramerate + Environment.NewLine;
+ if (parsed.Grayscale)
+ rtf_testContent.Text += "Grayscale: " + parsed.Grayscale + Environment.NewLine;
+ if (parsed.TwoPass)
+ rtf_testContent.Text += "2-Pass Encoding: " + parsed.TwoPass + Environment.NewLine;
+ if (parsed.TurboFirstPass)
+ rtf_testContent.Text += "Turbo first pass: " + parsed.TurboFirstPass + Environment.NewLine;
+ if (parsed.VideoTargetSize != null)
+ rtf_testContent.Text += "Target Size: " + parsed.VideoTargetSize + Environment.NewLine;
+ if (parsed.AverageVideoBitrate != null)
+ rtf_testContent.Text += "Avg Bitrate: " + parsed.AverageVideoBitrate + Environment.NewLine;
+ if (parsed.VideoQuality != 0)
+ rtf_testContent.Text += "Constant Quality: " + parsed.VideoQuality + Environment.NewLine;
+
+ //Audio
+ // TODO
+
+ //Chapters
+ if (parsed.ChapterMarkers)
+ {
+ rtf_testContent.Text += Environment.NewLine + "## Chapers " + Environment.NewLine;
+ rtf_testContent.Text += "Chapters: " + parsed.ChapterMarkers + Environment.NewLine;
+ }
+
+ //Advanced
+ if (parsed.H264Query != null)
+ {
+ rtf_testContent.Text += Environment.NewLine + "## x264 " + Environment.NewLine;
+ rtf_testContent.Text += "x264: " + parsed.H264Query + Environment.NewLine;
+ }
+ }
+
+ }
+}