mirror of https://github.com/SixLabors/ImageSharp
committed by
GitHub
12 changed files with 94 additions and 49 deletions
@ -1,30 +0,0 @@ |
|||
// Copyright (c) Six Labors.
|
|||
// Licensed under the Six Labors Split License.
|
|||
|
|||
namespace SixLabors.ImageSharp.Formats.Png; |
|||
|
|||
/// <summary>
|
|||
/// Specifies how to handle validation of any CRC (Cyclic Redundancy Check) data within the encoded PNG.
|
|||
/// </summary>
|
|||
public enum PngCrcChunkHandling |
|||
{ |
|||
/// <summary>
|
|||
/// Do not ignore any CRC chunk errors.
|
|||
/// </summary>
|
|||
IgnoreNone, |
|||
|
|||
/// <summary>
|
|||
/// Ignore CRC errors in non critical chunks.
|
|||
/// </summary>
|
|||
IgnoreNonCritical, |
|||
|
|||
/// <summary>
|
|||
/// Ignore CRC errors in data chunks.
|
|||
/// </summary>
|
|||
IgnoreData, |
|||
|
|||
/// <summary>
|
|||
/// Ignore CRC errors in all chunks.
|
|||
/// </summary>
|
|||
IgnoreAll |
|||
} |
|||
@ -0,0 +1,30 @@ |
|||
// Copyright (c) Six Labors.
|
|||
// Licensed under the Six Labors Split License.
|
|||
|
|||
namespace SixLabors.ImageSharp.Formats; |
|||
|
|||
/// <summary>
|
|||
/// Specifies how to handle validation of errors in different segments of encoded image files.
|
|||
/// </summary>
|
|||
public enum SegmentIntegrityHandling |
|||
{ |
|||
/// <summary>
|
|||
/// Do not ignore any errors.
|
|||
/// </summary>
|
|||
IgnoreNone, |
|||
|
|||
/// <summary>
|
|||
/// Ignore errors in non-critical segments of the encoded image.
|
|||
/// </summary>
|
|||
IgnoreNonCritical, |
|||
|
|||
/// <summary>
|
|||
/// Ignore errors in data segments (e.g., image data, metadata).
|
|||
/// </summary>
|
|||
IgnoreData, |
|||
|
|||
/// <summary>
|
|||
/// Ignore errors in all segments.
|
|||
/// </summary>
|
|||
IgnoreAll |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
version https://git-lfs.github.com/spec/v1 |
|||
oid sha256:6cd36c7e07a08e22cceecd28a056c80e5553a8c092bfc091e902d13bd5c46f4d |
|||
size 120054 |
|||
@ -0,0 +1,3 @@ |
|||
version https://git-lfs.github.com/spec/v1 |
|||
oid sha256:feb938396b9d5b4c258244197ba382937a52c93f72cc91081c7e6810e4a3b94c |
|||
size 6136 |
|||
Loading…
Reference in new issue