qv4l2: center frame and drop margins in full screen mode
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 19 Jul 2014 21:45:58 +0000 (23:45 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Sat, 19 Jul 2014 21:45:58 +0000 (23:45 +0200)
commit84593c8b1f3d0862b286bc2f262acafcb7746acb
treef8c4052f7a1e9b330bc7978f62e9b51ad2f6f34f
parent4d53f106c54aa1772ede953b7a1f45afb60406b4
qv4l2: center frame and drop margins in full screen mode

The video was never properly centered in the window, this has now
been fixed.

In addition there were still non-zero margins when in full screen mode,
so the image was scaled even if it should be the native screen resolution.
This is now also working properly.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/qv4l2/capture-win-qt.cpp
utils/qv4l2/capture-win-qt.h
utils/qv4l2/capture-win.cpp
utils/qv4l2/capture-win.h