My project puts a naked IMX219 sensor in a focal plane of a scavenged telescopic lens. I noticed I get some unexpected red tint near the edges of the image, and some greenish gray tint near the middle. I'm wondering if that comes from the lens shading step of the camera pipeline. I see the MMAL_PARAMETER_LENS_SHADING_OVERRIDE but the data to pass to it looks a bit obscure to me.
Is there a way to disable the lens shading entirely? Otherwise what would be the easiest way to override it so as to make it a no-op?