libcamera  v0.2.0+85-1c5830a9
Supporting cameras in Linux since 2019
Public Member Functions | List of all members
libcamera::V4L2SubdeviceCapability Struct Referencefinal

struct v4l2_subdev_capability object wrapper and helpers More...

Inheritance diagram for libcamera::V4L2SubdeviceCapability:
Inheritance graph
[legend]
Collaboration diagram for libcamera::V4L2SubdeviceCapability:
Collaboration graph
[legend]

Public Member Functions

bool isReadOnly () const
 Retrieve if a subdevice is registered as read-only. More...
 
bool hasStreams () const
 Retrieve if a subdevice supports the V4L2 streams API. More...
 

Detailed Description

struct v4l2_subdev_capability object wrapper and helpers

The V4L2SubdeviceCapability structure manages the information returned by the VIDIOC_SUBDEV_QUERYCAP ioctl.

Member Function Documentation

◆ hasStreams()

libcamera::V4L2SubdeviceCapability::hasStreams ( ) const
inline

Retrieve if a subdevice supports the V4L2 streams API.

Returns
True if the subdevice supports the streams API, false otherwise

◆ isReadOnly()

libcamera::V4L2SubdeviceCapability::isReadOnly ( ) const
inline

Retrieve if a subdevice is registered as read-only.

A V4L2 subdevice is registered as read-only if V4L2_SUBDEV_CAP_RO_SUBDEV is listed as part of its capabilities.

Returns
True if the subdevice is registered as read-only, false otherwise

The documentation for this struct was generated from the following files: