How can I modify camera transform?

I’d like to apply transformation to everything I see (and change it on the fly, programmatically). I could use it for various purposes: for example, in a racing game, I could squeeze a bit upper half of the screen and expand lower half to graphically emphasize player’s car in the lower half (please note that I also need to change W-component of the camera transform for it).