有可能制作自定义的renderscript内部函数吗? [英] Is that possible to make custom renderscript intrinsics?

查看:65
本文介绍了有可能制作自定义的renderscript内部函数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Renderscript内在函数非常快速且有用.但是,在某些情况下,我们可能希望构建自己的内在函数,例如当前的卷积不支持Matlab中的有效"模式.拥有它会很好.因此,我想知道是否可以这样做并与java层很好地连接(就像现有的内部函数一样)?如果可能的话,您会草图吗?谢谢.

Renderscript intrinsics is very fast and useful. However, there are situations where we might want to build our own intrinsics, e.g. current convolution doesn't support the "valid" mode as in matlab. It would be very nice to have it. So, I'm wondering if it's possible to do so and connect nicely with the java layer (just like the existing intrinsics)? If it's possible, would you sketch how? Thank you.

推荐答案

否,目前无法添加自定义内在函数.在下一个版本中,我们计划以与自4.3以来裁剪内核运行相同的方式来添加对裁剪内部函数的支持,这将允许您添加等效于Matlab的有效模式.

no, there's no way to add custom intrinsics right now. in the next release we're planning to add support for clipped intrinsics in the same way that clipped kernels operate since 4.3, which would allow you to add a valid mode equivalent to Matlab.

这篇关于有可能制作自定义的renderscript内部函数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