So it would better for <code> bool is_output_device = cap.capabilities & V4L2_CAP_VIDEO_OUTPUT; </code>!