joyycom / VNN

VNN是由欢聚集团(Joyy Inc.)推出的高性能、轻量级神经网络部署框架。目前已为Hago、VOO、VFly、马克相机等App提供20余种AI能力的支持,覆盖直播、短视频、视频编辑等泛娱乐场景和工程场景
Other
1k stars 206 forks source link

Nice!! 期待开放GPU接口~ #30

Open HuangGY1993 opened 2 years ago

HuangGY1993 commented 2 years ago

public static class VNN_Image { public long ori_fmt; / orientation format enum of img/ public int pix_fmt; / pixel format enum of img / public int mode_fmt; / mode format enum of detection, can use video/picture/default / public int width; //image width public int height; //image height public int channels; //image channel public byte[] data; //cpu data public float[] rect; public int[] texture; / if is cpu-backend, texture is NULL. But if is gpu-backend, texture may be a VNN_Texture(android|ios) or a CVPixelbuffer(ios). / }