mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-05 15:31:30 +03:00
Revert "Implement RGB0 pixel format "
This commit is contained in:
@@ -50,12 +50,6 @@ impl TraitCapturer for Capturer {
|
||||
} else {
|
||||
x
|
||||
})),
|
||||
PixelProvider::RGB0(w, h, x) => Ok(Frame(if self.2 {
|
||||
crate::common::rgba_to_i420(w as _, h as _, &x, &mut self.3);
|
||||
&self.3[..]
|
||||
} else {
|
||||
x
|
||||
})),
|
||||
PixelProvider::NONE => Err(std::io::ErrorKind::WouldBlock.into()),
|
||||
_ => Err(map_err("Invalid data")),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user