How to apply Instagram-like color filters to a video using FFmpeg?

I have a mathematical function related to the Instagram filter which I want to apply to each pixel’s RGB values. Is there any filter or options in FFmpeg which allow me to do this?