Updates to support views with formats other than RGB (mostly NV12 so far) and alternative source width and height.
Some additional bug fixes.