I think there is a bug in the IPP samples (ipp-samples.8.0.0.005), dicom.cpp, function ReadImageRLE().
With 16-bit RLE-encoded data, the bug surfaces:
if(precision > 8)
{
ippsSwapBytes_16u_I((Ipp16u*)decData, width * height);
image.CopyFrom((Ipp16s*)decData, step, roi); // BUG
}
else
image.CopyFrom(decData, step, roi);
The step parameter is wrong. It is a copy of image.Step(), and it should be the step of the decData buffer, which is width*2.
The bug presents itself with either scanline mismatches in the resulting image, or with an AV because of buffer overflow.
Also, possibly Ipp16u should be used in CopyFrom, since pixels are usually 16u. Otherwise, the Dicom tag Pixel Representation should be used to determine if the pixels are signed or not.
Suggestion:
image.CopyFrom((Ipp16u*)decData, width*2, roi);