Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new ImwriteFlags values #1227

Merged
merged 1 commit into from
Mar 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions nuget/OpenCvSharp4.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,29 @@
<repository type="git" url="https://github.com/shimat/opencvsharp.git" />
<dependencies>
<group targetFramework="net48">
<dependency id="System.Drawing.Common" version="5.0.1" />
<dependency id="System.Drawing.Common" version="5.0.2" />
<dependency id="System.Runtime.CompilerServices.Unsafe" version="5.0.0" />
<dependency id="System.Memory" version="4.5.4" />
<dependency id="System.ValueTuple" version="4.5.0" />
</group>
<group targetFramework="net461">
<dependency id="System.Drawing.Common" version="5.0.1" />
<dependency id="System.Drawing.Common" version="5.0.2" />
<dependency id="System.Runtime.CompilerServices.Unsafe" version="5.0.0" />
<dependency id="System.Memory" version="4.5.4" />
<dependency id="System.ValueTuple" version="4.5.0" />
</group>
<group targetFramework="netstandard2.0">
<dependency id="System.Drawing.Common" version="5.0.1" />
<dependency id="System.Drawing.Common" version="5.0.2" />
<dependency id="System.Runtime.CompilerServices.Unsafe" version="5.0.0" />
<dependency id="System.Memory" version="4.5.4" />
</group>
<group targetFramework="netstandard2.1">
<dependency id="System.Drawing.Common" version="5.0.1" />
<dependency id="System.Drawing.Common" version="5.0.2" />
<dependency id="System.Runtime.CompilerServices.Unsafe" version="5.0.0" />
<dependency id="System.Memory" version="4.5.4" />
</group>
<group targetFramework="netcoreapp2.1">
<dependency id="System.Drawing.Common" version="5.0.1" />
<dependency id="System.Drawing.Common" version="5.0.2" />
<dependency id="System.Runtime.CompilerServices.Unsafe" version="5.0.0" />
<dependency id="System.Memory" version="4.5.4" />
</group>
Expand Down
2 changes: 1 addition & 1 deletion src/OpenCvSharp.Extensions/OpenCvSharp.Extensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<ItemGroup>
<PackageReference Include="System.Drawing.Common">
<Version>5.0.1</Version>
<Version>5.0.2</Version>
</PackageReference>
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Drawing.Common" Version="5.0.1" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
</ItemGroup>

<PropertyGroup>
Expand Down
16 changes: 15 additions & 1 deletion src/OpenCvSharp/Modules/imgcodecs/Enum/ImwriteFlags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,20 @@ public enum ImwriteFlags
/// <summary>
/// For TIFF, use to specify the Y direction DPI
/// </summary>
TiffYDpi = 258
TiffYDpi = 258,

/// <summary>
/// For TIFF, use to specify the image compression scheme.
/// See libtiff for integer constants corresponding to compression formats.
/// Note, for images whose depth is CV_32F, only libtiff's SGILOG compression scheme is used.
/// For other supported depths, the compression scheme can be specified by this flag; LZW compression is the default.
/// </summary>
TiffCompression = 259,

/// <summary>
/// For JPEG2000, use to specify the target compression rate (multiplied by 1000).
/// The value can be from 0 to 1000. Default is 1000.
/// </summary>
Jpeg2000CompressionX1000 = 272
}
}
2 changes: 1 addition & 1 deletion test/OpenCvSharp.Tests/OpenCvSharp.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.1" />
<PackageReference Include="SharpZipLib" Version="1.3.1" />
<PackageReference Include="System.Memory" Version="4.5.4" />
<PackageReference Include="xunit" Version="2.4.1" />
Expand Down