libcamera/src/v4l2
Paul Elder a3b5ee998e 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>
2020-07-10 16:11:47 +09:00
..
meson.build v4l2: v4l2_camera_file: Add V4L2CameraFile to model the opened camera file 2020-06-25 23:41:15 +09:00
v4l2_camera.cpp v4l2: v4l2_camera: Fix stream selection for buffer operations 2020-07-10 16:11:44 +09:00
v4l2_camera.h v4l2: v4l2_camera: Don't use libcamera::Semaphore for available buffers 2020-06-25 23:47:13 +09:00
v4l2_camera_file.cpp v4l2: V4L2CameraProxy: Take V4L2CameraFile as argument for intercepted calls 2020-06-25 23:41:19 +09:00
v4l2_camera_file.h v4l2: v4l2_camera_file: Add V4L2CameraFile to model the opened camera file 2020-06-25 23:41:15 +09:00
v4l2_camera_proxy.cpp v4l2: v4l2_camera_proxy: Get stride and frameSize from stream config 2020-07-10 16:11:47 +09:00
v4l2_camera_proxy.h v4l2: v4l2_camera_proxy: Get stride and frameSize from stream config 2020-07-10 16:11:47 +09:00
v4l2_compat.cpp v4l2: v4l2_compat: Intercept open64, openat64, and mmap64 2020-06-19 20:21:00 +09:00
v4l2_compat_manager.cpp v4l2: V4L2CameraProxy: Take V4L2CameraFile as argument for intercepted calls 2020-06-25 23:41:19 +09:00
v4l2_compat_manager.h v4l2: V4L2CameraProxy: Take V4L2CameraFile as argument for intercepted calls 2020-06-25 23:41:19 +09:00