Add wiring to support screencasting a region of the screen and capturing at
a user supplied size.
This is useful to capture at a lower resolution to improve screencasting
performance or to capture only a region of interest. Fixes: https://bugs.launchpad.net/bugs/1288478.
Approved by Alan Griffiths, Daniel van Vugt, PS Jenkins bot, Alexandros Frantzis.