fix build && default flutter_texture_render

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-02-22 10:25:21 +08:00
parent d70ffaa2b8
commit ed0338b038
2 changed files with 13 additions and 1 deletions

View File

@ -239,6 +239,7 @@ def get_features(args):
features.append('hwcodec')
if args.flutter:
features.append('flutter')
features.append('flutter_texture_render')
if args.flatpak:
features.append('flatpak')
if args.appimage:

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"))
}
}
}