Skip to main content

frame_bytes

Function frame_bytes 

Source
pub fn frame_bytes(fmt: RawVideoFormat, width: u32, height: u32) -> usize
Expand description

Bytes one width x height frame of fmt occupies, for allocating a blank source buffer. Packed formats are exact; the fully-planar YUV family derives its size from the format’s own subsampling and sample depth.