pub unsafe static AVVideoAllowFrameReorderingKey: Option<&'static NSString>AVVideoSettings only.Expand description
Enables or disables frame reordering.
In order to achieve the best compression while maintaining image quality, some video encoders can reorder frames. This means that the order in which the frames will be emitted and stored (the decode order) will be different from the order in which they are presented to the video encoder (the display order).
Encoding using frame reordering requires more system resources than encoding without frame reordering, so encoding performance should be taken into account when deciding whether to enable frame reordering. This is especially important when encoding video data from a real-time source, such as AVCaptureVideoDataOutput. In this situation, using a value of
falsefor AVVideoAllowFrameReorderingKey may yield the best results.
The default is
true, which means that the encoder decides whether to enable frame reordering.
See also Appleās documentation