pub fn pack_cpu_image(
picture: &CpuImage,
encoding: YuvEncoding,
layout: PixelLayout,
targets: &mut [PlaneTarget<'_>],
) -> Result<(), RenderError>Expand description
Packs picture into layout, one target per plane in storage order
(alpha2_media::PixelLayout::planes), as the GPU texel readback does
(crate::Yuv420pReadback::finish_into_planes).
ยงErrors
RenderError::TextureReadback for a size the chroma cannot subsample, a wrong target
count, or a target too small.