Skip to content

Commit

Permalink
Merge branch 'release/2.33.33.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
tautcony committed May 7, 2017
2 parents 4e55b4e + 90443cb commit c8f6520
Show file tree
Hide file tree
Showing 21 changed files with 957 additions and 921 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,3 +346,8 @@
- 增加json输出格式
- 增加对高分屏的支持
- 增加对UHD原盘基础支持

## [2.33.33.3]
- 错误修正与效能提升
- 完整功能的UHD章节读取
- 全新喷气脑袋风格图标
2 changes: 1 addition & 1 deletion Time_Shift/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>
</startup>
<appSettings>
Expand Down
197 changes: 90 additions & 107 deletions Time_Shift/Forms/Form1.cs

Large diffs are not rendered by default.

80 changes: 21 additions & 59 deletions Time_Shift/Forms/Form1.resx
Original file line number Diff line number Diff line change
Expand Up @@ -846,15 +846,6 @@
<data name="InsertSplitToolStripMenuItem.Text" xml:space="preserve">
<value>插入分隔条</value>
</data>
<data name="textBoxExpression.Location" type="System.Drawing.Point, System.Drawing">
<value>303, 37</value>
</data>
<data name="textBoxExpression.Size" type="System.Drawing.Size, System.Drawing">
<value>178, 23</value>
</data>
<data name="textBoxExpression.TabIndex" type="System.Int32, mscorlib">
<value>31</value>
</data>
<data name="&gt;&gt;textBoxExpression.Name" xml:space="preserve">
<value>textBoxExpression</value>
</data>
Expand Down Expand Up @@ -888,6 +879,27 @@
<data name="&gt;&gt;panel1.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="textBoxExpression.Location" type="System.Drawing.Point, System.Drawing">
<value>303, 37</value>
</data>
<data name="textBoxExpression.Size" type="System.Drawing.Size, System.Drawing">
<value>178, 23</value>
</data>
<data name="textBoxExpression.TabIndex" type="System.Int32, mscorlib">
<value>31</value>
</data>
<data name="&gt;&gt;textBoxExpression.Name" xml:space="preserve">
<value>textBoxExpression</value>
</data>
<data name="&gt;&gt;textBoxExpression.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;textBoxExpression.Parent" xml:space="preserve">
<value>panel1</value>
</data>
<data name="&gt;&gt;textBoxExpression.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>937, 20</value>
</metadata>
Expand Down Expand Up @@ -959,56 +971,6 @@
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>微软雅黑, 9pt</value>
</data>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAMAEBAQAAAABAAoAQAANgAAACAgEAAAAAQA6AIAAF4BAAAwMBAAAAAEAGgGAABGBAAAKAAAABAA
AAAgAAAAAQAEAAAAAACAAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAAAIAAAIAAAACAgACAAAAAgACAAICA
AACAgIAAwMDAAAAA/wAA/wAAAP//AP8AAAD/AP8A//8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AACAAQAAtv0AALb9
AACAbQAAtv0AALb9AACAbQAAtv0AALb9AACAAQAAtv8AALb/AACA/wAA//8AAP//AAAoAAAAIAAAAEAA
AAABAAQAAAAAAAACAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAIC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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAPAA
AAAADwAA8AAAAAAPAADwAAAAAA8AAPAAAAAADwAA8PDw//8PAADw8PD//w8AAPDw8P//DwAA8PDw//8P
AADwAAAPDw8AAPAAAA8PDwAA8AAADw8PAADwAAAPDw8AAPDw8P//DwAA8PDw//8PAADw8PD//w8AAPDw
8P//DwAA8AAADw8PAADwAAAPDw8AAPAAAA8PDwAA8AAADw8PAADw8PD//w8AAPDw8P//DwAA8PDw//8P
AADw8PD//w8AAPAAAAAADwAA8AAAAAAPAADwAAAAAA8AAPAAAAAADwAA8PDw////AADw8PD///8AAPDw
8P///wAA8PDw////AADwAAD///8AAPAAAP///wAA8AAA////AADwAAD///8AAP///////wAA////////
AAD///////8AAP///////wAA////////AAD///////8AAA==
</value>
</data>
<data name="$this.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 4, 3, 4</value>
</data>
Expand Down
2 changes: 2 additions & 0 deletions Time_Shift/Forms/FormLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// code from http://sourceforge.net/projects/gmkvextractgui/
// ****************************************************************************
using System;
using System.Drawing;
using ChapterTool.Util;
using System.Reflection;
using System.Windows.Forms;
Expand All @@ -20,6 +21,7 @@ public FormLog()
private void InitForm()
{
Text = $"ChapterTool v{Assembly.GetExecutingAssembly().GetName().Version} -- Log";
Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath);
}

