mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
rename all stride_align to stride
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -154,7 +154,7 @@ pub struct FlutterHandler {
|
||||
|
||||
#[cfg(feature = "flutter_texture_render")]
|
||||
pub type FlutterRgbaRendererPluginOnRgba =
|
||||
unsafe extern "C" fn(texture_rgba: *mut c_void, buffer: *const u8, len: c_int, width: c_int, height: c_int, stride_align: c_int);
|
||||
unsafe extern "C" fn(texture_rgba: *mut c_void, buffer: *const u8, len: c_int, width: c_int, height: c_int, stride: c_int);
|
||||
|
||||
// Video Texture Renderer in Flutter
|
||||
#[cfg(feature = "flutter_texture_render")]
|
||||
@@ -206,7 +206,7 @@ impl VideoRenderer {
|
||||
self.width = width;
|
||||
self.height = height;
|
||||
self.data_len = if width > 0 && height > 0 {
|
||||
let sa1 = crate::common::STRIDE_ALIGN_RGBA_OUTPUT - 1;
|
||||
let sa1 = crate::common::DST_STRIDE_RGBA - 1;
|
||||
let row_bytes = (width as usize * 4 + sa1) & !sa1;
|
||||
row_bytes * height as usize
|
||||
} else {
|
||||
@@ -226,7 +226,7 @@ impl VideoRenderer {
|
||||
rgba.len() as _,
|
||||
self.width as _,
|
||||
self.height as _,
|
||||
crate::common::STRIDE_ALIGN_RGBA_OUTPUT as _,
|
||||
crate::common::DST_STRIDE_RGBA as _,
|
||||
)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user