mirror of https://github.com/SixLabors/ImageSharp
7 changed files with 62 additions and 48 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 SegmentErrorHandling |
||||
|
{ |
||||
|
/// <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 |
||||
|
} |
||||
Loading…
Reference in new issue