[libcamera-devel] [PATCH v2 1/2] lib: Add V4L2 Device object
Kieran Bingham
kieran.bingham at ideasonboard.com
Tue Jan 15 22:35:17 CET 2019
On 15/01/2019 20:46, Kieran Bingham wrote:
> Hi Jacopo,
<snip>
>>> + * \param device The file-system path to the video device node
>>> + */
>>> +V4L2Device::V4L2Device(const std::string &device)
>>> +{
>>> + device_ = device;
>>> + fd_ = -1;
>>> + caps_ = { };
Interestingly, because the V4L2Capability caps_ is a class - it
automatically gets initialised to 0, where as a struct v4l2_capability
here does not.
>> Initializers list?
>
> Yup.
Fixed.
Working through the rest now.
<snip>
--
Regards
--
Kieran
More information about the libcamera-devel
mailing list