DxO has separate modules that you have to download for each different camera body and lens. Where it reads the meta data and has the algorithms to stretch the picture for pincushion, barrel, fisheye, perspective, chromatic aberration, and color.
before
after