From 19e44be16b86efac53ddfe917562c179118ac8c7 Mon Sep 17 00:00:00 2001 From: Ynse Hoornenborg Date: Wed, 13 Aug 2025 23:39:18 +0200 Subject: [PATCH] Fix build warnings --- src/ImageSharp/Formats/Heif/Av1/Av1YuvConverter.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/ImageSharp/Formats/Heif/Av1/Av1YuvConverter.cs b/src/ImageSharp/Formats/Heif/Av1/Av1YuvConverter.cs index 4917e95983..89b1089fca 100644 --- a/src/ImageSharp/Formats/Heif/Av1/Av1YuvConverter.cs +++ b/src/ImageSharp/Formats/Heif/Av1/Av1YuvConverter.cs @@ -64,10 +64,6 @@ internal class Av1YuvConverter { // Weight multiplied by 256 to exploit full byte resolution, rounded to the nearest integer. // Using BT.709 specification - const int rvWeight = (int)(1.28033 * 255); - const int guWeight = (int)(-0.21482 * 255); - const int gvWeight = (int)(-0.38059 * 255); - const int buWeight = (int)(2.12798 * 255); Guard.NotNull(buffer.BufferY); Guard.NotNull(buffer.BufferCb); Guard.NotNull(buffer.BufferCr); @@ -126,15 +122,6 @@ internal class Av1YuvConverter private static void ConvertRgbToYuv444(ImageFrame image, Av1FrameBuffer buffer) { // Weight multiplied by 256 to exploit full byte resolution, rounded to the nearest integer. - const int yrWeight = (int)(0.2126 * 255); - const int ygWeight = (int)(0.7152 * 255); - const int ybWeight = (int)(0.0722 * 255); - const int urWeight = (int)(-0.09991 * 255); - const int ugWeight = (int)(-0.33609 * 255); - const int ubWeight = (int)(0.436 * 255); - const int vrWeight = (int)(0.615 * 255); - const int vgWeight = (int)(-0.55861 * 255); - const int vbWeight = (int)(-0.05639 * 255); Guard.NotNull(buffer.BufferY); Guard.NotNull(buffer.BufferCb); Guard.NotNull(buffer.BufferCr);