mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +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:
1 parent
2797a28c0d
commit
80afa98d66
15 files changed
+388
-141
No files matched your search
@@ -1416,6 +1416,15 @@ pub fn session_change_prefer_codec(session_id: SessionID) {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn session_is_codec_support_444(session_id: SessionID, codec: String) -> SyncReturn<bool> {
|
||||
let res = if let Some(session) = sessions::get_session_by_session_id(&session_id) {
|
||||
session.is_codec_support_444(codec)
|
||||
} else {
|
||||
false
|
||||
};
|
||||
SyncReturn(res)
|
||||
}
|
||||
|
||||
pub fn session_on_waiting_for_image_dialog_show(session_id: SessionID) {
|
||||
super::flutter::session_on_waiting_for_image_dialog_show(session_id);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user