fix build && default flutter_texture_render
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
d70ffaa2b8
commit
ed0338b038
1
build.py
1
build.py
@ -239,6 +239,7 @@ def get_features(args):
|
|||||||
features.append('hwcodec')
|
features.append('hwcodec')
|
||||||
if args.flutter:
|
if args.flutter:
|
||||||
features.append('flutter')
|
features.append('flutter')
|
||||||
|
features.append('flutter_texture_render')
|
||||||
if args.flatpak:
|
if args.flatpak:
|
||||||
features.append('flatpak')
|
features.append('flatpak')
|
||||||
if args.appimage:
|
if args.appimage:
|
||||||
|
@ -126,6 +126,17 @@ extern "C" {
|
|||||||
width: c_int,
|
width: c_int,
|
||||||
height: c_int,
|
height: c_int,
|
||||||
) -> 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
|
// 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"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user