summaryrefslogtreecommitdiff
path: root/src/libcamera/v4l2_device.cpp
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-01-31 17:26:54 +0100
committerJacopo Mondi <jacopo@jmondi.org>2019-02-03 12:14:05 +0100
commita78e56ecc2f214696910aff782f44fd5f9628112 (patch)
tree9e7a94826a047abfa29b00de86a0d01e425215ab /src/libcamera/v4l2_device.cpp
parent3fd5ade00c5da727184c6c5aa728d4ee27bb6ac2 (diff)
libcamera: v4l2_device: Rename format() method to getFormat()
Rename format() to getFormat() to reflect the v4l2 API names more closely. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/libcamera/v4l2_device.cpp')
-rw-r--r--src/libcamera/v4l2_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
index 5c415d0b..26b6ff36 100644
--- a/src/libcamera/v4l2_device.cpp
+++ b/src/libcamera/v4l2_device.cpp
@@ -282,7 +282,7 @@ void V4L2Device::close()
* \brief Retrieve the image format set on the V4L2 device
* \return 0 for success, a negative error code otherwise
*/
-int V4L2Device::format(V4L2DeviceFormat *fmt)
+int V4L2Device::getFormat(V4L2DeviceFormat *fmt)
{
return caps_.isMultiplanar() ? getFormatMultiplane(fmt) :
getFormatSingleplane(fmt);