pub struct FrameProcessorCapabilities {Show 13 fields
pub accepted_input_handle_kinds: Vec<NativeHandleKind>,
pub output_handle_kinds: Vec<NativeHandleKind>,
pub accepted_input_pipeline_profiles: Vec<NativeFramePipelineProfile>,
pub output_pipeline_profiles: Vec<NativeFramePipelineProfile>,
pub supports_video_frames: bool,
pub supports_in_place_passthrough: bool,
pub preserves_dimensions: bool,
pub may_change_dimensions: bool,
pub preserves_color_metadata: bool,
pub preserves_hdr_metadata: bool,
pub supports_flush: bool,
pub max_sessions: Option<u32>,
pub max_in_flight_frames: Option<u32>,
}Expand description
Native-frame capabilities advertised by a frame processor plugin.
Fields§
§accepted_input_handle_kinds: Vec<NativeHandleKind>§output_handle_kinds: Vec<NativeHandleKind>§accepted_input_pipeline_profiles: Vec<NativeFramePipelineProfile>§output_pipeline_profiles: Vec<NativeFramePipelineProfile>§supports_video_frames: bool§supports_in_place_passthrough: bool§preserves_dimensions: bool§may_change_dimensions: bool§preserves_color_metadata: bool§preserves_hdr_metadata: bool§supports_flush: bool§max_sessions: Option<u32>§max_in_flight_frames: Option<u32>Implementations§
Source§impl FrameProcessorCapabilities
impl FrameProcessorCapabilities
Sourcepub fn supports_input_handle_kind(&self, handle_kind: &NativeHandleKind) -> bool
pub fn supports_input_handle_kind(&self, handle_kind: &NativeHandleKind) -> bool
Returns whether the processor accepts an input native handle kind.
Sourcepub fn supports_input_pipeline_profile(
&self,
profile: &NativeFramePipelineProfile,
) -> bool
pub fn supports_input_pipeline_profile( &self, profile: &NativeFramePipelineProfile, ) -> bool
Returns whether the processor accepts a native-frame pipeline profile.
Sourcepub fn supports_input_metadata(&self, metadata: &NativeFrameMetadata) -> bool
pub fn supports_input_metadata(&self, metadata: &NativeFrameMetadata) -> bool
Returns whether both handle kind and pipeline profile match the metadata.
Sourcepub fn supports_output_handle_kind(
&self,
handle_kind: &NativeHandleKind,
) -> bool
pub fn supports_output_handle_kind( &self, handle_kind: &NativeHandleKind, ) -> bool
Returns whether the processor can produce an output native handle kind.
Sourcepub fn supports_output_pipeline_profile(
&self,
profile: &NativeFramePipelineProfile,
) -> bool
pub fn supports_output_pipeline_profile( &self, profile: &NativeFramePipelineProfile, ) -> bool
Returns whether the processor can produce an output pipeline profile.
Trait Implementations§
Source§impl Clone for FrameProcessorCapabilities
impl Clone for FrameProcessorCapabilities
Source§fn clone(&self) -> FrameProcessorCapabilities
fn clone(&self) -> FrameProcessorCapabilities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameProcessorCapabilities
impl Debug for FrameProcessorCapabilities
Source§impl Default for FrameProcessorCapabilities
impl Default for FrameProcessorCapabilities
Source§fn default() -> FrameProcessorCapabilities
fn default() -> FrameProcessorCapabilities
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FrameProcessorCapabilities
impl<'de> Deserialize<'de> for FrameProcessorCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FrameProcessorCapabilities
impl StructuralPartialEq for FrameProcessorCapabilities
Auto Trait Implementations§
impl Freeze for FrameProcessorCapabilities
impl RefUnwindSafe for FrameProcessorCapabilities
impl Send for FrameProcessorCapabilities
impl Sync for FrameProcessorCapabilities
impl Unpin for FrameProcessorCapabilities
impl UnsafeUnpin for FrameProcessorCapabilities
impl UnwindSafe for FrameProcessorCapabilities
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