Skip to content

Commit 19e44be

Browse files
committed
Fix build warnings
1 parent fc2cf57 commit 19e44be

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/ImageSharp/Formats/Heif/Av1/Av1YuvConverter.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ private static void ConvertYuvToRgb(Av1FrameBuffer<byte> buffer, ImageFrame<Rgb2
6464
{
6565
// Weight multiplied by 256 to exploit full byte resolution, rounded to the nearest integer.
6666
// Using BT.709 specification
67-
const int rvWeight = (int)(1.28033 * 255);
68-
const int guWeight = (int)(-0.21482 * 255);
69-
const int gvWeight = (int)(-0.38059 * 255);
70-
const int buWeight = (int)(2.12798 * 255);
7167
Guard.NotNull(buffer.BufferY);
7268
Guard.NotNull(buffer.BufferCb);
7369
Guard.NotNull(buffer.BufferCr);
@@ -126,15 +122,6 @@ private static void ConvertYuvToRgb(Av1FrameBuffer<byte> buffer, ImageFrame<Rgb2
126122
private static void ConvertRgbToYuv444(ImageFrame<Rgb24> image, Av1FrameBuffer<byte> buffer)
127123
{
128124
// Weight multiplied by 256 to exploit full byte resolution, rounded to the nearest integer.
129-
const int yrWeight = (int)(0.2126 * 255);
130-
const int ygWeight = (int)(0.7152 * 255);
131-
const int ybWeight = (int)(0.0722 * 255);
132-
const int urWeight = (int)(-0.09991 * 255);
133-
const int ugWeight = (int)(-0.33609 * 255);
134-
const int ubWeight = (int)(0.436 * 255);
135-
const int vrWeight = (int)(0.615 * 255);
136-
const int vgWeight = (int)(-0.55861 * 255);
137-
const int vbWeight = (int)(-0.05639 * 255);
138125
Guard.NotNull(buffer.BufferY);
139126
Guard.NotNull(buffer.BufferCb);
140127
Guard.NotNull(buffer.BufferCr);

0 commit comments

Comments
 (0)