summaryrefslogtreecommitdiff
path: root/include/uvcgadget/jpg-source.h
diff options
context:
space:
mode:
authorDaniel Scally <dan.scally@ideasonboard.com>2022-11-22 15:34:20 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-11-22 16:08:24 +0000
commitbca24b4b5b2c18b844e8da80ac19819944f80a93 (patch)
treefcbe9579ded3a124f4ee26a1ddc83e17fc3e9194 /include/uvcgadget/jpg-source.h
parentd47c0701f2250889970afa6b5af025ea0a02b3be (diff)
lib: uvc: Drop maxsize
The maxsize field of struct uvc_device is probably unecessary even if it weren't currently fixed at 0. It's used to set dwMaxVideoFrameSize in addition to the sizeimage member of a struct v4l2_pix_fmt (multiplied in the latter instance by 1.5x). The documentary definitions for those two values are such that they should be identical though, so simply set dwMaxVideoFrameSize to width*height*2 (to maintain commonality with other UVC Video devices) and use that to set the sizeimage. Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include/uvcgadget/jpg-source.h')
0 files changed, 0 insertions, 0 deletions