qv4l2: refactored cropSize to deliver cropped size
authorOve Brynestad <ovebryne@cisco.com>
Mon, 4 Aug 2014 13:31:29 +0000 (15:31 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Fri, 8 Aug 2014 09:12:59 +0000 (11:12 +0200)
commit3851b2fb91fc6867f01149b4c5bb824324ba3d69
treeaedb71eb8dec57baddf4132a8873ee459c38dd90
parent48c8f3b4371afc02b57c525e1691cd4090f91261
qv4l2: refactored cropSize to deliver cropped size

cropFrameSize returned the delta between the full frame and the cropped frame
instead of just returning the cropped frame. This made the code hard to read,
so switch to returning the cropped frame.

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