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

Method bgra

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

Source from the content-addressed store, hash-verified

394 }
395
396 pub fn bgra(&self, bgra: &mut Vec<u8>, i420: &mut Vec<u8>) -> ResultType<()> {
397 let mut rgb = ImageRgb::new(ImageFormat::ARGB, 1);
398 self.to_fmt(&mut rgb, i420)?;
399 *bgra = rgb.raw;
400 Ok(())
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);

Callers

nothing calls this directly

Calls 1

to_fmtMethod · 0.80

Tested by

no test coverage detected