Struct av_metrics_decoders::Frame
pub struct Frame<T>where
T: Pixel,{
pub planes: [Plane<T>; 3],
}
Fields§
§planes: [Plane<T>; 3]
Planes constituting the frame.
Implementations§
§impl<T> Frame<T>where
T: Pixel,
impl<T> Frame<T>where
T: Pixel,
pub fn new_with_padding(
width: usize,
height: usize,
chroma_sampling: ChromaSampling,
luma_padding: usize
) -> Frame<T>
pub fn new_with_padding(
width: usize,
height: usize,
chroma_sampling: ChromaSampling,
luma_padding: usize
) -> Frame<T>
Creates a new frame with the given parameters.
Allocates data for the planes.