private void frmLog_Activated(object sender, EventArgs e)
Expand Down
51 changes: 0 additions & 51 deletions Time_Shift/Forms/FormLog.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,55 +117,4 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAMAEBAQAAAABAAoAQAANgAAACAgEAAAAAQA6AIAAF4BAAAwMBAAAAAEAGgGAABGBAAAKAAAABAA
AAAgAAAAAQAEAAAAAACAAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAAAIAAAIAAAACAgACAAAAAgACAAICA
AACAgIAAwMDAAAAA/wAA/wAAAP//AP8AAAD/AP8A//8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AACAAQAAtv0AALb9
AACAbQAAtv0AALb9AACAbQAAtv0AALb9AACAAQAAtv8AALb/AACA/wAA//8AAP//AAAoAAAAIAAAAEAA
AAABAAQAAAAAAAACAAAAAAAAAAAAABAAAAAQ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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAPAA
AAAADwAA8AAAAAAPAADwAAAAAA8AAPAAAAAADwAA8PDw//8PAADw8PD//w8AAPDw8P//DwAA8PDw//8P
AADwAAAPDw8AAPAAAA8PDwAA8AAADw8PAADwAAAPDw8AAPDw8P//DwAA8PDw//8PAADw8PD//w8AAPDw
8P//DwAA8AAADw8PAADwAAAPDw8AAPAAAA8PDwAA8AAADw8PAADw8PD//w8AAPDw8P//DwAA8PDw//8P
AADw8PD//w8AAPAAAAAADwAA8AAAAAAPAADwAAAAAA8AAPAAAAAADwAA8PDw////AADw8PD///8AAPDw
8P///wAA8PDw////AADwAAD///8AAPAAAP///wAA8AAA////AADwAAD///8AAP///////wAA////////
AAD///////8AAP///////wAA////////AAD///////8AAA==
</value>
</data>
</root>
Binary file removed Time_Shift/Images/Ct.ico
Binary file not shown.
Binary file modified Time_Shift/Images/icon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions Time_Shift/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.33.33.2")]
[assembly: AssemblyFileVersion("2.33.33.2")]
[assembly: AssemblyVersion("2.33.33.3")]
[assembly: AssemblyFileVersion("2.33.33.3")]
3 changes: 2 additions & 1 deletion Time_Shift/Time_Shift.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@
<Compile Include="SharpDvdInfo\Model\VmgmInfo.cs" />
<Compile Include="Util\ChapterData\FlacData.cs" />
<Compile Include="Util\ChapterData\Serializable\MatroskaChapters.cs" />
<Compile Include="Util\ChapterData\StreamUtils.cs" />
<Compile Include="Util\ChapterInfoGroup.cs" />
<Compile Include="Util\Expression.cs" />
<Compile Include="Util\TaskAsync.cs" />
<Compile Include="Util\Chapter.cs" />
Expand Down Expand Up @@ -239,7 +241,6 @@
<None Include="app.manifest" />
<None Include="Images\arrow_drop_down.png" />
<None Include="Images\arrow_drop_up.png" />
<Content Include="Images\Ct.ico" />
<Content Include="Images\icon.ico" />
<None Include="Images\unfold_more.png" />
<Content Include="libmp4v2.dll">
Expand Down
8 changes: 4 additions & 4 deletions Time_Shift/Util/ChapterData/BDMVData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ public static class BDMVData

