Skip to content
This repository was archived by the owner on Sep 14, 2024. It is now read-only.

Commit 859e92c

Browse files
committed
Added inverse telecine filter
1 parent 0b71b56 commit 859e92c

4 files changed

Lines changed: 21 additions & 20 deletions

File tree

Av1ador/Encoder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,8 @@ public void Vf_add(string f, [Optional] string v, [Optional] string a, [Optional
502502
if (v == "True")
503503
Vf.Insert(0, "nnedi='weights=" + resdir + "nnedi3_weights.bin:field=a'");
504504
}
505+
else if (f == "detelecine")
506+
Vf.Add("setfield=mode=tff,separatefields,scale=iw:ih*2,setsar=1");
505507
else if (f == "autocolor")
506508
{
507509
Vf.RemoveAll(s => s.StartsWith("scale=in_color_matrix"));

Av1ador/Form1.Designer.cs

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Av1ador/Form1.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public partial class Form1 : Form
2525
[DllImport("user32.dll")]
2626
static extern bool GetCursorPos(ref Point point);
2727

28-
private readonly string title = "Av1ador 1.4.0";
28+
private readonly string title = "Av1ador 1.4.1";
2929
private readonly Regex formatos = new Regex(".+(mkv|mp4|avi|webm|ivf|m2ts|wmv|mpg|mov|3gp|ts|mpeg|y4m|vob|m2v|m4v|flv|asf|png)$", RegexOptions.IgnoreCase);
3030
private Player mpv;
3131
private Video primer_video, segundo_video;
@@ -1763,6 +1763,12 @@ private void DeinterlaceToolStripMenuItem_Click(object sender, EventArgs e)
17631763
Filter_items_update();
17641764
}
17651765

1766+
private void InverseTelecineToolStripMenuItem_Click(object sender, EventArgs e)
1767+
{
1768+
encoder.Vf_add("detelecine");
1769+
Filter_items_update();
1770+
}
1771+
17661772
private void NormalizeToolStripMenuItem_Click(object sender, EventArgs e)
17671773
{
17681774
if (primer_video != null && checkedListBox1.CheckedItems.Count > 0)

Av1ador/Form1.resx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,9 @@
117117
<resheader name="writer">
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120-
<metadata name="toolStrip4.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121-
<value>563, 17</value>
122-
</metadata>
123120
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
124121
<value>248, 17</value>
125122
</metadata>
126-
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
127-
<value>248, 17</value>
128-
</metadata>
129-
<metadata name="toolStrip3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
130-
<value>458, 17</value>
131-
</metadata>
132123
<metadata name="toolStrip3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
133124
<value>458, 17</value>
134125
</metadata>
@@ -138,12 +129,6 @@
138129
<metadata name="toolStrip5.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
139130
<value>668, 17</value>
140131
</metadata>
141-
<metadata name="toolStrip5.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
142-
<value>668, 17</value>
143-
</metadata>
144-
<metadata name="toolStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
145-
<value>353, 17</value>
146-
</metadata>
147132
<metadata name="toolStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
148133
<value>353, 17</value>
149134
</metadata>
@@ -168,9 +153,6 @@
168153
<metadata name="mouseTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
169154
<value>1375, 17</value>
170155
</metadata>
171-
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
172-
<value>150, 17</value>
173-
</metadata>
174156
<metadata name="offMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
175157
<value>170, 54</value>
176158
</metadata>

0 commit comments

Comments
 (0)