/// <summary>
 /// Initializes a default-constructed <see cref="OrigJpegScanDecoder"/> instance for reading data from <see cref="OrigJpegDecoderCore"/>-s stream.
 /// </summary>
 /// <param name="p">Pointer to <see cref="OrigJpegScanDecoder"/> on the stack</param>
 /// <param name="decoder">The <see cref="OrigJpegDecoderCore"/> instance</param>
 /// <param name="remaining">The remaining bytes in the segment block.</param>
 public static void InitStreamReading(OrigJpegScanDecoder *p, OrigJpegDecoderCore decoder, int remaining)
 {
     p->data     = ComputationData.Create();
     p->pointers = new DataPointers(&p->data);
     p->InitStreamReadingImpl(decoder, remaining);
 }
 /// <summary>
 /// Initialize the <see cref="JpegBlockProcessor"/> instance on the stack.
 /// </summary>
 /// <param name="processor">The <see cref="JpegBlockProcessor"/> instance</param>
 /// <param name="componentIndex">The current component index</param>
 public static void Init(JpegBlockProcessor *processor, int componentIndex)
 {
     processor->componentIndex = componentIndex;
     processor->data           = ComputationData.Create();
     processor->pointers       = new DataPointers(&processor->data);
 }