summaryrefslogtreecommitdiff
path: root/test/pixel-format.cpp
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2020-07-04 18:01:58 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2020-07-10 16:11:47 +0900
commita3b5ee998e18f74ba5cf68e3831d356463c85740 (patch)
treebc6f1d250a233154f7dcf2b8f110413c0d5e39df /test/pixel-format.cpp
parentae50922879a817c2e215fb144e6083a7702dec7e (diff)
v4l2: v4l2_camera_proxy: Get stride and frameSize from stream config
The stride and frameSize should be obtained through StreamConfiguration rather than PixelFormatInfo, as pipeline handlers might have different values (eg. for alignment). Get the stride and frameSize values from StreamConfiguration instead of from PixelFormatInfo. This removes the need for V4L2CameraProxy's calculation helper functions (bplMultiplier, imageSize, v4l2ToDrm, drmToV4L2, calculateSizeImage) and formats, so remove them. This also removes the need for V4L2CameraProxy::calculateSizeImage, so remove it,. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/pixel-format.cpp')
0 files changed, 0 insertions, 0 deletions