📷 A modern, cross-platform, 2D Graphics library for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

45 lines
1.3 KiB

// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Webp.Lossy
{
/// <summary>
/// Segment features.
/// </summary>
internal class Vp8SegmentHeader
{
private const int NumMbSegments = 4;
/// <summary>
/// Initializes a new instance of the <see cref="Vp8SegmentHeader"/> class.
/// </summary>
public Vp8SegmentHeader()
{
this.Quantizer = new byte[NumMbSegments];
this.FilterStrength = new byte[NumMbSegments];
}
public bool UseSegment { get; set; }
/// <summary>
/// Gets or sets a value indicating whether to update the segment map or not.
/// </summary>
public bool UpdateMap { get; set; }
/// <summary>
/// Gets or sets a value indicating whether to use delta values for quantizer and filter.
/// If this value is false, absolute values are used.
/// </summary>
public bool Delta { get; set; }
/// <summary>
/// Gets quantization changes.
/// </summary>
public byte[] Quantizer { get; }
/// <summary>
/// Gets the filter strength for segments.
/// </summary>
public byte[] FilterStrength { get; }
}
}