mirror of https://github.com/SixLabors/ImageSharp
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.
26 lines
813 B
26 lines
813 B
// Copyright (c) Six Labors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using System;
|
|
using SixLabors.ImageSharp.Formats;
|
|
|
|
namespace SixLabors.ImageSharp.PixelFormats
|
|
{
|
|
/// <content>
|
|
/// Provides optimized overrides for bulk operations.
|
|
/// </content>
|
|
public partial struct Short4
|
|
{
|
|
/// <summary>
|
|
/// Provides optimized overrides for bulk operations.
|
|
/// </summary>
|
|
internal class PixelOperations : PixelOperations<Short4>
|
|
{
|
|
private static readonly Lazy<PixelTypeInfo> LazyInfo =
|
|
new Lazy<PixelTypeInfo>(() => PixelTypeInfo.Create<Short4>(PixelAlphaRepresentation.Unassociated), true);
|
|
|
|
/// <inheritdoc />
|
|
public override PixelTypeInfo GetPixelTypeInfo() => LazyInfo.Value;
|
|
}
|
|
}
|
|
}
|
|
|