MCPcopy Create free account
hub / github.com/Recordscript/recordscript / rgba

Method rgba

libs/scrap/src/common/hwcodec.rs:403–408  ·  view source on GitHub ↗
(&self, rgba: &mut Vec<u8>, i420: &mut Vec<u8>)

Source from the content-addressed store, hash-verified

401 }
402
403 pub fn rgba(&self, rgba: &mut Vec<u8>, i420: &mut Vec<u8>) -> ResultType<()> {
404 let mut rgb = ImageRgb::new(ImageFormat::ABGR, 1);
405 self.to_fmt(&mut rgb, i420)?;
406 *rgba = rgb.raw;
407 Ok(())
408 }
409}
410
411#[derive(Debug, Eq, PartialEq, Clone, Serialize, Deserialize)]

Callers

nothing calls this directly

Calls 1

to_fmtMethod · 0.80

Tested by

no test coverage detected