mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 08:34:12 +00:00
update flutter texture rgba renderer plugin, remove switch rgba (#10070)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
1 parent
d60b5a6ca0
commit
9d9b67aca5
4 files changed
+19
-7
No files matched your search
+7
-1
@@ -1188,9 +1188,15 @@ impl VideoHandler {
|
||||
pub fn new(format: CodecFormat, _display: usize) -> Self {
|
||||
let luid = Self::get_adapter_luid();
|
||||
log::info!("new video handler for display #{_display}, format: {format:?}, luid: {luid:?}");
|
||||
let rgba_format =
|
||||
if cfg!(feature = "flutter") && (cfg!(windows) || cfg!(target_os = "linux")) {
|
||||
ImageFormat::ABGR
|
||||
} else {
|
||||
ImageFormat::ARGB
|
||||
};
|
||||
VideoHandler {
|
||||
decoder: Decoder::new(format, luid),
|
||||
rgb: ImageRgb::new(ImageFormat::ARGB, crate::get_dst_align_rgba()),
|
||||
rgb: ImageRgb::new(rgba_format, crate::get_dst_align_rgba()),
|
||||
texture: Default::default(),
|
||||
recorder: Default::default(),
|
||||
record: false,
|
||||
|
||||
Reference in new issue
Block a user