#[repr(C)]pub struct QarVideoSenderInit {
pub header: QarStructureHeader,
pub layout: QarVideoFrameLayout,
pub enable_reconnects: bool,
pub reconnect_timeout_ms: u64,
pub graphics_api: QarGraphicsAPI,
}Expand description
Configuration for a logical video sender whose StreamId is generated by the library. Exactly one extension is required for a GPU API:
- QAR_GRAPHICS_API_D3D11 requires QarStreamParamsD3D11.
- QAR_GRAPHICS_API_OPENGL requires exactly one of QarStreamParamsOpenGlEgl, QarStreamParamsOpenGlWgl or QarStreamParamsOpenGlGlx, whichever matches the context you own.
- QAR_GRAPHICS_API_VULKAN requires QarStreamParamsVulkan.
QAR_GRAPHICS_API_CPU supports no extension and requires
header.nextto be null. The selected extension’sheader.nextmust also be null. Retrieve the generated id with qar_video_sender_stream_id().
Fields§
§header: QarStructureHeader§layout: QarVideoFrameLayout§enable_reconnects: bool§reconnect_timeout_ms: u64§graphics_api: QarGraphicsAPITrait Implementations§
Source§impl Clone for QarVideoSenderInit
impl Clone for QarVideoSenderInit
impl Copy for QarVideoSenderInit
Source§impl Debug for QarVideoSenderInit
impl Debug for QarVideoSenderInit
Source§impl PartialEq for QarVideoSenderInit
impl PartialEq for QarVideoSenderInit
impl StructuralPartialEq for QarVideoSenderInit
Auto Trait Implementations§
impl !Send for QarVideoSenderInit
impl !Sync for QarVideoSenderInit
impl Freeze for QarVideoSenderInit
impl RefUnwindSafe for QarVideoSenderInit
impl Unpin for QarVideoSenderInit
impl UnsafeUnpin for QarVideoSenderInit
impl UnwindSafe for QarVideoSenderInit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more