@@ -315,7 +315,7 @@ private static void InitQuantizationTable(int i, int scale, ref Block8x8F quant)
315315 /// <param name="bits">The packed bits.</param>
316316 /// <param name="count">The number of bits</param>
317317 /// <param name="emitBufferBase">The reference to the emitBuffer.</param>
318- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
318+ [ MethodImpl ( InliningOptions . ShortMethod ) ]
319319 private void Emit ( uint bits , uint count , ref byte emitBufferBase )
320320 {
321321 count += this . bitCount ;
@@ -356,7 +356,7 @@ private void Emit(uint bits, uint count, ref byte emitBufferBase)
356356 /// <param name="index">The index of the Huffman encoder</param>
357357 /// <param name="value">The value to encode.</param>
358358 /// <param name="emitBufferBase">The reference to the emit buffer.</param>
359- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
359+ [ MethodImpl ( InliningOptions . ShortMethod ) ]
360360 private void EmitHuff ( HuffIndex index , int value , ref byte emitBufferBase )
361361 {
362362 uint x = HuffmanLut . TheHuffmanLut [ ( int ) index ] . Values [ value ] ;
@@ -370,7 +370,7 @@ private void EmitHuff(HuffIndex index, int value, ref byte emitBufferBase)
370370 /// <param name="runLength">The number of copies to encode.</param>
371371 /// <param name="value">The value to encode.</param>
372372 /// <param name="emitBufferBase">The reference to the emit buffer.</param>
373- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
373+ [ MethodImpl ( InliningOptions . ShortMethod ) ]
374374 private void EmitHuffRLE ( HuffIndex index , int runLength , int value , ref byte emitBufferBase )
375375 {
376376 int a = value ;
0 commit comments