The Corner Pin effect in Adobe After Effects
If you want to follow along, download the files I used:
Matte image (from background)
You can make this trivially in Photoshop or download the
predone one if you are lazy.
Next we import the files into After Effects.