(&self, rgba: &mut Vec<u8>, i420: &mut Vec<u8>)
| 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)] |