fix build && default flutter_texture_render

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2023-02-23 17:06:53 +08:00
1 parent d70ffaa2b8
commit ed0338b038
2 files changed
+13 -1

No files matched your search

+12 -1
View File
@@ -126,6 +126,17 @@ extern "C" {
width: c_int,
height: c_int,
) -> c_int;
pub fn NV12ToABGR(
src_y: *const u8,
src_stride_y: c_int,
src_uv: *const u8,
src_stride_uv: c_int,
dst_rgba: *mut u8,
dst_stride_rgba: c_int,
width: c_int,
height: c_int,
) -> c_int;
}
// https://github.com/webmproject/libvpx/blob/master/vpx/src/vpx_image.c
@@ -456,7 +467,7 @@ pub mod hw {
}
}
_ => {
Err(anyhow!("unsupported image format"));
Err(anyhow!("unsupported image format"))
}
}
}