Skip to content

Commit

Permalink
VIX-2683 Initial work to support the new FSEQ v2.0 file format. This …
Browse files Browse the repository at this point in the history
…implements the zstd compression blocks with middle of the road compression. There is a some logic for sparse blocks, but it is not fully implemented. There is still debugging code to write values to the console that needs to be removed after further testing.
  • Loading branch information
jeffu231 committed May 15, 2019
1 parent dd71c95 commit 4096751
Show file tree
Hide file tree
Showing 33 changed files with 878 additions and 22 deletions.
8 changes: 8 additions & 0 deletions Common/Libraries/Libraries.csproj
Expand Up @@ -208,6 +208,9 @@
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\packages\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll</HintPath>
</Reference>
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.IO.Compression" />
Expand Down Expand Up @@ -260,6 +263,9 @@
<HintPath>..\..\packages\DockPanelSuite.ThemeVS2015.3.0.6\lib\net40\WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll</HintPath>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="Zstandard.Net, Version=1.1.5.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Zstandard.Net.1.1.5\lib\net45\Zstandard.Net.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NShape\Core\NShape.csproj">
Expand Down Expand Up @@ -292,7 +298,9 @@
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\packages\Mono.Security.5.4.0.201\build\net45\Mono.Security.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Mono.Security.5.4.0.201\build\net45\Mono.Security.targets'))" />
<Error Condition="!Exists('..\..\packages\Zstandard.Net.1.1.5\build\Zstandard.Net.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Zstandard.Net.1.1.5\build\Zstandard.Net.targets'))" />
</Target>
<Import Project="..\..\packages\Zstandard.Net.1.1.5\build\Zstandard.Net.targets" Condition="Exists('..\..\packages\Zstandard.Net.1.1.5\build\Zstandard.Net.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
2 changes: 2 additions & 0 deletions Common/Libraries/packages.config
Expand Up @@ -26,6 +26,8 @@
<package id="Svg" version="2.4.0" targetFramework="net462" />
<package id="System.Collections.Immutable" version="1.5.0" targetFramework="net462" />
<package id="System.ComponentModel.Annotations" version="4.5.0" targetFramework="net462" />
<package id="System.Buffers" version="4.4.0" targetFramework="net462" />
<package id="Zstandard.Net" version="1.1.5" targetFramework="net462" />
<package id="System.Dynamic.Runtime" version="4.3.0" targetFramework="net462" />
<package id="System.Reflection" version="4.3.0" targetFramework="net462" />
<package id="System.Runtime.Serialization.Formatters" version="4.3.0" targetFramework="net462" />
Expand Down
20 changes: 3 additions & 17 deletions Modules/Editor/TimedSequenceEditor/ExportDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Vixen.System/Export/Export.cs
Expand Up @@ -59,7 +59,7 @@ public Export()
foreach (Type theType in types.ToArray())
{
exportWriter = (IExportWriter)Activator.CreateInstance(theType);
_writers[exportWriter.FileType] = exportWriter;
_writers[exportWriter.FileTypeDescr] = exportWriter;
_exportFileTypes[exportWriter.FileTypeDescr] = exportWriter.FileType;
}

Expand Down Expand Up @@ -324,7 +324,7 @@ public async Task DoExport(ISequence sequence, string outFormat, IProgress<Expor

if ((sequence != null) && (_exportFileTypes.TryGetValue(outFormat,out fileType)))
{
if (_writers.TryGetValue(fileType, out _output))
if (_writers.TryGetValue(outFormat, out _output))
{
_generator = new SequenceIntervalGenerator(UpdateInterval, sequence);
//WriteControllerInfo(sequence);
Expand Down

0 comments on commit 4096751

Please sign in to comment.