pub unsafe trait Component {
// Required method
fn is_valid(format: VideoFormat) -> bool;
}
Expand description
A trait for possible pixel components.
Safety
Implementing this trait allows retrieving slices of pixel data from the frame for the target type, so the target type must be valid for the given format.
Required Methods§
sourcefn is_valid(format: VideoFormat) -> bool
fn is_valid(format: VideoFormat) -> bool
Returns whether this component is valid for this format.