Add independent dual-channel preview controls
Compared with f380a8a:
- Let CH0 and CH1 open, start, stop, and preview independently while sharing one device connection.
- Give each channel its own capture worker, preview window, frame ownership, runtime status, and failure reporting.
- Expose channel-indexed zero-copy selection to match the driver IOCTL contract and keep output format selection independent per channel.
- Prevent immediate timeout responses from hot-looping and flooding the Qt event queue.
- Align the CH0 and CH1 controls in equal-width channel panels and update the public and internal documentation.
Validation: Qt uic parsing and git diff --check passed; no build or hardware validation was run.
This commit is contained in:
@@ -287,17 +287,20 @@ extern "C"
|
||||
/*
|
||||
* Select driver zero-copy frame delivery.
|
||||
*
|
||||
* Call after gvfg_create() and before gvfg_open_channel(). The default is
|
||||
* disabled. Once a device is open the mode cannot be changed. In zero-copy
|
||||
* Call after gvfg_create() and before opening the selected channel. The
|
||||
* default is disabled independently for each channel. Once that channel is
|
||||
* open its mode cannot be changed. In zero-copy
|
||||
* mode, gvfg_read_channel_frame() returns driver-owned memory and every
|
||||
* successful read must be paired with gvfg_release_channel_frame().
|
||||
*/
|
||||
GVFG_API gvfg_status_t gvfg_set_zero_copy_enabled(
|
||||
GVFG_API gvfg_status_t gvfg_set_channel_zero_copy_enabled(
|
||||
_In_ gvfg_handle handle,
|
||||
_In_ int channel_index,
|
||||
_In_ int enabled);
|
||||
|
||||
GVFG_API gvfg_status_t gvfg_get_zero_copy_enabled(
|
||||
GVFG_API gvfg_status_t gvfg_get_channel_zero_copy_enabled(
|
||||
_In_ gvfg_handle handle,
|
||||
_In_ int channel_index,
|
||||
_Out_ int *out_enabled);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user