mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
use fullrange by default for yuv420p if supported (#6655)
1. Explicitly specify the color space as bt601 2. Use fullrange by default for yuv420p if supported 3. Use the pix_fmt space range format to identify codec capabilities, make i444 proto field deprecated, and cause the non-release version of 444 true color to fail. Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -252,8 +252,8 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
}).collect::<HashMap<usize, i32>>();
|
||||
let chroma = self.chroma.read().unwrap().clone();
|
||||
let chroma = match chroma {
|
||||
Some(Chroma::I444) => "4:4:4",
|
||||
Some(Chroma::I420) => "4:2:0",
|
||||
Some(Chroma::C444) => "4:4:4",
|
||||
Some(Chroma::C420) => "4:2:0",
|
||||
None => "-",
|
||||
};
|
||||
let chroma = Some(chroma.to_string());
|
||||
|
||||
Reference in New Issue
Block a user