|
|
|
@ -1,8 +1,6 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Webp |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
@ -21,27 +19,13 @@ namespace SixLabors.ImageSharp.Formats.Webp |
|
|
|
/// Initializes a new instance of the <see cref="WebpMetadata"/> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="other">The metadata to create an instance from.</param>
|
|
|
|
private WebpMetadata(WebpMetadata other) |
|
|
|
{ |
|
|
|
this.Animated = other.Animated; |
|
|
|
this.Format = other.Format; |
|
|
|
} |
|
|
|
private WebpMetadata(WebpMetadata other) => this.Format = other.Format; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the webp format used. Either lossless or lossy.
|
|
|
|
/// </summary>
|
|
|
|
public WebpFormatType Format { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets all found chunk types ordered by appearance.
|
|
|
|
/// </summary>
|
|
|
|
public Queue<WebpChunkType> ChunkTypes { get; } = new Queue<WebpChunkType>(); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether the webp file contains an animation.
|
|
|
|
/// </summary>
|
|
|
|
public bool Animated { get; set; } |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
public IDeepCloneable DeepClone() => new WebpMetadata(this); |
|
|
|
} |
|
|
|
|