pub struct RawFormat {
pub sample_type: SampleType,
pub bits_per_sample: u8,
pub subsampling_w: u8,
pub subsampling_h: u8,
pub color_family: ColorFamily,
}Expand description
The handful of format fields layout_from_format actually reads.
The real caller is vapoursynth::format::Format, which wraps a
pointer only a running VapourSynth core can hand out, so it cannot be
built in a unit test. A caller with a real Format builds one of
these from format.sample_type(), format.bits_per_sample(),
format.sub_sampling_w(), format.sub_sampling_h(), and
format.color_family().
Fields§
§sample_type: SampleType§bits_per_sample: u8§subsampling_w: u8§subsampling_h: u8§color_family: ColorFamilyTrait Implementations§
Auto Trait Implementations§
impl Freeze for RawFormat
impl RefUnwindSafe for RawFormat
impl Send for RawFormat
impl Sync for RawFormat
impl Unpin for RawFormat
impl UnsafeUnpin for RawFormat
impl UnwindSafe for RawFormat
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