qv4l2: moved scaling calculations from setRenderFrame
authorOve Brynestad <ovebryne@cisco.com>
Tue, 8 Jul 2014 13:39:24 +0000 (15:39 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Fri, 11 Jul 2014 13:32:00 +0000 (15:32 +0200)
commita87f5897723cd0e5338b8952227b0b64e2727944
treef7b093819ce7e33f10fe00285a713395b9460238
parentf2215f3ff2b6c9eff1e3c4922d5a3a00ababefd5
qv4l2: moved scaling calculations from setRenderFrame

Ongoing work to move aspect/crop/scale calculations from individual render
classes to the common capture-win class. Currently different renderers use
slightly different code to calculate the various cropping/scaling/etc. data.
This makes it hard to maintain.

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