Added MIPS support for OpenWRT demo.
Add scaling and pan mode.