private static readonly Regex RDiskInfo = new Regex(@"(?<idx>\d)\) (?<mpls>\d+\.mpls), (?:(?:(?<dur>\d+:\d+:\d+)[\n\s\b]*(?<fn>.+\.m2ts))|(?:(?<fn2>.+\.m2ts), (?<dur2>\d+:\d+:\d+)))", RegexOptions.Compiled);

public static async Task<KeyValuePair<string, List<ChapterInfo>>> GetChapterAsync(string location)
public static async Task<KeyValuePair<string, BDMVGroup>> GetChapterAsync(string location)
{
var list = new List<ChapterInfo>();
var list = new BDMVGroup();
var bdmvTitle = string.Empty;
var path = Path.Combine(location, "BDMV", "PLAYLIST");
if (!Directory.Exists(path))
Expand Down Expand Up @@ -43,7 +43,7 @@ public static async Task<KeyValuePair<string, List<ChapterInfo>>> GetChapterAsyn
if (string.IsNullOrEmpty(eac3toPath) || !File.Exists(eac3toPath))
{
eac3toPath = Notification.InputBox("请输入eac3to的地址", "注意不要带上多余的引号", "C:\\eac3to\\eac3to.exe");
if (string.IsNullOrEmpty(eac3toPath)) return new KeyValuePair<string, List<ChapterInfo>>(bdmvTitle, list);
if (string.IsNullOrEmpty(eac3toPath)) return new KeyValuePair<string, BDMVGroup>(bdmvTitle, list);
RegistryStorage.Save(name: "eac3toPath",value: eac3toPath);
}
var workingPath = Directory.GetParent(location).FullName;
Expand Down Expand Up @@ -98,7 +98,7 @@ public static async Task<KeyValuePair<string, List<ChapterInfo>>> GetChapterAsyn
toBeRemove.ForEach(item => list.Remove(item));
if(File.Exists(chapterPath)) File.Delete(chapterPath);
if(File.Exists(logPath)) File.Delete(logPath);
return new KeyValuePair<string, List<ChapterInfo>>(bdmvTitle, list);
return new KeyValuePair<string, BDMVGroup>(bdmvTitle, list);
}
}
}
48 changes: 0 additions & 48 deletions Time_Shift/Util/ChapterData/FlacData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,54 +192,6 @@ private static void ParsePicture(Stream fs, ref FlacInfo info)
}
}

internal static class Utils
{
public static byte[] ReadBytes(this Stream fs, int length)
{
var ret = new byte[length];
fs.Read(ret, 0, length);
return ret;
}

#region int reader
public static uint BEInt32(this Stream fs)
{
var b = fs.ReadBytes(4);
return b[3] + ((uint)b[2] << 8) + ((uint)b[1] << 16) + ((uint)b[0] << 24);
}

public static uint LEInt32(this Stream fs)
{
var b = fs.ReadBytes(4);
return b[0] + ((uint)b[1] << 8) + ((uint)b[2] << 16) + ((uint)b[3] << 24);
}

public static int BEInt24(this Stream fs)
{
var b = fs.ReadBytes(3);
return b[2] + (b[1] << 8) + (b[0] << 16);
}

public static int LEInt24(this Stream fs)
{
var b = fs.ReadBytes(3);
return b[0] + (b[1] << 8) + (b[2] << 16);
}

public static int BEInt16(this Stream fs)
{
var b = fs.ReadBytes(2);
return b[1] + (b[0] << 8);
}

public static int LEInt16(this Stream fs)
{
var b = fs.ReadBytes(2);
return b[0] + (b[1] << 8);
}
#endregion
}

internal class BitReader
{
private readonly byte[] _buffer;
Expand Down
Loading

0 comments on commit c8f6520

Please sign in to comment.