Root access: Can I add a permanent filter that is between the viewer and the camera2 API? [Rooted Android]

I'm sorry if this is not the right sub or it's not technical enough – new to the Android developer!

I'm trying to mess around with my rooted device and I'm wondering if it's possible to add a permanent filter to the viewer. For example, let's say that I wanted to add a blue tint to the camera, therefore, any application that I opened would show the camera's viewfinder as normal but with a blue tint. This would not be an overlap of the accessibility configuration, but a fundamental alteration of the viewer frames.

In my opinion, I think I could develop a code that would be located between the viewer and the camera2 API to permanently alter the frame before reaching the user's screen, which is not possible with a non-rooted device. How would this be from an ingrained perspective?

Thank you!