Conversation

Jarkko Sakkinen

Edited 5 days ago
Stream signaling for vcam: output_fd when read returns (sequence, flags) pairs. Currently there is only a single flag: VCAM_CONTROL_STREAM_ON.

Blocking read() and poll() can be then used to in the source to see client app starts or stops streaming video.
1
0
0
Definitely not final api but at least I have now a mechanism.
1
0
0
Next iteration:

struct vcam_ioc_new {
__u64 device_name;
__u32 device_nr;
__u32 output_fd;
__u32 control_fd;
__u8 reserved[12]; /* must be zeroed */
};

enum vcam_control_flags {
VCAM_CONTROL_STREAM_ON = 1ULL << 0,
};

#define VCAM_IOC_NEW _IOWR('v', 0x00, struct vcam_ioc_new)

control_fd emits u64's and read() returns when flags differ from previous call.
0
0
0