@@ -64,10 +64,6 @@ private static void ConvertYuvToRgb(Av1FrameBuffer<byte> buffer, ImageFrame<Rgb2
64
64
{
65
65
// Weight multiplied by 256 to exploit full byte resolution, rounded to the nearest integer.
66
66
// 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 ) ;
71
67
Guard . NotNull ( buffer . BufferY ) ;
72
68
Guard . NotNull ( buffer . BufferCb ) ;
73
69
Guard . NotNull ( buffer . BufferCr ) ;
@@ -126,15 +122,6 @@ private static void ConvertYuvToRgb(Av1FrameBuffer<byte> buffer, ImageFrame<Rgb2
126
122
private static void ConvertRgbToYuv444 ( ImageFrame < Rgb24 > image , Av1FrameBuffer < byte > buffer )
127
123
{
128
124
// 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 ) ;
138
125
Guard . NotNull ( buffer . BufferY ) ;
139
126
Guard . NotNull ( buffer . BufferCb ) ;
140
127
Guard . NotNull ( buffer . BufferCr ) ;
0 commit comments