Can I add a permanent filter that sits between the viewfinder and camera2 API? [Rooted Android]

Sorry if this isn’t the right sub or not technical enough – new to android dev!

I am trying to mess around with my rooted device and wondered if it is possible to add a permanent filter to the viewfinder? For example, say I wanted a blue tint added to the camera, therefore, any app I opened would show the camera viewfinder as normal but with a blue tint. This would not be an overlay from accessibility settings, but a fundamental alteration to the viewfinder frames.

In my mind, I think I could develop code that would sit between the viewfinder and the camera2 API to permanently alter the frame before reaching the user screen, which isn’t possible with a non-rooted device. What would this look like from a rooted perspective?

Thank you so much!