@@ -304,7 +304,7 @@ public void Encode<TPixel>(ImageFrame<TPixel> frame, Stream stream, bool hasAnim
304304
305305        if  ( hasAnimation ) 
306306        { 
307-             prevPosition  =  BitWriterBase . WriteAnimationFrame ( stream ,  new ( ) 
307+             prevPosition  =  BitWriterBase . WriteAnimationFrame ( stream ,  new   AnimationFrameData 
308308            { 
309309                Width  =  ( uint ) frame . Width , 
310310                Height  =  ( uint ) frame . Height , 
@@ -547,7 +547,7 @@ private CrunchConfig[] EncoderAnalyze(ReadOnlySpan<uint> bgra, int width, int he
547547        EntropyIx  entropyIdx  =  this . AnalyzeEntropy ( bgra ,  width ,  height ,  usePalette ,  this . PaletteSize ,  this . TransformBits ,  out  redAndBlueAlwaysZero ) ; 
548548
549549        bool  doNotCache  =  false ; 
550-         List < CrunchConfig >  crunchConfigs  =  new ( ) ; 
550+         List < CrunchConfig >  crunchConfigs  =  new   List < CrunchConfig > ( ) ; 
551551
552552        if  ( this . method  ==  WebpEncodingMethod . BestQuality  &&  this . quality  ==  100 ) 
553553        { 
@@ -641,8 +641,8 @@ private void EncodeImage(int width, int height, bool useCache, CrunchConfig conf
641641            Vp8LBackwardRefs  refsTmp  =  this . Refs [ refsBest . Equals ( this . Refs [ 0 ] )  ?  1  :  0 ] ; 
642642
643643            this . bitWriter . Reset ( bwInit ) ; 
644-             Vp8LHistogram  tmpHisto  =  new ( cacheBits ) ; 
645-             List < Vp8LHistogram >  histogramImage  =  new ( histogramImageXySize ) ; 
644+             Vp8LHistogram  tmpHisto  =  new   Vp8LHistogram ( cacheBits ) ; 
645+             List < Vp8LHistogram >  histogramImage  =  new   List < Vp8LHistogram > ( histogramImageXySize ) ; 
646646            for  ( int  i  =  0 ;  i  <  histogramImageXySize ;  i ++ ) 
647647            { 
648648                histogramImage . Add ( new  Vp8LHistogram ( cacheBits ) ) ; 
@@ -839,9 +839,9 @@ private void EncodeImageNoHuffman(Span<uint> bgra, Vp8LHashChain hashChain, Vp8L
839839            refsTmp1 , 
840840            refsTmp2 ) ; 
841841
842-         List < Vp8LHistogram >  histogramImage  =  new ( ) 
842+         List < Vp8LHistogram >  histogramImage  =  new   List < Vp8LHistogram > 
843843        { 
844-             new ( cacheBits ) 
844+             new   Vp8LHistogram ( cacheBits ) 
845845        } ; 
846846
847847        // Build histogram image and symbols from backward references. 
@@ -941,7 +941,7 @@ private void StoreFullHuffmanCode(Span<HuffmanTree> huffTree, HuffmanTreeToken[]
941941        int  i ; 
942942        byte [ ]  codeLengthBitDepth  =  new  byte [ WebpConstants . CodeLengthCodes ] ; 
943943        short [ ]  codeLengthBitDepthSymbols  =  new  short [ WebpConstants . CodeLengthCodes ] ; 
944-         HuffmanTreeCode  huffmanCode  =  new ( ) 
944+         HuffmanTreeCode  huffmanCode  =  new   HuffmanTreeCode 
945945        { 
946946            NumSymbols  =  WebpConstants . CodeLengthCodes , 
947947            CodeLengths  =  codeLengthBitDepth , 
@@ -1192,7 +1192,7 @@ private EntropyIx AnalyzeEntropy(ReadOnlySpan<uint> bgra, int width, int height,
11921192        histo [ ( int ) HistoIx . HistoBluePred  *  256 ] ++ ; 
11931193        histo [ ( int ) HistoIx . HistoAlphaPred  *  256 ] ++ ; 
11941194
1195-         Vp8LBitEntropy  bitEntropy  =  new ( ) ; 
1195+         Vp8LBitEntropy  bitEntropy  =  new   Vp8LBitEntropy ( ) ; 
11961196        for  ( int  j  =  0 ;  j  <  ( int ) HistoIx . HistoTotal ;  j ++ ) 
11971197        { 
11981198            bitEntropy . Init ( ) ; 
@@ -1318,7 +1318,7 @@ private bool AnalyzeAndCreatePalette(ReadOnlySpan<uint> bgra, int width, int hei
13181318    /// <returns>The number of palette entries.</returns> 
13191319    private  static   int  GetColorPalette ( ReadOnlySpan < uint >  bgra ,  int  width ,  int  height ,  Span < uint >  palette ) 
13201320    { 
1321-         HashSet < uint >  colors  =  new ( ) ; 
1321+         HashSet < uint >  colors  =  new   HashSet < uint > ( ) ; 
13221322        for  ( int  y  =  0 ;  y  <  height ;  y ++ ) 
13231323        { 
13241324            ReadOnlySpan < uint >  bgraRow  =  bgra . Slice ( y  *  width ,  width ) ; 
0 commit comments