AVVideoCompositionValidationHandling

Trait AVVideoCompositionValidationHandling 

Source
pub unsafe trait AVVideoCompositionValidationHandling: NSObjectProtocol {
    // Provided methods
    unsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidValueForKey(
        &self,
        video_composition: &AVVideoComposition,
        key: &NSString,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn videoComposition_shouldContinueValidatingAfterFindingEmptyTimeRange(
        &self,
        video_composition: &AVVideoComposition,
        time_range: CMTimeRange,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction(
        &self,
        video_composition: &AVVideoComposition,
        video_composition_instruction: &ProtocolObject<dyn AVVideoCompositionInstructionProtocol>,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction_layerInstruction_asset(
        &self,
        video_composition: &AVVideoComposition,
        video_composition_instruction: &ProtocolObject<dyn AVVideoCompositionInstructionProtocol>,
        layer_instruction: &AVVideoCompositionLayerInstruction,
        asset: &AVAsset,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature AVVideoComposition only.
Expand description

Provided Methods§

Source

unsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidValueForKey( &self, video_composition: &AVVideoComposition, key: &NSString, ) -> bool
where Self: Sized + Message,

Invoked by an instance of AVVideoComposition when validating an instance of AVVideoComposition, to report a key that has an invalid value.

  • Returns: An indication of whether the AVVideoComposition should continue validation in order to report additional problems that may exist.
Source

unsafe fn videoComposition_shouldContinueValidatingAfterFindingEmptyTimeRange( &self, video_composition: &AVVideoComposition, time_range: CMTimeRange, ) -> bool
where Self: Sized + Message,

Available on crate feature objc2-core-media only.

Invoked by an instance of AVVideoComposition when validating an instance of AVVideoComposition, to report a timeRange that has no corresponding video composition instruction.

  • Returns: An indication of whether the AVVideoComposition should continue validation in order to report additional problems that may exist.
Source

unsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction( &self, video_composition: &AVVideoComposition, video_composition_instruction: &ProtocolObject<dyn AVVideoCompositionInstructionProtocol>, ) -> bool
where Self: Sized + Message,

Available on crate feature AVVideoCompositing only.

Invoked by an instance of AVVideoComposition when validating an instance of AVVideoComposition, to report a video composition instruction with a timeRange that’s invalid, that overlaps with the timeRange of a prior instruction, or that contains times earlier than the timeRange of a prior instruction.

Use CMTIMERANGE_IS_INVALID, defined in CMTimeRange.h, to test whether the timeRange itself is invalid. Refer to headerdoc for AVVideoComposition.instructions for a discussion of how timeRanges for instructions must be formulated.

  • Returns: An indication of whether the AVVideoComposition should continue validation in order to report additional problems that may exist.
Source

unsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction_layerInstruction_asset( &self, video_composition: &AVVideoComposition, video_composition_instruction: &ProtocolObject<dyn AVVideoCompositionInstructionProtocol>, layer_instruction: &AVVideoCompositionLayerInstruction, asset: &AVAsset, ) -> bool
where Self: Sized + Message,

Available on crate features AVAsset and AVVideoCompositing only.

Invoked by an instance of AVVideoComposition when validating an instance of AVVideoComposition, to report a video composition layer instruction with a trackID that does not correspond either to the trackID used for the composition’s animationTool or to a track of the asset specified in -[AVVideoComposition isValidForAsset:timeRange:delegate:].

  • Returns: An indication of whether the AVVideoComposition should continue validation in order to report additional problems that may exist.

Trait Implementations§

Source§

impl ProtocolType for dyn AVVideoCompositionValidationHandling

Source§

const NAME: &'static str = "AVVideoCompositionValidationHandling"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn AVVideoCompositionValidationHandling

Implementations on Foreign Types§

Source§

impl<T> AVVideoCompositionValidationHandling for ProtocolObject<T>

Implementors§